tensorflow / models

Models and examples built with TensorFlow
Other
77.01k stars 45.78k forks source link

resnet_v1_50() got an unexpected keyword argument 'store_non_strided_activations' #3466

Closed nguyeho7 closed 4 years ago

nguyeho7 commented 6 years ago

Please go to Stack Overflow for help and support:

http://stackoverflow.com/questions/tagged/tensorflow

Also, please understand that many of the models included in this repository are experimental and research-style code. If you open a GitHub issue, here is our policy:

  1. It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).
  2. The form below must be filled out.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.


System information

You can collect some of this information using our environment capture script:

https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh

You can obtain the TensorFlow version with

python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"

Describe the problem

Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.

When I try to train the retina net model (resnet50, SSD meta architecture, focal loss), I get the following error:

File "train.py", line 167, in tf.app.run() File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/platform/app.py", line 126, in run _sys.exit(main(argv)) File "train.py", line 163, in main worker_job_name, is_chief, FLAGS.train_dir) File "/root/gv/models/research/object_detection/trainer.py", line 246, in train clones = model_deploy.create_clones(deploy_config, model_fn, [input_queue]) File "/root/gv/models/research/slim/deployment/model_deploy.py", line 193, in create_clones outputs = model_fn(*args, **kwargs) File "/root/gv/models/research/object_detection/trainer.py", line 179, in _create_losses prediction_dict = detection_model.predict(images, true_image_shapes) File "/root/gv/models/research/object_detection/meta_architectures/ssd_meta_arch.py", line 343, in predict preprocessed_inputs) File "/root/gv/models/research/object_detection/models/ssd_resnet_v1_fpn_feature_extractor.py", line 130, in extract_features scope=scope) TypeError: resnet_v1_50() got an unexpected keyword argument 'store_non_strided_activations'

I did not change any code apart from the configuration file, where I set the feature extractor to be ssd_resnet_v1_fpn

angerson commented 6 years ago

@sguada Any thoughts on this?

tensorflowbutler commented 4 years ago

Hi There, We are checking to see if you still need help on this, as this seems to be considerably old issue. Please update this issue with the latest information, code snippet to reproduce your issue and error you are seeing. If we don't hear from you in the next 7 days, this issue will be closed automatically. If you don't need help on this issue any more, please consider closing this.