nn_tools icon indicating copy to clipboard operation
nn_tools copied to clipboard

how to convert my selfdefine pytorch model to caffe model.

Open yongjingli opened this issue 5 years ago • 2 comments

hi,I want to know how to convert selfdefine pytorch model to caffe model, thanks a lot.

yongjingli avatar Jul 09 '19 12:07 yongjingli

hi, hahnyuan @hahnyuan I want to convert the LPRnet to caffe model, the LPRnet comes from here: https://github.com/sirius-ai/LPRNet_Pytorch/blob/master/model/LPRNet.py. But I suffer the below problem, I want to know what's the problem:

image

yongjingli avatar Jul 09 '19 12:07 yongjingli

hi, hahnyuan @hahnyuan , and now I suffer another problem. And the problem is that I use different stride=(1, 2) in max pooling layer, which is not support in pytorch2caffe: image

yongjingli avatar Jul 11 '19 06:07 yongjingli