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
torchshow.set_image_mean([0., 0., 0.]) torchshow.set_image_std([1., 1., 1.]) torchshow.show(img) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) File /somepath/python3.8/site-packages/torchshow/visualization.py:289, in vis_image(x, unnormalize, **kwargs) [287] if user_std == None: [288] user_std = [1.] * x.shape[-1] # Initialize std to 1 if not specified. --> [289] x = unnormalize(x, user_mean, user_std) [291] elif unnormalize=='auto': [292] x = auto_unnormalize_image(x) TypeError: 'str' object is not callable
It seems to be caused by the variable name and method name being the same 'unnormalize'. And this case should be added to the test.
The text was updated successfully, but these errors were encountered:
Thank you for spotting this bug! I really forgot this function since I barely use it myself.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
It seems to be caused by the variable name and method name being the same 'unnormalize'.
And this case should be added to the test.
The text was updated successfully, but these errors were encountered: