python - 'tensorflowjs_converter' 不是内部或外部命令、可运行程序或批处理文件
问题描述
我在 python 3.8 中安装了 tensorflow 2.5.0。我也成功安装了 tensorflowjs。但是当我运行这个命令时
command = "tensorflowjs_converter --input_format=tf_saved_model --output_node_names='detection_boxes,detection_classes,detection_features,detection_multiclass_scores,detection_scores,num_detections,raw_detection_boxes,raw_detection_scores' --output_format=tfjs_graph_model --signature_name=serving_default {} {}".format(os.path.join(paths['OUTPUT_PATH'], 'saved_model'), paths['TFJS_PATH'])
!{command}
我收到了这个错误
'tensorflowjs_converter' is not recognized as an internal or external command,
operable program or batch file.
解决方案
我卸载了tenserflowjs并再次安装了它。它成功地工作了。
!pip uninstall tensorflowjs
!pip install tensorflowjs
推荐阅读
- typescript - 理解 Typescript 中的 React.FC
- python - 如果第一次递归中的语句没有运行递归函数
- python - Python 脚本在 Linux 上找不到与脚本放在同一文件夹中的文件
- javascript - addEventListener 到附加元素
- jenkins - GitHub 拉取请求生成器插件的问题
- php - 是否有 PHP 简写: if (a) {var = a}
- typescript - 如何使用 typeorm 将可为空的数据库字段设置为 NULL?
- python - 格式字符串的参数太多
- tensorflow - 旧 CPU 上的 tfjs-node(没有 AVX)
- embedded-linux - /dev/mem 或用户空间突发传输;如何获得更快的 /dev/mem 访问