瀏覽代碼

fix build index when init

gaotingquan 8 月之前
父節點
當前提交
59b0cae2fb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      paddlex/inference/pipelines/pp_shitu_v2/pipeline.py

+ 1 - 1
paddlex/inference/pipelines/pp_shitu_v2/pipeline.py

@@ -50,7 +50,7 @@ class ShiTuV2Pipeline(BasePipeline):
         self.det_model = self.create_model(config["SubModules"]["Detection"])
         self.rec_model = self.create_model(config["SubModules"]["Recognition"])
         self.crop_by_boxes = CropByBoxes()
-        self.indexer = self._build_indexer(index=index) if index else None
+        self.indexer = FaissIndexer(index=index) if index else None
         self.batch_sampler = ImageBatchSampler(
             batch_size=self.det_model.batch_sampler.batch_size
         )