2021-12-04 01:27:42.262609: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
WARNING:tensorflow:There are non-GPU devices in tf.distribute.Strategy
, not using nccl allreduce.
W1204 01:27:42.263748 4480232896 cross_device_ops.py:1387] There are non-GPU devices in tf.distribute.Strategy
, not using nccl allreduce.
INFO:tensorflow:Using MirroredStrategy with devices (’/job:localhost/replica:0/task:0/device:CPU:0’,)
I1204 01:27:42.265084 4480232896 mirrored_strategy.py:369] Using MirroredStrategy with devices (’/job:localhost/replica:0/task:0/device:CPU:0’,)
Traceback (most recent call last):
File “object_detection/model_main_tf2.py”, line 115, in
tf.compat.v1.app.run()
File “/opt/anaconda3/lib/python3.7/site-packages/tensorflow/python/platform/app.py”, line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File “/opt/anaconda3/lib/python3.7/site-packages/absl/app.py”, line 312, in run
_run_main(main, args)
File “/opt/anaconda3/lib/python3.7/site-packages/absl/app.py”, line 258, in _run_main
sys.exit(main(argv))
File “object_detection/model_main_tf2.py”, line 112, in main
record_summaries=FLAGS.record_summaries)
File “/Users/admin/Downloads/models-master/research/object_detection/model_lib_v2.py”, line 499, in train_loop
pipeline_config_path, config_override=config_override)
File “/Users/admin/Downloads/models-master/research/object_detection/utils/config_util.py”, line 138, in get_configs_from_pipeline_file
proto_str = f.read()
File “/opt/anaconda3/lib/python3.7/site-packages/tensorflow/python/lib/io/file_io.py”, line 117, in read
self._preread_check()
File “/opt/anaconda3/lib/python3.7/site-packages/tensorflow/python/lib/io/file_io.py”, line 80, in _preread_check
compat.path_to_str(self.__name), 1024 * 512)
TypeError: init(): incompatible constructor arguments. The following argument types are supported:
1. tensorflow.python.lib.io._pywrap_file_io.BufferedInputStream(filename: str, buffer_size: int, token: tensorflow.python.lib.io._pywrap_file_io.TransactionToken = None)
Invoked with: None, 524288
理论知识与实战项目双管齐下,让AI技术不再脱离实际,做到真正的落地应用。适合毕设展示。
了解课程