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

something about voc groudtruth label #44

Open
chenpengf0223 opened this issue Jan 17, 2019 · 0 comments
Open

something about voc groudtruth label #44

chenpengf0223 opened this issue Jan 17, 2019 · 0 comments

Comments

@chenpengf0223
Copy link

chenpengf0223 commented Jan 17, 2019

Hi sthalles, Thanks for your great work!

I get a little confusion about CreateTfRecord.ipynb.
In CreateTfRecord.ipynb, I found the two types of annotation are different.
1,
If "annotation_np = imread(os.path.join(annotations_dir_voc, image_name.strip() + ".png"))",
then the result label is :
annotation_np.dtype : uint8, annotation_np.shape: (w,h,4), np.max(annotation_np): 255, np.min(annotation_np)): 0.
2,
If "annotation_np = read_annotation_from_mat_file(annotations_dir_aug_voc, image_name)",
then the result label is :
annotation_np.dtype : uint8, annotation_np.shape: (w,h), np.max(annotation_np): 15, np.min(annotation_np)): 0.

What is the meaning of the annotation_np when its shape is (w,h,4)? If it will cause something wrong when train the model?

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