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

Read classes from label map #93

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Read classes from label map #93

wants to merge 2 commits into from

Conversation

JR-378
Copy link

@JR-378 JR-378 commented Jun 16, 2019

I grew tired of doing copy and paste from the label map to the script.

There is additional command line parameter to provide the path to the label map. The label map will be read once in the script, parsed into a dictionary and passed to the create_tf_example method.

The names are the keys in the dictionary and the IDs are the values, which makes it work much the same way as the previous method.

All tests passed and tfrecords have been created without issues.

Edit: I recently started training another model and everything seems to be working.

I grew tired of doing copy and paste from the label map to the script.

There is additional command line parameter to provide the path to the label map. The label map will be read once in the script, parsed into a dictionary and passed to the create_tf_example method.

The names are the keys in the dictionary and the IDs are the values.

All tests passed and tfrecords have been created without issues.
@jarvis-owl
Copy link

you could add:
import tensorflow.compat.v1 as tf to have tf.app working,
if this is ever merged

@JR-378
Copy link
Author

JR-378 commented Jan 29, 2020

Probably never will be. Anyways, my goal was to just share the code, as I am using it in my private repository quite often and without failure.

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

Successfully merging this pull request may close these issues.

2 participants