Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: list index out of range #322

Open
CoderGenJ opened this issue Feb 27, 2020 · 3 comments
Open

IndexError: list index out of range #322

CoderGenJ opened this issue Feb 27, 2020 · 3 comments

Comments

@CoderGenJ
Copy link

Describe the bug
Background:
The ssd-vgg-16 model is pruned by learner chn-pruned-rmt method and have been fine trained 120000 iters.It makes a dir named models_cpr_eval to strore the final pruned-trained models.
BUG:
When i used the export_pb_tflite_models.py script to export a ssd-vgg-16 model to pb file.I get the IndexError.
command:
python export_pb_tflite_models.py --model_dir=../../models_cpr_eval --input_coll=images_final --output_coll=logits_final
Bug log:
"""Traceback (most recent call last):
File "export_pb_tflite_models.py", line 392, 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 "export_pb_tflite_models.py", line 371, in main
input_name, input_shape = get_input_name_n_shape(meta_path)
File "export_pb_tflite_models.py", line 82, in get_input_name_n_shape
net_input = tf.get_collection(FLAGS.input_coll)[0]
IndexError: list index out of range
"""
Could you please tell me how to solve this problem?Thanks you in advance.

@diligent321
Copy link

Hi, did you solved it ? @SLAMgreen

I meet the save error, appreciated your kind reply !

@gyx1qaz
Copy link

gyx1qaz commented Jul 3, 2020

Describe the bug
Background:
The ssd-vgg-16 model is pruned by learner chn-pruned-rmt method and have been fine trained 120000 iters.It makes a dir named models_cpr_eval to strore the final pruned-trained models.
BUG:
When i used the export_pb_tflite_models.py script to export a ssd-vgg-16 model to pb file.I get the IndexError.
command:
python export_pb_tflite_models.py --model_dir=../../models_cpr_eval --input_coll=images_final --output_coll=logits_final
Bug log:
"""Traceback (most recent call last):
File "export_pb_tflite_models.py", line 392, 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 "export_pb_tflite_models.py", line 371, in main
input_name, input_shape = get_input_name_n_shape(meta_path)
File "export_pb_tflite_models.py", line 82, in get_input_name_n_shape
net_input = tf.get_collection(FLAGS.input_coll)[0]
IndexError: list index out of range
"""
Could you please tell me how to solve this problem?Thanks you in advance.

Describe the bug
Background:
The ssd-vgg-16 model is pruned by learner chn-pruned-rmt method and have been fine trained 120000 iters.It makes a dir named models_cpr_eval to strore the final pruned-trained models.
BUG:
When i used the export_pb_tflite_models.py script to export a ssd-vgg-16 model to pb file.I get the IndexError.
command:
python export_pb_tflite_models.py --model_dir=../../models_cpr_eval --input_coll=images_final --output_coll=logits_final
Bug log:
"""Traceback (most recent call last):
File "export_pb_tflite_models.py", line 392, 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 "export_pb_tflite_models.py", line 371, in main
input_name, input_shape = get_input_name_n_shape(meta_path)
File "export_pb_tflite_models.py", line 82, in get_input_name_n_shape
net_input = tf.get_collection(FLAGS.input_coll)[0]
IndexError: list index out of range
"""
Could you please tell me how to solve this problem?Thanks you in advance.

@gyx1qaz
Copy link

gyx1qaz commented Jul 3, 2020

解决了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants