tensorflow / tensorflow/models

there is no arg_scope defined for SSD Inception V2 feature extractor

Open
#7,952 0 comments 1 reaction 3 assignees View on GitHub

@pkulzc is already working on this.

Since Jun 4, 2020.

models:research:odapi type:support
Dominant language
Python
Stars
77.7k
Forks
44.8k
PR merge metrics
No merged PRs in 30d

Description

Ubuntu 16
Cuda 9
cudnn 7
Tensorflow object detection api 1.8.0
Using SSD_mobilnet_v2 and SSD_inception_v2 pre-models:

I'm Trying to train my own dataset with tensorflow research/object_detection api. I run train.py file with this command:
python train.py --logtostderr --train_dir=/home/tfr/ --pipeline_config_path=/home/tfr/model.config
and get this error:

Use object_detection/model_main.py.
Traceback (most recent call last):
File "object_detection/train.py", line 186, in
tf.app.run()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/platform/app.py", line 125, in run
_sys.exit(main(argv))
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/util/deprecation.py", line 306, in new_func
return func(*args, **kwargs)
File "object_detection/train.py", line 182, in main
graph_hook_fn=graph_rewriter_fn)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/models/research/object_detection/legacy/trainer.py", line 250, in train
detection_model = create_model_fn()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/models/research/object_detection/builders/model_builder.py", line 636, in build
add_summaries)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/models/research/object_detection/builders/model_builder.py", line 247, in _build_ssd_model
is_training=is_training)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/models/research/object_detection/builders/model_builder.py", line 223, in _build_ssd_feature_extractor
return feature_extractor_class(**kwargs)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/models/research/object_detection/models/ssd_inception_v2_feature_extractor.py", line 79, 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.

I also tried model_main.py and the same error pops up. Is it something wrong with my data? or model? or what? I have no clue!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.