Closed mfrohman123 closed 5 years ago
not sure where you use this function. The ImageDataProvider
automatically creates a one-hot encoding if n_classes==2
I figured it out; this function was used to convert the training labels to one-hot before being loaded in the ImageDataProvider class. Thanks!
Hello,
Thank you for providing an implementation for this network! I am trying to train the network on 300*300 images with two classes. I understand your implementation expects one hot encoding images, which I believe I am doing so via:
This function converts the masks to one hot before they are loaded. I am using the provided ImageDataProvider class. Self.n_classes equals 2, but during training I am getting the error 'could not broadcast input array from shape (300,300,2) into shape (300,300).'
Thank you in advance.