diff --git a/x2paddle/convert.py b/x2paddle/convert.py index f4662bf2b0740fe1e0da8103b36c50886aad70ed..585c829654ecce26627fcb5bc56a76c992263dfe 100644 --- a/x2paddle/convert.py +++ b/x2paddle/convert.py @@ -134,8 +134,7 @@ def caffe2paddle(proto, weight, save_dir, caffe_proto): if (int(ver_part[0]) == 3 and int(ver_part[1]) >= 6) \ or (int(ver_part[0]) > 3): version_satisfy = True - assert version_satisfy, 'The version of protobuf must be \ - larger than or equal to 3.6.0!' + assert version_satisfy, 'google.protobuf >= 3.6.0 is required' print("Now translating model from caffe to paddle.") model = CaffeDecoder(proto, weight, caffe_proto) mapper = CaffeOpMapper(model)