Closed ghost closed 5 years ago
You only used F.sigmoid(SR) in the train phase, and you didn't use it in valid and test phase. I think it may be ignored. right?
Hi @Zaynsysu , At first, Thank you for your interest in my code.
In data_loader.py
, there are some transform function that is applied to your images.
(ex. T.ToTensor()
, T.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))
)
It will change your input in specific range.
Because SR is applied to sigmoid function, it will have range [0,1].
I correct valid and test phase code. I really appreciate your point. Thank you :)
If you don't have further issues, I will close the issue. I hope my answer was helpful :)
Hi @Zaynsysu , At first, Thank you for your interest in my code.
- In
data_loader.py
, there are some transform function that is applied to your images. (ex.T.ToTensor()
,T.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))
) It will change your input in specific range.- Because SR is applied to sigmoid function, it will have range [0,1].
- I correct valid and test phase code. I really appreciate your point. Thank you :)
T.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))), these parameters how to calculate?
Hi, @Nastu-Ho.
The parameters of T.Normalize are channel-wise mean and std of your images.
I just simply set them as 0.5, but you can change them.
You can refer here
If you don't have further issues, I will close the issue. I hope my answer was helpful :)
The evaluation code is just for batch size equal to 1?
I have 2 questions. 1.What kind of images can I use? My input includes single channel '.png' images which should be segmented and '.png' GT images which is composed of 0 and 255. Can I use them directly, or what is your image format?
Thank you so much