You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the FCOS model in a Windows 11 environment, and I followed the option 1 installation steps in Install.md. During the quick demo stage, after downloading the .pth file, I ran python demo/fcos_demo.py and encountered the following error:
(FCOS) PS E:\Defect_detection_in_the_textile_industry\FCOS> python demo/fcos_demo.py
Traceback (most recent call last):
File "demo/fcos_demo.py", line 109, in
main()
File "demo/fcos_demo.py", line 90, in main
coco_demo = COCODemo(
File "E:\Defect_detection_in_the_textile_industry\FCOS\demo\predictor.py", line 112, in init
self.model.to(self.device)
File "D:\Anaconda3\envs\FCOS\lib\site-packages\torch\nn\modules\module.py", line 1174, in to
return self._apply(convert)
File "D:\Anaconda3\envs\FCOS\lib\site-packages\torch\nn\modules\module.py", line 780, in _apply
module._apply(fn)
File "D:\Anaconda3\envs\FCOS\lib\site-packages\torch\nn\modules\module.py", line 780, in _apply
module._apply(fn)
[Previous line repeated 1 more time]
File "D:\Anaconda3\envs\FCOS\lib\site-packages\torch\nn\modules\module.py", line 805, in apply
param_applied = fn(param)
File "D:\Anaconda3\envs\FCOS\lib\site-packages\torch\nn\modules\module.py", line 1160, in convert
return t.to(
File "D:\Anaconda3\envs\FCOS\lib\site-packages\torch\cuda_init.py", line 305, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled
It appears that the Torch version installed following the install.md instructions doesn't support CUDA.
Could you please advise how to modify the project to resolve this issue and enable CUDA support? Is there a specific Torch version that is compatible with CUDA and this project?
Thanks for your help!
Best regards,
Yonom1
The text was updated successfully, but these errors were encountered:
Dear Author,
I am using the FCOS model in a Windows 11 environment, and I followed the option 1 installation steps in Install.md. During the quick demo stage, after downloading the .pth file, I ran python demo/fcos_demo.py and encountered the following error:
(FCOS) PS E:\Defect_detection_in_the_textile_industry\FCOS> python demo/fcos_demo.py
Traceback (most recent call last):
File "demo/fcos_demo.py", line 109, in
main()
File "demo/fcos_demo.py", line 90, in main
coco_demo = COCODemo(
File "E:\Defect_detection_in_the_textile_industry\FCOS\demo\predictor.py", line 112, in init
self.model.to(self.device)
File "D:\Anaconda3\envs\FCOS\lib\site-packages\torch\nn\modules\module.py", line 1174, in to
return self._apply(convert)
File "D:\Anaconda3\envs\FCOS\lib\site-packages\torch\nn\modules\module.py", line 780, in _apply
module._apply(fn)
File "D:\Anaconda3\envs\FCOS\lib\site-packages\torch\nn\modules\module.py", line 780, in _apply
module._apply(fn)
[Previous line repeated 1 more time]
File "D:\Anaconda3\envs\FCOS\lib\site-packages\torch\nn\modules\module.py", line 805, in apply
param_applied = fn(param)
File "D:\Anaconda3\envs\FCOS\lib\site-packages\torch\nn\modules\module.py", line 1160, in convert
return t.to(
File "D:\Anaconda3\envs\FCOS\lib\site-packages\torch\cuda_init.py", line 305, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled
It appears that the Torch version installed following the install.md instructions doesn't support CUDA.
Could you please advise how to modify the project to resolve this issue and enable CUDA support? Is there a specific Torch version that is compatible with CUDA and this project?
Thanks for your help!
Best regards,
Yonom1
The text was updated successfully, but these errors were encountered: