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

error in generate tfrecord #53

Open
xxbb1234021 opened this issue Apr 16, 2018 · 8 comments
Open

error in generate tfrecord #53

xxbb1234021 opened this issue Apr 16, 2018 · 8 comments

Comments

@xxbb1234021
Copy link

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?

@kevintomsgithub
Copy link

I am facing the same error, how did you get it fixed?

@xxbb1234021
Copy link
Author

Thanks,i fix it

@xxbb1234021 xxbb1234021 reopened this Apr 23, 2018
@Thommy257
Copy link

and how did you do that?

@ali0517
Copy link

ali0517 commented May 1, 2018

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.

@zq1314
Copy link

zq1314 commented Jun 20, 2018

how did you do that? @xxbb1234021

@xxbb1234021
Copy link
Author

xxbb1234021 commented Jun 20, 2018

@zq1314 Please refer to this link below.
#2

@unaisshazan
Copy link

desk 54
help please how to sort this problem

@Shiva0072
Copy link

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.

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.

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

7 participants