使用Tensorflow 的新手,請問使用過Tensorflow 的專業人員是否能給予指導
<"
目前我已經依照以下網址
https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/tensorflow-1.14/training.html
依序執行步驟
在步驟Training the Model訓練模組 時
在CMD執行指令python model_main.py --alsologtostderr --model_dir=training/ --pipeline_config_path=training/RGB_faster_rcnn_nas.config
但是卻跳出以下問題
2023-03-22 10:06:23.920749: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_100.dll
WARNING:tensorflow:
The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:
* https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
* https://github.com/tensorflow/addons
* https://github.com/tensorflow/io (for I/O related ops)
If you depend on functionality not listed there, please file an issue.
WARNING:tensorflow:From D:\TensorFlow\models\research\slim\nets\inception_resnet_v2.py:373: The name tf.GraphKeys is deprecated. Please use tf.compat.v1.GraphKeys instead.
WARNING:tensorflow:From D:\TensorFlow\models\research\slim\nets\mobilenet\mobilenet.py:389: The name tf.nn.avg_pool is deprecated. Please use tf.nn.avg_pool2d instead.
Traceback (most recent call last):
File "model_main.py", line 109, in <module>
tf.app.run()
File "D:\Python\Python36\lib\site-packages\tensorflow_core\python\platform\app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "D:\Python\Python36\lib\site-packages\absl\app.py", line 312, in run
_run_main(main, args)
File "D:\Python\Python36\lib\site-packages\absl\app.py", line 258, in _run_main
sys.exit(main(argv))
File "model_main.py", line 71, in main
FLAGS.sample_1_of_n_eval_on_train_examples))
TypeError: create_estimator_and_inputs() missing 1 required positional argument: 'hparams'
如圖
cd models/research
# Compile protos.
protoc object_detection/protos/*.proto --python_out=.
# Install TensorFlow Object Detection API.
cp object_detection/packages/tf1/setup.py .
python -m pip install --use-feature=2020-resolver .
# Test the installation
python object_detection/builders/model_builder_tf1_test.py