提交 b2c3943a 编写于 作者: J jiangjiajun

little modify

上级 819f7057
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
from six import text_type as _text_type from six import text_type as _text_type
import argparse import argparse
import sys
def arg_parser(): def arg_parser():
...@@ -92,6 +93,11 @@ def caffe2paddle(proto, weight, save_dir, caffe_proto): ...@@ -92,6 +93,11 @@ def caffe2paddle(proto, weight, save_dir, caffe_proto):
def main(): 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() parser = arg_parser()
args = parser.parse_args() args = parser.parse_args()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册