Code Monkey home page Code Monkey logo

Comments (3)

diligent321 avatar diligent321 commented on July 23, 2024

Hi, did you solved it ? @SLAMgreen

I meet the save error, appreciated your kind reply !

from pocketflow.

gyx1qaz avatar gyx1qaz commented on July 23, 2024

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.

from pocketflow.

gyx1qaz avatar gyx1qaz commented on July 23, 2024

解决了吗?

from pocketflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.