Open TWIISTED-STUDIOS opened 1 year ago
In the install.py script I install it in the sd way along with cmake:
run(f'"{python}" -m pip install cmake', desc="Installing cmake", errdesc="Couldn't install cmake")
run(f'"{python}" -m pip install dlib==19.24.0', desc="Installing dlib", errdesc="Couldn't install dlib")
Cmake is required to build dlib wheel. I install it in the venv but it seems that sometimes this do not work so I add this message in the install script to point the users to https://cmake.org/download/
I will look into this, thanks.
changing the dlib version to 19.24.1 in install.py seems to make it work-- not sure if the new version breaks anything. This is for ubuntu 23.04 installs.
dlib==19.24.1
I must've tried 50 different ways to get dlib installed but nothing seems to work (Windows 10, SD 1.4.0RC). I have Visual Studio Community 2022 and Visual Studio Build Tools 2022 installed (they seem to be redundant) along with scads of C++ Workloads and Individual Components.
I did try this one that seems to have worked for many but didn't for me: https://stackoverflow.com/questions/59336845/installation-of-dlib-with-pip-fails-on-windows-10
I think I finally got it working by downloading from source, compiling, and installing: https://github.com/ageitgey/face_recognition/issues/894#issuecomment-609104862
Maybe that'll save someone some time. dlib REALLY didn't want to install for me. Note that the last step he had python3 but that didn't work for me, just using 'python' did, though.
This was actually really difficult for me to install - probably the one extension I had the most trouble with, and similar to when I started using Diffusion and had issues with WD Tagger and similar extensions (Prompt Travel was a nightmare). I don't use CMake at all, really, and so I was sort of out of my element. I kept getting random errors about CMake not having a compiler, or CMake needs to be installed to install dlib. I also wanted to keep most of the things I use for SD strictly within the python environment.
I had tried for hours probably, to get this extension to work, and just gave up. I came back to it and I was at the point of trying to manually compile dlib with the CMake GUI and I had no clue wtf I was doing. What I ended up doing was completely uninstalling Visual Studio and reinstalling it directly to the SD WebUI folder. For people more fluent with CMake, I'm sure this seems stupid but there are a lot of people, I imagine, that just want to start using SD but are code-illiterate. If you get these types of issues, I think it's important to ensure that your CMake knows where your C++ compiler is, typically installed along with Visual Studio in the installer. It seems my main issue was having Studio and CMake installed in separate drives and having no clue how to point CMake to the proper compiler. I'm also unsure as to whether or not you'd have these same issues if you installed CMake globally, but I was too worn out to try.
After I installed VS to the webUI folder, I deleted the venv folder and restarted it, and it worked flawlessly. This is a great extension @ilian6806 and thank you for your work on it.
This is a very interesting error especially when inside the venv of SD CMAKE is already installed
and this is most of the error you recive, the rest is just the same thing over and over again when it trys to load the mask commands.
It's an easy fix I just launch the env and directly install it pip install dlib and it's done but I thought you would like to know that the script is saying cmake isn't installed when it is so it cant build the wheel, but you can manually do it directly in the env.