Hii Dat Tran
Vaibhav Singh
23

I am getting this error when i m trying to generate tfrecord file by generate_tfrecord.py .

Traceback (most recent call last):
 File “generate_tfrecord.py”, line 76, in <module>
 tf.app.run()
 File “/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py”, line 48, in run
 _sys.exit(main(_sys.argv[:1] + flags_passthrough))
 File “generate_tfrecord.py”, line 70, in main
 tf_example = create_tf_example(row)
 File “generate_tfrecord.py”, line 61, in create_tf_example
 ‘image/object/class/label’: dataset_util.int64_list_feature(classes),
 File “/home/vaibhav/tensorflow/models/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

Show your support

Clapping shows how much you appreciated Vaibhav Singh’s story.