Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

normalization code for image data in mask directory does not work #8

Open
superbunny38 opened this issue Feb 6, 2022 · 2 comments
Open

Comments

@superbunny38
Copy link

Hello, thank you so much for your nice and detailed explanations about U-Net and Image segmentation.
I had no idea what those are, and I was able to learn a lot from your thorough explanations and well-explained codes.
However, when normalizing image data by dividing all images by 255.0, it does not work for images in mask directory.
So when I fit the model, it gives me negative values for binary cross_entroy error :)
So, I added the code myself to manually normalize image data in mask directory. Thanks for reading!

@Pottah007
Copy link

Hello there, I'm facing the same issue.
Could you please explain or provide the code which you used to properly normalize the data?

@superbunny38
Copy link
Author

Hello,

Hello there, I'm facing the same issue. Could you please explain or provide the code which you used to properly normalize the data?

Hello, @Pottah007
I will leave you the link below that I re-produced this work, and in which I also successfully handled the normalization issue. :)
Here is the link: https://github.com/superbunny38/DeepLearning/blob/main/papers/U_Net.ipynb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants