from the item it seems to be a pretty obvious issue right?
But for the life of me I swear I have 21 labels and 21 classes.
So just as a sanity check I thought i'd ask!
- I have a load of training images (640,640)
- I've gone through them and used DataTurks to annotate the data.
- From that I've created a set of PNG masks where I've used 255 for blank space then tan
Int
for the corresponding number to make an NP array to then convert to a png. - I've then followed this sagemaker example for segmentation which seems to work until I run
ss_model.fit
.
This is where I start to get some errors. The full log can be seen in this Gist
The first error to jump out at me is:
label maps not provided, using defaults.
Which is strange as I believe I've loaded them correctly in S3 <bucket>/label_map/train_label_map.json
That label map looks like so : Gist (Perhaps it fails as it's not valid JSON however I was copying how another sagemaker example uses it?)
The second error to jump out is the one in the title.
Now it could be that my masks are competely wrong (I'm still very new to ML) but them look like this but 640x640:
[
255, 255, 255
255, 2, 2,
255, 2, 2
]
Where 255 is null and 2 is the annotation.
Could this error be because I'm not including the 255: "null"
in the label_map ?
Any insight would be really helpful! Thanks.