-
Notifications
You must be signed in to change notification settings - Fork 820
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
The funtion of colormap2label may not be effective , the converted label does not correspond. #75
Comments
` img1 = tf.io.read_file("C:/Users/eadhaw/Desktop/1221/5.png") VOC_COLORMAP = [[0, 0, 0], [128, 0, 0], [0, 128, 0], [128, 128, 0], for i, colormap in enumerate(VOC_COLORMAP): y = voc_label_indices(img1, colormap2label) img1[230:240,325:330,:] y[230:240,325:330]` |
Which chapter is this question about ? |
chapter09_computer-vision/9.9_semantic-segmentation-and-dataset.ipynb/def voc_label_indices(colormap, colormap2label): |
|
test-rgb2label.pdf
The result for [0,0,128] should be labeled as 4, but got the 0. Hope to get your reply, thank you!
The input image from VOC2012\SegmentationClass\2007_000061.png
The text was updated successfully, but these errors were encountered: