To create a semantic segmentation algorithm using inceptionresnetv2
, imagedatastore()
, and pixellabeldatastore()
with an image size of 224*224*3
, follow these steps:
inceptionresnetv2
function.main.m25 chars2 lines
main.m41 chars3 lines
imagedatastore()
and pixellabeldatastore()
.main.m244 chars5 lines
deeplabv3plusLayers()
specifying the input and number of classes. Then configure the training options.main.m503 chars11 lines
trainNetwork()
.main.m56 chars2 lines
semanticseg()
and evaluateSemanticSegmentation()
.main.m103 chars3 lines
main.m143 chars6 lines
Make sure to replace 'path/to/training/images'
, 'path/to/training/labels'
, 'path/to/testing/images'
, and 'path/to/testing/labels'
with the corresponding paths to your own data. Also, define the classes
variable in step 3 based on your own label classes.
gistlibby LogSnag