Help with SegmentationDataset

Hi,
Why does the SegmentationDataset requires a parameter of “classes” when we are already supplying the “y images”?

Thanks!

So that you can print out the name of a class. Also, getting all the unique values of every pixel would take a long time!

1 Like

hey Jeremy,
thanks for the reply. Let me get this right:
x is the list of path of training files(eg. images of car with background)
y is the list of path of testing files(eg. mask of car only)

in that case, what should be the classes?

Thanks!

@sbongo The classes are the types of entities, eg car, building, road, tree, etc.
In a single image there can be multiple entities.

1 Like