Skip to content

Commit 8b00be1

Browse files
committed
Even clearer message in inference.py example about 0
1 parent 51d31c2 commit 8b00be1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/inference.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
# But remove the all-0 black, that won't exist in the MAP!
4646
HAS_UNK = 0 in colors
4747
if HAS_UNK:
48-
print("Found a full-black pixel in annotation image, assuming it means 'unknown' label!")
48+
print("Found a full-black pixel in annotation image, assuming it means 'unknown' label, and will thus not be present in the output!")
49+
print("If 0 is an actual label for you, consider writing your own code, or simply giving your labels only non-zero values.")
4950
colors = colors[1:]
5051
#else:
5152
# print("No single full-black pixel found in annotation image. Assuming there's no 'unknown' label!")

0 commit comments

Comments
 (0)