标记使用tfjs_converter

时间:2019-03-10 19:53:47

标签: tensorflow converters

Windows 10. Python 3.6,已安装tensorflow 2.0.alpha 最新的tfjs转换器。 使用pip install获取了最新的tensorflowjs。 下载了模型ssd_mobilenet_v2_coco_2018_03_29以测试我的转化 PS使用此命令时,在添加output_format和output_node_name >PC\python\data\obj_det_models\ssd_mobilenet_v2_coco_2018_03_29> tensorflowjs_converter --input_format=tf_saved_model ./saved_model ./web_model_ssd2时会给出相同的错误 看到的错误是

Using TensorFlow backend.
Traceback (most recent call last):
  File "c:\software\python36\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\software\python36\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Cyril-PC\AppData\Roaming\Python\Python36\Scripts\tensorflowjs_converter.exe\__main__.py", line 5, in <module>
  File "C:\Users\Cyril-PC\AppData\Roaming\Python\Python36\site-packages\tensorflowjs\__init__.py", line 21, in <module>
    from tensorflowjs import converters
  File "C:\Users\Cyril-PC\AppData\Roaming\Python\Python36\site-packages\tensorflowjs\converters\__init__.py", line 24, in <module>
    from tensorflowjs.converters.tf_saved_model_conversion import convert_tf_saved_model
  File "C:\Users\Cyril-PC\AppData\Roaming\Python\Python36\site-packages\tensorflowjs\converters\tf_saved_model_conversion.py", line 34, in <module>
    import tensorflow_hub as hub
  File "C:\Users\Cyril-PC\AppData\Roaming\Python\Python36\site-packages\tensorflow_hub\__init__.py", line 28, in <module>
    from tensorflow_hub.feature_column import image_embedding_column
  File "C:\Users\Cyril-PC\AppData\Roaming\Python\Python36\site-packages\tensorflow_hub\feature_column.py", line 25, in <module>
    from tensorflow_hub import module
  File "C:\Users\Cyril-PC\AppData\Roaming\Python\Python36\site-packages\tensorflow_hub\module.py", line 23, in <module>
    from tensorflow_hub import native_module
  File "C:\Users\Cyril-PC\AppData\Roaming\Python\Python36\site-packages\tensorflow_hub\native_module.py", line 26, in <module>
    from tensorflow_hub import compressed_module_resolver
  File "C:\Users\Cyril-PC\AppData\Roaming\Python\Python36\site-packages\tensorflow_hub\compressed_module_resolver.py", line 35, in <module>
    from tensorflow_hub import resolver
  File "C:\Users\Cyril-PC\AppData\Roaming\Python\Python36\site-packages\tensorflow_hub\resolver.py", line 34, in <module>
    FLAGS = tf.flags.FLAGS
AttributeError: module 'tensorflow' has no attribute 'flags'

0 个答案:

没有答案