Actions
Stable Diffusion Setup¶
Stable Diffusion <add info here>
Prerequisites¶
Hardware¶
- Modern Linux computer with 20 GB disk space
- NVidia GPU with >= 4 GB VRAM
CUDA¶
Installation of NVidia Driver and CUDA is not covered here.
Docker¶
- Ensure Docker prereqs are all installed:
- Install GPG key:
- Add Docker APT repository configuration:
- Install packages:
NVidia Container Toolkit¶
- Install GPG key and setup APT repository. Note if running on Mint you will need to manually change the .list file to use the Ubuntu release codename.
$ curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \ && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \ sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \ sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list - Install package:
- Restart docker:
Stable Diffusion Docker Container of WebUI¶
- Go to https://github.com/AbdBarho/stable-diffusion-webui-docker/releases, download the latest source code release (ZIP) under Assets. Unzip it somewhere.
- Go to the directory where you unzipped the archive, and run
this will download 12GB of pretrained models. Wait until it is finished, then
More details are available on the project's wiki: https://github.com/AbdBarho/stable-diffusion-webui-docker/wiki/Setup - Wait until you see
Then go to http://localhost:7860/ in any browser.
Install Agent Scheduler Extension¶
Using the built-in extension list:- Open the Extensions tab
- Open the "Install From URL" sub-tab
- Paste the repo url: https://github.com/ArtVentureX/sd-webui-agent-scheduler.git
- Click "Install"
Naughty Stuff¶
- Download one of the better 'Nudifying' models,
- Go to https://civitai.com/models/2661/uber-realistic-porn-merge-urpm (account required) and under Versions, click on 'URPMv1.2-inpainting', then at the right, download
- "Pruned Model SafeTensor (1.99 GB)"
- "Config"
- Save them to the
data/StableDiffusionfolder in the Webui docker project you unzipped earlier. The model file should be calleduberRealisticPornMerge_urpmv12-inpainting.safetensorsand the config file should be nameduberRealisticPornMerge_urpmv12-inpainting.yaml
- Go to https://civitai.com/models/2661/uber-realistic-porn-merge-urpm (account required) and under Versions, click on 'URPMv1.2-inpainting', then at the right, download
- Embeddings
- Add the following files in the
data/embeddings: https://gofile.io/d/az0mmz - These allow you to add
breasts,small_titsandStyle-Unshavedin your prompt, and provide better quality breasts / vaginas. The first one is more generalized, the latter is well.. yes. - Check the Discord link in the 'Additional Tips', ppl post additional embeddings on there.
- Add the following files in the
- Loading Model
- In the webui, at the top left, "Stable Diffusion checkpoint", hit the 'Refresh' icon.
- Now you should see the
uberRealisticPornMerge_urpmv12model in the list, select it.
- Model Parameters
- Go to the 'img2img' tab, and then the 'Inpaint' tab.
- In the first textarea (positive prompt), enter
- In the second textarea (negative prompt), enter
((clothing), (monochrome:1.3), (deformed, distorted, disfigured:1.3), (hair), jeans, tattoo, wet, water, clothing, shadow, 3d render, cartoon, ((blurry)), duplicate, ((duplicate body parts)), (disfigured), (poorly drawn), ((missing limbs)), logo, signature, text, words, low res, boring, artifacts, bad art, gross, ugly, poor quality, low quality, poorly drawn, bad anatomy, wrong anatomy
- If not otherwise mentioned, leave default,
- Masked content: fill (will just fill in the area without taking in to consideration the original masked 'content', but play around with others too)
* Inpaint area: Only masked - Sampling method: DPM++ SDE Karras (one of the better methods that takes care of using similar skin colors for masked area, etc)
*** Sampling steps: start with 20, then increase to 50 for better quality/results when needed. But the higher, the longer it takes. I have mostly good results with 20, but it all depends on the complexity of the source image and the masked area.
*** CFG Scale: 7 - 12 (mostly 7)
*** Denoise Strength: 0.75 (default, the lower you set this, the more it will look like the original masked area)
- Masked content: fill (will just fill in the area without taking in to consideration the original masked 'content', but play around with others too)
Miscellaneous¶
- Convert PNG files to JPG en masse:
Updated by almost 2 years ago · 5 revisions