Comments (11)
also got the same problem
from mobilenet-v2.
same problem
from mobilenet-v2.
Which Pytorch version do you use?
from mobilenet-v2.
I got the same error with Pytorch 0.4.1.
Training...
Epoch-0-: 0%| | 0/391 [00:00<?, ?it/s]Traceback (most recent call last):
File "main.py", line 45, in
main()
File "main.py", line 33, in main
trainer.train()
File "/home/grafty/external_projects/pruning/MobileNet-V2/train.py", line 63, in train
cur_loss.backward()
File "/usr/local/lib/python3.5/dist-packages/torch/tensor.py", line 93, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph)
File "/usr/local/lib/python3.5/dist-packages/torch/autograd/init.py", line 90, in backward
allow_unreachable=True) # allow_unreachable flag
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation
from mobilenet-v2.
Update: worked for me when I used pytorch 0.3.0. The error no longer came up.
from mobilenet-v2.
what the checkpoint name,and where can download it?
from mobilenet-v2.
it worked when I used pytorch 0.3.1 but i was not found the change in pytorch 0.4.x
from mobilenet-v2.
i also got the same problem in pyTorch 0.4.0
from mobilenet-v2.
i also got the same problem in pyTorch 0.4.0
changing your dropout or relu6 to out-of-place or use the model of https://github.com/tonylins/pytorch-mobilenet-v2
from mobilenet-v2.
i also got the same problem in pyTorch 0.4.0
changing your dropout or relu6 to out-of-place or use the model of https://github.com/tonylins/pytorch-mobilenet-v2
thanks ! When I did this, the problem was solved.
from mobilenet-v2.
search the keyword "inplace" in train.py and delete the args like inplace=True,or change inplace=False,I solved the problem,it's a pytorch version problem,the author used version 0.4,and yours in version 0.4.
from mobilenet-v2.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobilenet-v2.