We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi there, it seemed that your latest commit(5ef88c3) didn't work well with PyTorch 1.6? After python run.py, I got the following error,
python run.py
Traceback (most recent call last): File "run.py", line 154, in PIL.Image.fromarray((tenOutput.clip(0.0, 1.0).numpy().transpose(1, 2, 0)[:, :, 0] * 255.0).astype(numpy.uint8)).save(arguments_strOut) AttributeError: 'Tensor' object has no attribute 'clip'
When I changed the clip back to clamp, it worked. Could you be so kind to provide me with any clues on this? Thanks.
clip
clamp
The text was updated successfully, but these errors were encountered:
The two are doing the same thing, clip is an alias for clamp: https://pytorch.org/docs/stable/generated/torch.clip.html
I switched it to clip, which got added to PyTorch in version 1.7.0, since that is what NumPy is using too.
1.7.0
Sorry, something went wrong.
No branches or pull requests
Hi there, it seemed that your latest commit(5ef88c3) didn't work well with PyTorch 1.6? After
python run.py
, I got the following error,Traceback (most recent call last):
File "run.py", line 154, in
PIL.Image.fromarray((tenOutput.clip(0.0, 1.0).numpy().transpose(1, 2, 0)[:, :, 0] * 255.0).astype(numpy.uint8)).save(arguments_strOut)
AttributeError: 'Tensor' object has no attribute 'clip'
When I changed the
clip
back toclamp
, it worked. Could you be so kind to provide me with any clues on this? Thanks.The text was updated successfully, but these errors were encountered: