Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.2.1 experimental gpu option #24

Merged
merged 8 commits into from
Aug 6, 2023
Merged

v1.2.1 experimental gpu option #24

merged 8 commits into from
Aug 6, 2023

Conversation

glucauze
Copy link
Owner

@glucauze glucauze commented Aug 4, 2023

This version adds the ability to use the GPU, a setting that can be configured in SD at startup. At the moment, this feature is only compatible with Windows and Linux, since the necessary dependencies for Mac are not included.

--faceswaplab_gpu options in SD args in webui-user.sh or webui-user.bat or on option is SD settings. Please be carefull, it will install onnxruntime-gpu that can mess your dependencies. So know what you are doing. See below for SDNEXT

The model stays loaded in VRAM and won't be unloaded after each use. Right now, I don't know a simple way to do this technically, so it's going to take up space. If your system's VRAM is limited, turning on this option might not be the best idea.

I've also made a change that could have some ripple effects. Before, I was automatically tweaking some detection parameters when loading a second model. That's not possible anymore, so I've moved the control for det_size and det_thresh to the global settings. There is auto_det_size option if you don't want to understand that, but it will take more VRAM.

For SD.Next, install dependencies manually :

on windows :

.\venv\Scripts\activate
cd .\extensions\sd-webui-faceswaplab\
 pip install .\requirements-gpu.txt

I think on a1111, it should be better.

I cannot enable GPU by default since it might break stuff in SDNEXT/A1111 due to numpy dependencies.

@glucauze glucauze added the enhancement New feature or request label Aug 4, 2023
@glucauze glucauze marked this pull request as draft August 4, 2023 15:23
@glucauze
Copy link
Owner Author

glucauze commented Aug 5, 2023

Ok managing dependencies for gpu is really a mess :/

For SD.Next, install dependencies manually :

on windows :

.\venv\Scripts\activate
cd .\extensions\sd-webui-faceswaplab\
 pip install .\requirements-gpu.txt

I think on a1111, it should be better.

I cannot enable GPU by default since it might break stuff in SDNEXT/A1111 due to numpy dependencies.

@glucauze glucauze marked this pull request as ready for review August 6, 2023 13:16
@glucauze glucauze merged commit 55b845c into main Aug 6, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant