xujiayue 2 rokov pred
rodič
commit
36c703b77b
2 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 1 1
      core/parser.py
  2. 1 1
      stamp/stamp_parser.py

+ 1 - 1
core/parser.py

@@ -318,5 +318,5 @@ class BusinessLicenseParser(Parser):
         self.expire_date()
         self.business_scope()
         self.address()
-        # self.stamp()
+        self.stamp()
         return {key: self.res[key].to_dict() for key in self.keys}

+ 1 - 1
stamp/stamp_parser.py

@@ -2,7 +2,7 @@ import fastdeploy as fd
 from sx_utils.sxtime import sxtimeit
 
 d_option = fd.RuntimeOption()
-d_option.use_gpu()
+d_option.use_cpu()
 
 d_model = fd.vision.detection.YOLOv3('./d_models/model.pdmodel',
                                      "./d_models/model.pdiparams",