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
#5
Star 
I called:
python -m pip uninstall dlib
python -m pip uninstall dlib-bin
I checked that the 'Vapoursynth\Lib\site-packages'-folder does not contain any dlib folders. (https://pastebin.com/E9ZJDZKq)
I called
python -m pip list[/list] (https://pastebin.com/MeJPA2Kq)
I then called 'python -m pip install dlib-19.24.99-cp312-cp312-win_amd64.whl'
[code]
Processing f:\hybrid\64bit\vapoursynth\dlib-19.24.99-cp312-cp312-win_amd64.whl
Installing collected packages: dlib
Successfully installed dlib-19.24.99'
Sadly, I still get:
2024-06-01 15:33:04.544
Failed to evaluate the script:
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\tempPreviewVapoursynthFile15_33_02_257.vpy", line 42, in
clip = CodeFormer(clip=clip, upscale=1, detector=1) # 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

I also uninstalled and reinstalled vscodeformer.
F:\Hybrid\64bit\Vapoursynth>python -m pip uninstall vscodeformer
Found existing installation: vscodeformer 1.0.1
Uninstalling vscodeformer-1.0.1:
  Would remove:
    f:\hybrid\64bit\vapoursynth\lib\site-packages\vscodeformer-1.0.1.dist-info\*
    f:\hybrid\64bit\vapoursynth\lib\site-packages\vscodeformer\*
Proceed (Y/n)?
  Successfully uninstalled vscodeformer-1.0.1

F:\Hybrid\64bit\Vapoursynth>python -m pip install vscodeformer
Collecting vscodeformer
  Using cached vscodeformer-1.0.1-py3-none-any.whl.metadata (3.3 kB)
Requirement already satisfied: numpy>=1.24.2 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from vscodeformer) (1.26.4)
Requirement already satisfied: opencv-python>=4.7.0.72 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from vscodeformer) (4.9.0.80)
Requirement already satisfied: requests>=2.28.2 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from vscodeformer) (2.32.2)
Requirement already satisfied: torch>=1.13.1 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from vscodeformer) (2.4.0.dev20240523+cu121)
Requirement already satisfied: torchvision>=0.14.1 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from vscodeformer) (0.19.0.dev20240526+cu121)
Requirement already satisfied: tqdm>=4.65.0 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from vscodeformer) (4.66.4)
Requirement already satisfied: vapoursynth>=55 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from vscodeformer) (68)
Requirement already satisfied: charset-normalizer<4,>=2 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from requests>=2.28.2->vscodeformer) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from requests>=2.28.2->vscodeformer) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from requests>=2.28.2->vscodeformer) (2.2.1)
Requirement already satisfied: certifi>=2017.4.17 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from requests>=2.28.2->vscodeformer) (2024.2.2)
Requirement already satisfied: filelock in f:\hybrid\64bit\vapoursynth\lib\site-packages (from torch>=1.13.1->vscodeformer) (3.14.0)
Requirement already satisfied: typing-extensions>=4.8.0 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from torch>=1.13.1->vscodeformer) (4.12.0)
Requirement already satisfied: sympy in f:\hybrid\64bit\vapoursynth\lib\site-packages (from torch>=1.13.1->vscodeformer) (1.12)
Requirement already satisfied: networkx in f:\hybrid\64bit\vapoursynth\lib\site-packages (from torch>=1.13.1->vscodeformer) (3.3)
Requirement already satisfied: jinja2 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from torch>=1.13.1->vscodeformer) (3.1.4)
Requirement already satisfied: fsspec in f:\hybrid\64bit\vapoursynth\lib\site-packages (from torch>=1.13.1->vscodeformer) (2024.5.0)
Requirement already satisfied: mkl<=2021.4.0,>=2021.1.1 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from torch>=1.13.1->vscodeformer) (2021.4.0)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from torchvision>=0.14.1->vscodeformer) (10.1.0)
Requirement already satisfied: colorama in f:\hybrid\64bit\vapoursynth\lib\site-packages (from tqdm>=4.65.0->vscodeformer) (0.4.6)
Requirement already satisfied: intel-openmp==2021.* in f:\hybrid\64bit\vapoursynth\lib\site-packages (from mkl<=2021.4.0,>=2021.1.1->torch>=1.13.1->vscodeformer) (2021.4.0)
Requirement already satisfied: tbb==2021.* in f:\hybrid\64bit\vapoursynth\lib\site-packages (from mkl<=2021.4.0,>=2021.1.1->torch>=1.13.1->vscodeformer) (2021.12.0)
Requirement already satisfied: MarkupSafe>=2.0 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from jinja2->torch>=1.13.1->vscodeformer) (2.1.5)
Requirement already satisfied: mpmath>=0.19 in f:\hybrid\64bit\vapoursynth\lib\site-packages (from sympy->torch>=1.13.1->vscodeformer) (1.3.0)
Using cached vscodeformer-1.0.1-py3-none-any.whl (42 kB)
Installing collected packages: vscodeformer

F:\Hybrid\64bit\Vapoursynth>python -m vscodeformer
codeformer.pth: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 359M/359M [00:28<00:00, 13.1MB/s]
detection_Resnet50_Final.pth: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 104M/104M [00:08<00:00, 13.1MB/s]
parsing_parsenet.pth: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 81.4M/81.4M [00:06<00:00, 13.1MB/s]
mmod_human_face_detector-4cb19393.dat: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 713k/713k [00:00<00:00, 9.31MB/s]
shape_predictor_5_face_landmarks-c4b1e980.dat: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8.73M/8.73M [00:00<00:00, 12.8MB/s]
That didn't help either.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
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
RE: dlib 19.24.99 with CUDA - by Selur - 29.09.2024, 07:41
RE: dlib 19.24.99 with CUDA - by Dan64 - 29.09.2024, 09:49
RE: dlib 19.24.99 with CUDA - by Selur - 29.09.2024, 09:53
RE: dlib 19.24.99 with CUDA - by Selur - 29.09.2024, 09:56
RE: dlib 19.24.99 with CUDA - by Selur - 01.10.2024, 20:16
RE: dlib 19.24.99 with CUDA - by Dan64 - 02.10.2024, 17:44
RE: dlib 19.24.99 with CUDA - by Selur - 03.10.2024, 07:27
RE: dlib 19.24.99 with CUDA - by Selur - 20.10.2024, 18:59

Forum Jump:


Users browsing this thread: 2 Guest(s)