From f75e11dcef59d8b7f56c58f795492bc4b6166b18 Mon Sep 17 00:00:00 2001 From: SunAhong1993 Date: Mon, 14 Oct 2019 19:08:19 +0800 Subject: [PATCH] fix the assert --- x2paddle/convert.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x2paddle/convert.py b/x2paddle/convert.py index f4662bf..585c829 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) -- GitLab