GithubHelp home page GithubHelp logo

mg2033 / mobilenet-v2 Goto Github PK

View Code? Open in Web Editor NEW
209.0 8.0 40.0 206 KB

A Complete and Simple Implementation of MobileNet-V2 in PyTorch

License: Apache License 2.0

Python 100.00%
realtime classification mobilenet-v2 mobilenetv2 mobilenet2 convolutional-neural-networks cnn-classification mobilenets pytorch pytorch-cnn

mobilenet-v2's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mobilenet-v2's Issues

RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation

I try the code and get the runtime error down,any idea?

Training...
Epoch-0-: 0%| | 0/391 [00:00<?, ?it/s]Traceback (most recent call last):
File "main.py", line 46, in
main()
File "main.py", line 34, in main
trainer.train()
File "/home/qiaokang/MobileNet-V2-master/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 89, in backward
allow_unreachable=True) # allow_unreachable flag
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation

Bad exception handling

MobileNet-V2/main.py

Lines 10 to 14 in 508d824

try:
config_args = parse_args()
except:
print("Add a config file using \'--config file_name.json\'")
exit(1)

This is quite bad code style, you need to provide more information.
e.g. it will catch errors if the config file doesn't exist or if the config file can't be processed.

about the pretrained weight

I wonder if you provide with pretrained weight on ImageNet?Just give me a link wound bee better.And more,it's the first time I see that weight is saved by rar,it;s some difficult for me to use it,could you write more about how to test a classcification by an image?

Inplace operation error.

Thanks for this implementation.
When I execute this on my PC I find the error as [RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation], which initiates from util file >>cur_loss.backward() from line 65.
Please look into it and help me out.

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.