microsoft / MMdnn

MMdnn is a set of tools to help users inter-operate among different deep learning frameworks. E.g. model conversion and visualization. Convert models between Caffe, Keras, MXNet, Tensorflow, CNTK, PyTorch Onnx and CoreML.
MIT License
5.79k stars 964 forks source link

Improve error message: --srcFramework/-f: invalid choice: 'None' #733

Open bersbersbers opened 5 years ago

bersbersbers commented 5 years ago

Platform (like ubuntu 16.04/win10): Windows 10 Python version: 3.7.4, mmdnn==0.2.5

Running scripts: mmconvert -f caffe -df keras -om test

I know that this command is not supposed to run without passing an input file, but the error message is incorrect and should be improved:

mmconvert: error: argument --srcFramework/-f: invalid choice: 'None' (choose from 'caffe', 'caffe2', 'cntk', 'mxnet', 'keras', 'tensorflow', 'tf', 'torch', 'torch7', 'onnx', 'darknet', 'coreml', 'pytorch')

bersbersbers commented 5 years ago

As a workaround, one can use --srcFramework or --sf.