This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

dlib 19.24.99 with CUDA
#3
I called:
python -m pip install dlib
python -m pip install dlib-19.24.99-cp312-cp312-win_amd64.whl
it installed fine:
Processing f:\hybrid\64bit\vapoursynth\dlib-19.24.99-cp312-cp312-win_amd64.whl
Installing collected packages: dlib
Successfully installed dlib-19.24.99
but it does not work.
Using:
I get:
Python exception: cannot access local variable 'dlib' where it is not associated with a value

Traceback (most recent call last):
File "src\\cython\\vapoursynth.pyx", line 3365, in vapoursynth._vpy_evaluate
File "src\\cython\\vapoursynth.pyx", line 3366, in vapoursynth._vpy_evaluate
File "J:\tmp\tempPreviewVapoursynthFile14_49_39_867.vpy", line 42, in
clip = CodeFormer(clip=clip, upscale=1, detector=1, weight=1.000) # 640x352
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\vscodeformer\__init__.py", line 103, in codeformer
FaceRestoreHelper(upscale, det_model=detection_model, use_parse=True, device=device) for _ in range(num_streams)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\vscodeformer\face_restoration_helper.py", line 113, in __init__
self.face_detector, self.shape_predictor_5 = self.init_dlib()
^^^^^^^^^^^^^^^^
File "F:\Hybrid\64bit\Vapoursynth\Lib\site-packages\vscodeformer\face_restoration_helper.py", line 173, in init_dlib
face_detector = dlib.cnn_face_detection_model_v1(detection_path)
^^^^
UnboundLocalError: cannot access local variable 'dlib' where it is not associated with a value

changing:
if 'ON' == 'ON':
    add_lib_to_dll_path('C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.4/lib/x64/cudnn.lib')
    add_lib_to_dll_path('C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.4/lib/x64/cudart.lib')
to
if 'OFF' == 'ON':
    add_lib_to_dll_path('')
    add_lib_to_dll_path('CUDA_CUDART_LIBRARY-NOTFOUND')
does not help. (CUDA/v11.4 seem to be wrong too)
Note that with R68, Hybrid does no longer add any dlls to the PATH (torch_dependencies are no longer used/needed)

Cu Selur
Reply


Messages In This Thread
dlib 19.24.99 with CUDA - by Dan64 - 01.06.2024, 13:52
RE: dlib 19.24.99 with CUDA - by Selur - 01.06.2024, 14:08
RE: dlib 19.24.99 with CUDA - by Selur - 01.06.2024, 14:58
RE: dlib 19.24.99 with CUDA - by Dan64 - 01.06.2024, 15:25
RE: dlib 19.24.99 with CUDA - by Selur - 01.06.2024, 15:34
RE: dlib 19.24.99 with CUDA - by Dan64 - 01.06.2024, 15:52
RE: dlib 19.24.99 with CUDA - by Selur - 01.06.2024, 16:03
RE: dlib 19.24.99 with CUDA - by Dan64 - 01.06.2024, 16:06
RE: dlib 19.24.99 with CUDA - by Selur - 01.06.2024, 16:15
RE: dlib 19.24.99 with CUDA - by Selur - 01.06.2024, 16:22
RE: dlib 19.24.99 with CUDA - by Dan64 - 01.06.2024, 16:35
RE: dlib 19.24.99 with CUDA - by Selur - 01.06.2024, 16:54
RE: dlib 19.24.99 with CUDA - by Dan64 - 03.06.2024, 21:56
RE: dlib 19.24.99 with CUDA - by Selur - 09.06.2024, 11:24

Forum Jump:


Users browsing this thread: 2 Guest(s)