Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError: Torch not compiled with CUDA enabled #375

Open
MasterDNK00 opened this issue Jul 23, 2024 · 0 comments
Open

AssertionError: Torch not compiled with CUDA enabled #375

MasterDNK00 opened this issue Jul 23, 2024 · 0 comments

Comments

@MasterDNK00
Copy link

I'm trying to run the python scripts/knn2img.py, but I constantly get the following error.

Traceback (most recent call last): File "scripts/knn2img.py", line 314, in <module> model = load_model_from_config(config, f"{opt.ckpt}") File "scripts/knn2img.py", line 60, in load_model_from_config model.cuda() File "C:\Users\sinan\anaconda3\envs\ldm\lib\site-packages\lightning_fabric\utilities\device_dtype_mixin.py", line 72, in cuda device = torch.device("cuda", torch.cuda.current_device()) File "C:\Users\sinan\anaconda3\envs\ldm\lib\site-packages\torch\cuda\__init__.py", line 778, in current_device _lazy_init() File "C:\Users\sinan\anaconda3\envs\ldm\lib\site-packages\torch\cuda\__init__.py", line 284, in _lazy_init raise AssertionError("Torch not compiled with CUDA enabled") AssertionError: Torch not compiled with CUDA enabled

Please kindly advise me on how to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant