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

Issue while generating tfrecords. please help! #559

Open
dwifristanti opened this issue Jun 2, 2021 · 0 comments
Open

Issue while generating tfrecords. please help! #559

dwifristanti opened this issue Jun 2, 2021 · 0 comments

Comments

@dwifristanti
Copy link

Traceback (most recent call last):
File "generate_tfrecord.py", line 168, in
tf.app.run()
File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/platform/app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/usr/local/lib/python3.7/dist-packages/absl/app.py", line 303, in run
_run_main(main, args)
File "/usr/local/lib/python3.7/dist-packages/absl/app.py", line 251, in _run_main
sys.exit(main(argv))
File "generate_tfrecord.py", line 158, in main
tf_example = create_tf_example(group, path)
File "generate_tfrecord.py", line 132, in create_tf_example
classes.append(class_text_to_int(row['class']))
File "generate_tfrecord.py", line 101, in class_text_to_int
return label_map_dict[row_label]
KeyError: 'table'
Traceback (most recent call last):
File "generate_tfrecord.py", line 168, in
tf.app.run()
File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/platform/app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/usr/local/lib/python3.7/dist-packages/absl/app.py", line 303, in run
_run_main(main, args)
File "/usr/local/lib/python3.7/dist-packages/absl/app.py", line 251, in _run_main
sys.exit(main(argv))
File "generate_tfrecord.py", line 158, in main
tf_example = create_tf_example(group, path)
File "generate_tfrecord.py", line 132, in create_tf_example
classes.append(class_text_to_int(row['class']))
File "generate_tfrecord.py", line 101, in class_text_to_int
return label_map_dict[row_label]
KeyError: 'table'

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

1 participant