facebookresearch / detectron2

Detectron2 is a platform for object detection, segmentation and other visual recognition tasks.
https://detectron2.readthedocs.io/en/latest/
Apache License 2.0
30.56k stars 7.49k forks source link

Error when trying DensePose model on Mac : (torch not compiled with CUDA enabled) #3748

Closed Fqlox closed 2 years ago

Fqlox commented 2 years ago

Hi I wanted to try the DensePose model from detectron2 with a Mac Book

I followed the instruction from the [documentation](https://detectron2.readthedocs.io/en/latest/tutorials/install.html) I didn't have an issue when I installed the dependance.

I did install detectron2 and detectron2-densepose 0.6 opencv Headless 4.5 and torch 1.10

I tried cd project/DensePose/ python apply_net.py show configs/densepose_rcnn_R_50_FPN_s1x.yaml densepose_rcnn_R_50_FPN_s1x.pkl img.png dp_contour,bbox --output image_densepose_contour.png

And I got : AssertionError: Torch not compiled with CUDA enabled

Does Detectron needs CUDA to run, or the issue is specific to DensePose ? Can't it be run on CPU ?

Tranks in advance,

I tried this on Mac OSX 10.15, 16GO DDR4, i5 2 GHz

github-actions[bot] commented 2 years ago

You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template. The following information is missing: "Instructions To Reproduce the Issue and Full Logs"; "Your Environment";

github-actions[bot] commented 2 years ago

Requested information was not provided in 7 days, so we're closing this issue.

Please open new issue if information becomes available. Otherwise, use github discussions for free-form discussions.