GithubHelp home page GithubHelp logo

zsef123 / efficientnets-pytorch Goto Github PK

View Code? Open in Web Editor NEW
309.0 6.0 46.0 37 KB

A PyTorch implementation of " EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks."

Python 91.97% Jupyter Notebook 8.03%
pytorch efficientnet deep-learning

efficientnets-pytorch's People

Contributors

rohitgr7 avatar zsef123 avatar

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

efficientnets-pytorch's Issues

convert Tensorflow weights to Pytorch weights

I have converted Tensorflow weights to Pytorch weights perfectly using your code in EfficientNet-b0, but I got some wrong from EfficientNet-b1 to EfficientNet-b3.
I would like to ask if you have completed the code, and can you help fix these bugs?
Traceback (most recent call last):
File "convert.py", line 117, in
convert_MBConv(mbconv, key_to_param(tf_mbconv))
File "convert.py", line 68, in convert_MBConv
convert_se(m.se, tf_params[10:14])
File "convert.py", line 55, in convert_se
convert_conv(m.se[1], tf_params[0], tf_params[1])
File "convert.py", line 19, in convert_conv
m.weight.data = torch.from_numpy(np.transpose(weight, (3, 2, 0, 1)))
File "/home/xux/anaconda3/envs/tf1.9_py3.6/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 639, in transpose
return _wrapfunc(a, 'transpose', axes)
File "/home/xux/anaconda3/envs/tf1.9_py3.6/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc
return getattr(obj, method)(*args, **kwds)
ValueError: axes don't match array

I download eval_ckpt_main.py and some other files from Official TF Repo, I don't know if they are necessary. Can you give me some help?

Stochastic depth drop connect rate schedule

HI @zsef123
Great work!
You said in another issue that you are gonna implement the stochastic depth. Just a quick note that original Efficient Net uses linear schedule which is the same as the Stochastic depth paper, where Layer 0 has drop rate 0 and the last layer has drop rate 0.2.

Thank you!

Plotting

Can you please help me, how can I plot those figure on papar:)

accuracy for the code

Hi,

Thanks for your code. Did you do some test about the code? Specifically, what accuracy did your get using the code?

Thanks a lot

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.