Log in

View Full Version : Help with "CUDA is not available" error in vspropainter


poisondeathray
9th December 2024, 16:44
1.0.1

__init__.py", line 97, in propainter
raise vs.Error("propainter: CUDA is not available")
vapoursynth.Error: propainter: CUDA is not available


1.2.1

_init__.py", line 165, in propainter_inpaint
raise vs.Error("propainter: CUDA is not available")
vapoursynth.Error: propainter: CUDA is not available


vspropainter (1.0.1) worked yesterday , but I was fiddling around with Torch/CUDA versions to get vs_mfdin to work

I tried different vspropainter versions , Torch/CUDA matching and even unmatched versions

But in all combinations I tested, Torch/CUDA works ok in other vpy scripts like vsdpir, hinet...

Also,

import torch
print(torch.cuda.is_available())
>> True


Also , propainter Torch/Cuda works ok outside of vapoursynth

CUDA entries are correct in the windows system path (and if other scripts, and propainter outside of vapoursynth can access CUDA, it shouldn't be a problem)

Any ideas ??

poisondeathray
9th December 2024, 17:52
I spent hours on this yesterday and today...

It's very weird behaviour but it works - if you run some other vpy script first with Torch/CUDA(can be anything, e.g. vsdpir), then open a propainter vpy script - it works . It's like CUDA needs to be initialized first or something for the vspropainter script ( but the other first run non vspropainter Torch/CUDA script works regardless for some reason)

I don't think it's "supposed" to be like that; and I used vspropainter dozens of times in the last few days without that issue - but at least it's a workaround for anyone who has similar problems and wasted a bunch of times with install/uninstalls that didn't fix anything

But if anyone knows the proper fix, please post it.

(The proper fix is probably uninstall /format everything / start from scratch / reinstall)