GithubHelp home page GithubHelp logo

Comments (11)

ddhgiang avatar ddhgiang commented on June 15, 2024

also got the same problem

from mobilenet-v2.

nuptwuchen avatar nuptwuchen commented on June 15, 2024

same problem

from mobilenet-v2.

MG2033 avatar MG2033 commented on June 15, 2024

Which Pytorch version do you use?

from mobilenet-v2.

nekulkarni avatar nekulkarni commented on June 15, 2024

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.

nekulkarni avatar nekulkarni commented on June 15, 2024

Update: worked for me when I used pytorch 0.3.0. The error no longer came up.

from mobilenet-v2.

feixuedudiao avatar feixuedudiao commented on June 15, 2024

what the checkpoint name,and where can download it?

from mobilenet-v2.

jehovahxu avatar jehovahxu commented on June 15, 2024

it worked when I used pytorch 0.3.1 but i was not found the change in pytorch 0.4.x

from mobilenet-v2.

lcj1105 avatar lcj1105 commented on June 15, 2024

i also got the same problem in pyTorch 0.4.0

from mobilenet-v2.

jehovahxu avatar jehovahxu commented on June 15, 2024

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.

lcj1105 avatar lcj1105 commented on June 15, 2024

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.

BlueBubbleWei avatar BlueBubbleWei commented on June 15, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.