首页 > 解决方案 > '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.

标签: pythontensorflowtensorflowjs-converter

解决方案


我卸载了tenserflowjs并再次安装了它。它成功地工作了。

!pip uninstall tensorflowjs
!pip install tensorflowjs

推荐阅读