Detectron2 performed on the CPU with a "Torch not compiled with CUDA enabled" error
Configure Detectron2 environment on a computer without GPU graphics card. After the configuration is OK, run the following code. The weight file is downloaded well in advance and placed in a fixed location.
code:
Most helpful comment
Hi, try adding this after cfg.MODEL.WEIGHTS:
cfg.MODEL.DEVICE = 'cpu'