divamgupta / image-segmentation-keras

Implementation of Segnet, FCN, UNet , PSPNet and other models in Keras.
https://divamgupta.com/image-segmentation/2019/06/06/deep-learning-semantic-segmentation-keras.html
MIT License
2.92k stars 1.16k forks source link

Unable to Work Preprocessing Function Parameter for model.train() #386

Closed jjohn485 closed 2 years ago

jjohn485 commented 2 years ago

Hi, I've been working with your segmentation classifier and it has been working great so far! My only issue so far is that I am trying to normalize my image training set and I haven't been able to find a way to do it successfully yet. I have tried both an ImagerGenerator and feeding it a directory full of numpy files and it doesn't want to take them.

I've been wanting to use the preprocessing parameter but I am unable to discern how to use it properly. I didn't see any resources talking about it either.

Any help would be greatly appreciated!

jjohn485 commented 2 years ago

Figured it out!