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
Regarding the normalization step #18
Comments
Thanks, hopefully this will fix some similar issues I had. If placing your code just after the following:
Should the maximum not be 0 instread, rather than -1?
|
Thanks for your reply! I think you're right and there might have been an oversight. Best, |
Hey Da-Hye, No problem. Don't take my word as gospel; I could definitely be wrong on this. Really I'm just following the comments in the code about keeping the images in the desired ranges as quoted above. Essentially images need to have a minimum and maximum of zero and one respectively. So the np.arrays are taken from the range -1 to 1 with this line:
Then sometimes the images might be still be outside the range of zero to one (usually not by much when you print it out) so I just clamped them using these methods.
I'm not sure whether I'm being a muppet or not but this seemed to get rid of the errors I was getting. Hopefully it helps! |
Hi All, It worked well. |
Hi Matt,
First, thanks for sharing your nice code which helped me a lot for figuring out details of the paper.
I came up with a question regarding the normalization step.
What is the reason for making images to be in the range [0,1] in line 128~133 of 'd_model.py'? Was it due to the undesired interpolation effect occurring during running skimage.transform.resize? I tried by myself with two options: with and without taking your normalization step before resizing; it seems like there is difference.
One more thing, when running your code with UCF101 dataset, there is an error "Images of type float must be between -1 and 1." I checked with the debugging mode, and found that sometimes skimage.transform.resize results violate [-1, 1] range. For a case you need a quick modification, I guess following code will help you some,
Best,
Da-Hye
The text was updated successfully, but these errors were encountered: