conansherry / detectron2

detectron2 windows build
Apache License 2.0
224 stars 55 forks source link

got 'AssertionError: Torch not compiled with CUDA enabled' #5

Open myounus96 opened 4 years ago

myounus96 commented 4 years ago

I installed pytorch with cpuonly,but still got the above error,even I didn't have gpu.

Also tried cfg.MODEL.DEVICE = "cpu" from https://github.com/facebookresearch/detectron2/issues/300#issuecomment-552465720

output of python -m detectron2.utils.collect_env log.txt


sys.platform win32 Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)] Numpy 1.17.4 Detectron2 Compiler MSVC 192328106 Detectron2 CUDA Compiler not available DETECTRON2_ENV_MODULE PyTorch 1.3.1 PyTorch Debug Build False torchvision unknown CUDA available False Pillow 6.2.2 cv2 4.1.2


PyTorch built with: