Windows 10. Python 3.6, установлен тензор потока 2.0.alpha
Последний tfjs-конвертер.
Взял последние tenorflowjs используя pip install.
Скачанная модель 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'