onnx / tutorials

Tutorials for creating and using ONNX models
Apache License 2.0
3.34k stars 626 forks source link

unrecognized arguments: --export_onnx ./saved_models/mosaic.onnx #84

Open bemoregt opened 5 years ago

bemoregt commented 5 years ago

Hi, @ezyang , @kant , @msakai , @zdevito , @Yangqing

I met this error when converting .pth to .onnx

(mun) kerb:fast_neural_style mun$ (mun) kerb:fast_neural_style mun$ python ./neural_style/neural_style.py eval --content-image dummy.jpg --output-image dummy-out.jpg --model ./saved_models/mosaic.pth --cuda 0 --export_onnx ./saved_models/mosaic.onnx usage: neural_style.py [-h] {train,eval} ... neural_style.py: error: unrecognized arguments: --export_onnx ./saved_models/mosaic.onnx (mun) kerb:fast_neural_style mun$

What's wrong with me? Env: MacMini, OSX Mojave, python2.7

Thanks.

from @bemoregt.

houseroad commented 5 years ago

which tutorial you try to run? Could you provide more details?

Umity commented 5 years ago

having the same issue.