-
Notifications
You must be signed in to change notification settings - Fork 40
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
Got errors in pyramid_gaussian function #5
Comments
@pz-AOE |
Thanks for replying. |
My main conda environment is for multiple purposes and it includes many unrelated packages to this project. imageio 2.8.0 If you want to create a new conda environment, the following would suffice. conda install -y tqdm imageio scikit-image matplotlib readline
conda install -y pytorch torchvision cudatoolkit=10.2 -c pytorch |
Problem solved by upgrading scikit-image to v0.16.2. |
if you are using RTX 4090 like me, cuda 10.2 is not compatible with it. |
Got error :
pyramid = list(pyramid_gaussian(img, n_scales-1, multichannel=True))
File "/home/jsgx/.conda/envs/pytorch/lib/python3.6/site-packages/skimage/transform/pyramids.py", line 197, in pyramid_gaussian
image = img_as_float(image)
File "/home/jsgx/.conda/envs/pytorch/lib/python3.6/site-packages/skimage/util/dtype.py", line 378, in img_as_float64
return convert(image, np.float64, force_copy)
File "/home/jsgx/.conda/envs/pytorch/lib/python3.6/site-packages/skimage/util/dtype.py", line 244, in convert
raise ValueError("Images of type float must be between -1 and 1.")
ValueError: Images of type float must be between -1 and 1.
python main.py --n_GPUs 2 --batch_size 16
It seems image tensors have to be normlized to [-1,1]. Should I add
--rgb_range=1
to solve this problemThe text was updated successfully, but these errors were encountered: