diff --git a/caffe2fluid/kaffe/net_template.py b/caffe2fluid/kaffe/net_template.py index f9387c9dd8ed007017b92107e762e687bbeee696..c6810c67bfc7d52bad86c0170fca102d40379091 100644 --- a/caffe2fluid/kaffe/net_template.py +++ b/caffe2fluid/kaffe/net_template.py @@ -100,7 +100,7 @@ def main(): npy_weight = args.npy_path fluid_model = args.model_param_path outputs = None - if len(sys.argv) >= 6: + if args.need_layers_name: outputs = args.need_layers_name.split(',') ret = MyNet.convert(npy_weight, fluid_model, outputs)