Multiclass Segmentation

Have a look at this post to see, how to create a custom mapping.

RandomCrop should work in the default setup without padding. However, you should make sure to use the same “random” locations for both, your input and target as shown here.

2 Likes