MMdnn
MMdnn copied to clipboard
How to Converting pre-trained pytorch model to MXNet?
Platform (like ubuntu 16.04/win10):win10
Python version:3.6.6 x64
Source framework with version (like Tensorflow 1.4.1 with GPU):torch-0.4.1-cp36-cp36m-win_amd64 (CUDA 9.2)
Destination framework with version (like CNTK 2.3 with GPU):mxnet-cu92 --pre(1.3.1b20180927)
Pre-trained model path (webpath or webdisk path): http://xinyizhang.tech/files/GFN_epoch_55.pkl.zip https://github.com/jacquelinelala/GFN
Running scripts: mmconvert -sf "pytorch" -in Z:\sp2\GFN\GFN-master\models\GFN_epoch_55.pkl --inputShape 3,256,256 -df "mxnet" -om "F:\test.params"
error:
Traceback (most recent call last):
File "c:\program files\python36\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\program files\python36\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Program Files\Python36\Scripts\mmconvert.exe_main.py", line 9, in
I don't know how to get inputShape value, just guess...
Hi,did you solve it? xxx.pth convert xxx.params