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

Keep getting detectron2 error with does not contain device code #1373

Open
xcvil opened this issue Dec 27, 2024 · 0 comments
Open

Keep getting detectron2 error with does not contain device code #1373

xcvil opened this issue Dec 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@xcvil
Copy link

xcvil commented Dec 27, 2024

Description of the bug | 错误描述

cuobjdump info : File '.../conda/envs/MinerU/lib/python3.10/site-packages/detectron2/_C.cpython-310-x86_64-linux-gnu.so' does not contain device code

How to reproduce the bug | 如何复现

When running

https://github.com/opendatalab/MinerU/tree/master/projects/multi_gpu

server = ls.LitServer(
        MinerUAPI(output_dir=args.output_dir),
        accelerator=args.accelerator,
        devices=args.devices,
        workers_per_device=args.workers_per_device,
        timeout=args.timeout,
        track_requests=True
    )
    server.run(port=args.port)

Operating system | 操作系统

Linux

Python version | Python 版本

3.10

Software version | 软件版本 (magic-pdf --version)

0.9.x

Device mode | 设备模式

cuda

@xcvil xcvil added the bug Something isn't working label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant