You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
ocivo
changed the title
MemoryError: std::bad_alloc
官方样例demo报错: MemoryError: std::bad_alloc
Jan 3, 2025
直接按官方样例demo写的
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
The text was updated successfully, but these errors were encountered: