tensorflow / tensorflow/models
Value error: SSD inception v2
@pkulzc is already working on this.
Since Jun 24, 2020.
- Dominant language
- Python
- Stars
- 77.7k
- Forks
- 44.8k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the problem
Tried doing training object detection from the below link
https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/training.html#training-the-model
In the last part of the page you can see the training part where i am getting the below error
Source code / logs
(base) C:\Users\Admin\Desktop\tensorflow\workspace\training_demo>python train.py --logtostderr --train_dir=training\ --pipeline_config_path=C:\Users\Admin\Desktop\tensorflow\workspace\training_demo\training\ssd_inception_v2_coco.config
WARNING: Logging before flag parsing goes to stderr.
W0808 19:36:44.690053 9896 lazy_loader.py:50]
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.
W0808 19:36:44.971286 9896 deprecation_wrapper.py:119] From C:\Users\Admin\Desktop\tensorflow\workspace\training_demo\nets\inception_resnet_v2.py:373: The name tf.GraphKeys is deprecated. Please use tf.compat.v1.GraphKeys instead.
W0808 19:36:44.986923 9896 deprecation_wrapper.py:119] From C:\Users\Admin\Desktop\tensorflow\workspace\training_demo\nets\mobilenet\mobilenet.py:397: The name tf.nn.avg_pool is deprecated. Please use tf.nn.avg_pool2d instead.
W0808 19:36:45.002547 9896 deprecation_wrapper.py:119] From train.py:55: The name tf.logging.set_verbosity is deprecated. Please use tf.compat.v1.logging.set_verbosity instead.
W0808 19:36:45.002547 9896 deprecation_wrapper.py:119] From train.py:55: The name tf.logging.INFO is deprecated. Please use tf.compat.v1.logging.INFO instead.
W0808 19:36:45.002547 9896 deprecation_wrapper.py:119] From train.py:184: The name tf.app.run is deprecated. Please use tf.compat.v1.app.run instead.
W0808 19:36:45.018155 9896 deprecation.py:323] From C:\Users\Admin\Anaconda3\lib\site-packages\absl\app.py:251: main (from main) is deprecated and will be removed in a future version.
Instructions for updating:
Use object_detection/model_main.py.
W0808 19:36:45.018155 9896 deprecation_wrapper.py:119] From train.py:90: The name tf.gfile.MakeDirs is deprecated. Please use tf.io.gfile.makedirs instead.
W0808 19:36:45.018155 9896 deprecation_wrapper.py:119] From C:\Users\Admin\Desktop\tensorflow\workspace\training_demo\object_detection\utils\config_util.py:102: The name tf.gfile.GFile is deprecated. Please use tf.io.gfile.GFile instead.
W0808 19:36:45.018155 9896 deprecation_wrapper.py:119] From train.py:95: The name tf.gfile.Copy is deprecated. Please use tf.io.gfile.copy instead.
Traceback (most recent call last):
File "train.py", line 184, in
tf.app.run()
File "C:\Users\Admin\Anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "C:\Users\Admin\Anaconda3\lib\site-packages\absl\app.py", line 300, in run
_run_main(main, args)
File "C:\Users\Admin\Anaconda3\lib\site-packages\absl\app.py", line 251, in _run_main
sys.exit(main(argv))
File "C:\Users\Admin\Anaconda3\lib\site-packages\tensorflow\python\util\deprecation.py", line 324, in new_func
return func(*args, **kwargs)
File "train.py", line 180, in main
graph_hook_fn=graph_rewriter_fn)
File "C:\Users\Admin\Desktop\tensorflow\workspace\training_demo\object_detection\legacy\trainer.py", line 249, in train
detection_model = create_model_fn()
File "C:\Users\Admin\Desktop\tensorflow\workspace\training_demo\object_detection\builders\model_builder.py", line 132, in build
return _build_ssd_model(model_config.ssd, is_training, add_summaries)
File "C:\Users\Admin\Desktop\tensorflow\workspace\training_demo\object_detection\builders\model_builder.py", line 258, in _build_ssd_model
is_training=is_training)
File "C:\Users\Admin\Desktop\tensorflow\workspace\training_demo\object_detection\builders\model_builder.py", line 234, in _build_ssd_feature_extractor
return feature_extractor_class(**kwargs)
File "C:\Users\Admin\Desktop\tensorflow\workspace\training_demo\object_detection\models\ssd_inception_v2_feature_extractor.py", line 78, in init
raise ValueError('SSD Inception V2 feature extractor always uses'
ValueError: SSD Inception V2 feature extractor always usesscope returned by conv_hyperparams_fn for both the base feature extractor and the additional layers added since there is no arg_scope defined for the base feature extractor.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.