Open cspearl opened 3 years ago
Hi, you could change the input channels to 4 instead of 3 in this line. You can save your files as png images as described in the readme. Do note that this repo doesn't work for multiclass segmentation.
I would instead suggest you have a look at this keras repo or this one if you are working on pytorch.
You can get extremely good results if you use either of the above 2 repos.
I am working with binary segmentation (one class and one background) so your repo would work fine I believe? I have changed the input channels to 4 in unet.py. How should I change data.py if you could please guide me.
I was training with images of one size(512,512,4) and tried to test the model predictions on images of another size(1024,1024,3) but it is giving an error as to saying : I think we can test on images of any size after we have trained the model
Traceback (most recent call last):
File "unet.py", line 167, in
Hi I am trying to train the model on a custom dataset which has images in 4 channels. RGB images and NIR images could you help me out as to how should I read my data and start training where do i need to do changes in the code?