Open
Description
直接按官方样例demo写的
- paddleClas版本 2.6.0 paddlepaddle版本2.6.2
- python 3.8
- paddle-cpu版本和gpu版本报相同的错误
python run.py
2025-01-03 18:29:51 INFO: Loading faiss with AVX512 support.
2025-01-03 18:29:51 INFO: Successfully loaded faiss with AVX512 support.
[2025/01/03 18:29:51] ppcls WARNING: The current running environment does not support the use of GPU. CPU has been used instead.
Traceback (most recent call last):
File "run.py", line 2, in
model = paddleclas.PaddleClas(model_name="person_attribute")
File "venv/lib/python3.8/site-packages/paddleclas/paddleclas.py", line 610, in init
self.predictor = ClsPredictor(self._config)
File "venv/lib/python3.8/site-packages/paddleclas/deploy/python/predict_cls.py", line 28, in init
super().init(config["Global"])
File "venv/lib/python3.8/site-packages/paddleclas/deploy/utils/predictor.py", line 37, in init
self.predictor, self.config = self.create_paddle_predictor(
File "venv/lib/python3.8/site-packages/paddleclas/deploy/utils/predictor.py", line 108, in create_paddle_predictor
predictor = create_predictor(config)
MemoryError: std::bad_alloc
Metadata
Metadata
Assignees
Labels
No labels
Activity