Skip to content

Using Detectron2 on CPU #12

@jan-schaeffer

Description

@jan-schaeffer

Hi,

first of all, big thanks for this project!

I am currently working on somethng very similar to the BibItem example you provide here.

Unfortunately, I am having an issue with running the train_net.py. Since I am on a M1 Mac, I do not have CUDA support, though your script assumes it. This causes the following error:

File "/opt/miniconda3/envs/lp/lib/python3.10/site-packages/torch/cuda/__init__.py", line 211, in _lazy_init raise AssertionError("Torch not compiled with CUDA enabled") AssertionError: Torch not compiled with CUDA enabled

Is there any way to change this? I found this and this online, though I am not sure on where to add this in the script.

Any help would be highly appreciated since I need to train a custom model for a work project.

Thanks,

Jan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions