Closed JacksonWuxs closed 2 years ago
Ah, I think when it merges in the ImageNet images, it does not properly convert them from [0, 255] range to [0, 1] range (or the other way). I will implement a fix for this soon, sorry for the delay.
Okay, I think I've pushed a fix for this! Still have to thoroughly test, but you can pull and try again if you wish.
Sorry to the late response. I am very appreciate to your fixed push! I will try it!
Thanks!
Hi Evan,
Thank you so much for sharing the dataset! When I try to use the code
milannotations.load
to load the Imagenet dataset, I found some results don't follow our expectations. I think I have setup the environment correctly, but I still cannot load images from the Imagenet with a correct RGB format.Here is the code I used to check:
And here is the output coming from the test code:
Since the code doesn't raise any issue, I simply assume that my environment is setup correctly. But we can see that the maximum value of each image coming from Imagenet dataset is roughly 0.0039, which is less than 1 in the 255-level RGB scale. In other words, all source images of Imagenet are actually black. Meanwhile, the images of places365 are correct because the maximum values of places365 images are roughly 1.0.
Did I miss anything? May I know how to fix this issue?
Thanks a lot!