Comments (12)
Let pytorch=0.2, torchvision=0.1.8, the problem will be solved!
I don't kown why, maybe newer pytorch use 'ExpandBackward' to name layer, but older pytorch do not use. And the layer_dict
in pytorch2caffe.py
do not have 'ExpandBackward'
from pytorch2caffe.
@wyfdodogod I think you needn't retrain in torch 2, you should understand the meaning of ExpandBackward
and add this key to layer_dict , then you should add some operater in function pytorch2prototxt, just like elif parent_type == 'BatchNormBackward':
from pytorch2caffe.
I have met same problems. I guess the conversion code has not support 'ExpandBackward' currently.
from pytorch2caffe.
met same problems too!
from pytorch2caffe.
same problem, can anybody give some tips?
from pytorch2caffe.
met same problems too!
from pytorch2caffe.
does that mean any model trained in torch version 3 and above need to be retrained in torch 2 and then safe to be converted to caffe
from pytorch2caffe.
@autocyz ty for the explaination, as you mentioned using torch 0.2 and torchvision 0.1.8, i solved the problem more specifically torch0.2 post1 using post2 and 3 might raise error causing python crash at the time caffe is imported.
from pytorch2caffe.
@wangxc2006 did you retrain the model under torch 0.2?
from pytorch2caffe.
Any plan to support 0.4.x ?
from pytorch2caffe.
@autocyz @longcw met same issue when running demo.py.
when i try to install 0,2.0 by pip install torch==0.2.0 or pip isntall torch-0.2.0.post********.whl
(I try install it based CUDA 9.2 or CUDA 8.0)
errors displays:
is not a supported wheel on this platform
so strange. dose anyone run demo,py sucessfully on torch==0.3.1 and torchvision==0.2.0
I trained model on the env above. thanks
from pytorch2caffe.
@autocyz Like you said, "should understand the meaning of ExpandBackward and add this key to layer_dict , then you should add some operater in function pytorch2prototxt, just like elif parent_type == 'BatchNormBackward':"
But i don't know ‘ExpandBackward’ means. So how should it be modified?
from pytorch2caffe.
Related Issues (20)
- 'Dot' object is not iterable HOT 3
- got error: Segmentation fault (core dumped) HOT 1
- pytorch 0.4 support
- ResNet size issue -> not accepting 224
- Does one model with nn.MaxUnpool2d layers in pytorch can be transformed to caffe model?
- CudnnBatchNormBackward
- KeyError: 'MkldnnConvolutionBackward' HOT 9
- which version of pytorch and torchvision should be used? advice needed HOT 5
- AttributeError: tuple object has no attribute 'grad_fn' HOT 6
- pytorch2caffe doesn't work for the last two layyers's convertion HOT 5
- ExpandBackward HOT 3
- layer_dict的对应关系
- "dot" not found in path HOT 2
- undefined symbol: _ZN3MPI8Datatype4FreeEv HOT 2
- training error
- 关于pytorch2caffe的步骤
- convert KeyError: 'MkldnnConvolutionBackward' HOT 1
- "TypeError: argument 0 is not a Variable", torch version:0.2.0
- Can it transform LSTM layer? HOT 1
- how do i transform pth file to caffemodel? HOT 1
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 pytorch2caffe.