Actions
StableDiffusion » History » Revision 2
« Previous |
Revision 2/5
(diff)
| Next »
Anonymous, 02/26/2023 09:42 AM
saving progress
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:
- Setup APT repo:
- 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.
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
2. 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.
- 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.
- 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)
These are just recommendations / what works for me, experiment / test out yourself to see what works for you.
Updated by over 3 years ago · 5 revisions