PaddleX icon indicating copy to clipboard operation
PaddleX copied to clipboard

依据教程运行实例分割可训练验证,推理失败(win conda python10)

Open swx954068967 opened this issue 6 months ago • 10 comments

python main.py -c paddlex/configs/modules/instance_segmentation/Mask-RT-DETR-L.yaml -o Global.mode=predict -o Predict.model_dir="./output/best_model/inference" -o Predict.input="general_instance_segmentation_004.png" Traceback (most recent call last): File "E:\swx\python\PaddleX-release-3.0\paddlex\utils\result_saver.py", line 28, in wrap result = func(self, *args, **kwargs) File "E:\swx\python\PaddleX-release-3.0\paddlex\engine.py", line 49, in run for res in self._model.predict(): File "E:\swx\python\PaddleX-release-3.0\paddlex\model.py", line 130, in predict predict_kwargs, predictor = self._build_predictor() File "E:\swx\python\PaddleX-release-3.0\paddlex\model.py", line 104, in build_predictor predictor = create_predictor( File "E:\swx\python\PaddleX-release-3.0\paddlex\inference\models_init.py", line 77, in create_predictor return BasePredictor.get(model_name)( File "E:\swx\python\PaddleX-release-3.0\paddlex\inference\models\instance_segmentation\predictor.py", line 40, in init super().init(*args, **kwargs) File "E:\swx\python\PaddleX-release-3.0\paddlex\inference\models\object_detection\predictor.py", line 70, in init super().init(*args, **kwargs) File "E:\swx\python\PaddleX-release-3.0\paddlex\inference\models\base\predictor\base_predictor.py", line 112, in init self.batch_sampler = self._build_batch_sampler() File "E:\swx\python\PaddleX-release-3.0\paddlex\inference\models\object_detection\predictor.py", line 115, in _build_batch_sampler return ImageBatchSampler() File "E:\swx\python\PaddleX-release-3.0\paddlex\inference\common\batch_sampler\image_batch_sampler.py", line 48, in init self.pdf_reader = PDFReader() File "E:\swx\python\PaddleX-release-3.0\paddlex\inference\utils\io\readers.py", line 100, in init super().init(backend, **bk_args) File "E:\swx\python\PaddleX-release-3.0\paddlex\inference\utils\io\readers.py", line 66, in init self._backend = self.get_backend() File "E:\swx\python\PaddleX-release-3.0\paddlex\inference\utils\io\readers.py", line 76, in get_backend return self._init_backend(self.bk_type, bk_args) File "E:\swx\python\PaddleX-release-3.0\paddlex\inference\utils\io\readers.py", line 106, in _init_backend return PDFReaderBackend(**bk_args) File "E:\swx\python\PaddleX-release-3.0\paddlex\utils\deps.py", line 147, in _wrapper require_deps(*cls.deps, obj_name=cls.name) File "E:\swx\python\PaddleX-release-3.0\paddlex\utils\deps.py", line 127, in require_deps raise RuntimeError(msg) RuntimeError: PDFReaderBackend is not ready for use, because the following dependencies are not available: pypdfium2

swx954068967 avatar May 28 '25 06:05 swx954068967