Keras-LinkNet icon indicating copy to clipboard operation
Keras-LinkNet copied to clipboard

How to use the same code for binary segmentation?

Open minaahmed opened this issue 4 years ago • 1 comments
trafficstars

Hi can I use the same code for binary segmentation

minaahmed avatar Mar 07 '21 15:03 minaahmed

You can see here how the number of classes is extracted from a batch returned by the data generator. So I would start by writing a data generator class for your dataset. Each batch returned by the generator should have ground-truth images/labels where the last dimension is the number of classes, in your case, 2.

You would also need to add your new dataset data generator here and here.

Hope that helps.

davidtvs avatar Mar 09 '21 21:03 davidtvs