-
Notifications
You must be signed in to change notification settings - Fork 981
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
error in generate tfrecord #53
Comments
I am facing the same error, how did you get it fixed? |
Thanks,i fix it |
and how did you do that? |
This means that there is one class that is not captured. Maybe you have a spelling error in one of your class or there is really some classes that you haven't put in the function yet. Try to check this again. |
how did you do that? @xxbb1234021 |
This was really the case with me. Just check your generateTFRecord.py file. In my case there were 9 labels mentioned with different names, But I was trying to use this file for 2 labels only. Changed the label numbers and their classes. then worked fine. |
hi all , when I run generate_tfrecord. I met the problem below:
Traceback (most recent call last):
File "D:/workspaces/python/chartbot/generate_tfrecord.py", line 99, in
tf.app.run()
File "C:\Users\kevin\Anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "D:/workspaces/python/chartbot/generate_tfrecord.py", line 90, in main
tf_example = create_tf_example(group, path)
File "D:/workspaces/python/chartbot/generate_tfrecord.py", line 79, in create_tf_example
'image/object/class/label': dataset_util.int64_list_feature(classes)
File "D:\workspaces\models\research\object_detection\utils\dataset_util.py", line 26, in int64_list_feature
return tf.train.Feature(int64_list=tf.train.Int64List(value=value))
TypeError: None has type NoneType, but expected one of: int, long
how can i fix it?
The text was updated successfully, but these errors were encountered: