-
Notifications
You must be signed in to change notification settings - Fork 505
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
How to apply this function to 1channel image? #127
Comments
Repeat the channel 3x to make it an RGB image |
Hi @richzhang |
The method is for RGB images. It somewhat makes sense for "1 channel" grayscale images, but doesn't make sense to run for a 5 channel image. |
I see now, thanks a lot |
I am courious about how to determine the value of self.shift and self.scale . And as I comparing two 1channel images,can I delet the ScalingLayer?What happen if I do? |
Thank you so much for your contribution! I came across a problem when comparing two 1channel images. The traceback threw out a 'non-singleton dimension dismatch' at line 154 'return (inp - self.shift) / self.scale'. Later I learned that this function works for 3channel images, but I am not sure if that is the reason in my case (input/target shape(B,C,H,W): (4,1,256,256)), if it is, then how can I convert to 3channel? Thanks!
The text was updated successfully, but these errors were encountered: