From b2c3943ab0349c1f80ef93caa23255bea43e6752 Mon Sep 17 00:00:00 2001 From: jiangjiajun Date: Mon, 5 Aug 2019 10:31:49 +0800 Subject: [PATCH] little modify --- x2paddle/convert.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/x2paddle/convert.py b/x2paddle/convert.py index 1bd7cee..fc4f6c0 100644 --- a/x2paddle/convert.py +++ b/x2paddle/convert.py @@ -14,6 +14,7 @@ from six import text_type as _text_type import argparse +import sys def arg_parser(): @@ -92,6 +93,11 @@ def caffe2paddle(proto, weight, save_dir, caffe_proto): def main(): + if len(sys.argv) < 2: + print("Usage: x2paddle -f tensorflow -m vgg16.pb -s paddle_model") + print("Use \"x2paddle -h\" to print the help information") + return + parser = arg_parser() args = parser.parse_args() -- GitLab