15.02.2024, 04:33
Please note that usually you add in all the scripts using CUDA, the following code:
In the case of CodeFormer you don't add this code, because "dlib" is able to find the CUDA itself, but If you want help "dlib" to find CUDA on PC with a different installation you should add this code.
Please add it and let me know if it works.
Dan
# Adding torch dependencies to PATH
path = site.getsitepackages()[0]+'/torch_dependencies/bin/'
ctypes.windll.kernel32.SetDllDirectoryW(path)
path = path.replace('\\', '/')
os.environ["PATH"] = path + os.pathsep + os.environ["PATH"]
In the case of CodeFormer you don't add this code, because "dlib" is able to find the CUDA itself, but If you want help "dlib" to find CUDA on PC with a different installation you should add this code.
Please add it and let me know if it works.
Dan