Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

官方样例demo报错: MemoryError: std::bad_alloc #3338

Open
ocivo opened this issue Jan 3, 2025 · 1 comment
Open

官方样例demo报错: MemoryError: std::bad_alloc #3338

ocivo opened this issue Jan 3, 2025 · 1 comment
Assignees

Comments

@ocivo
Copy link

ocivo commented Jan 3, 2025

直接按官方样例demo写的

  1. paddleClas版本 2.6.0 paddlepaddle版本2.6.2
  2. python 3.8
  3. 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
@ocivo ocivo changed the title MemoryError: std::bad_alloc 官方样例demo报错: MemoryError: std::bad_alloc Jan 3, 2025
@TingquanGao TingquanGao self-assigned this Jan 3, 2025
@TingquanGao
Copy link
Collaborator

请提供一下完整的启动命令

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants