-
Notifications
You must be signed in to change notification settings - Fork 87
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
Google Colab version not running [BUG] #39
Comments
met the same problem, anyone has suggestion? |
how to solve this question?I have changed the environment,but... |
I have the same issue. My model is fine-tuned from a ResNet-50 (using the latest fastai, v2), and I'm using Google Colab without a GPU. Interestingly, I am using the following package versions:
The network structure (of the ResNet-50) is as follows:
|
you can change your code into something like this
seems like torch 1.7+ has this feature |
I tried that solution, but I still get the same error ^ |
Tried running |
Hi all, Apologies for the delayed response - I haven't been able to work on this project for a while due to personal circumstances. The proper fix is on my todo list, but as an immediate patch I have pinned versions of torch & torchvision in colab notebooks to:
I can verify that these notebooks execute without errors and create correct visualisation as of April 27, 2021:
Best, |
Describe the bug
When running the google colab version Part 4. Visualize Saliency Maps throws up the following error
RuntimeError Traceback (most recent call last)
in ()
9 # Ready to roll!
10
---> 11 backprop.visualize(owl, target_class, guided=True, use_gpu=True)
1 frames
/usr/local/lib/python3.6/dist-packages/flashtorch/utils/init.py in denormalize(tensor)
117
118 for channel, mean, std in zip(denormalized[0], means, stds):
--> 119 channel.mul_(std).add_(mean)
120
121 return denormalized
RuntimeError: Output 0 of UnbindBackward is a view and is being modified inplace. This view is the output of a function that returns multiple views. Such functions do not allow the output views to be modified inplace. You should replace the inplace operation by an out-of-place one.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: