How to Use Different Assets with Stable Diffusion for Amazing Images: Fine-Tuned Models, Textual Inversions, Aesthetic Gradients, Hypernetwork, and LoRA.
How you use the various types of assets available on the site depends on the tool that you’re using to generate your images using Stable Diffusion.
AUTOMATIC1111
Dreambooth Models)
Fine-tuned Model Checkpoints (- Download the custom model
- Place the model inside the directory of your AUTOMATIC1111 Web UI instance
models/Stable-diffusion
- Refresh your model list or restart the Stable Diffusion Web UI
- Select the custom model from the input field
Stable Diffusion checkpoint
- Use the trained keyword in a prompt (listed on the custom model’s page)
- Make awesome images!
Textual Inversions
- Download the textual inversion
- Place the textual inversion inside the directory of your AUTOMATIC1111 Web UI instance
embeddings
- Use the trained keyword in a prompt (listed on the textual inversion’s page)
- Make awesome images!
Aesthetic Gradients
- Install the Aesthetic Gradients extension
- Download the aesthetic gradient
- Place the aesthetic graident inside the directory of your AUTOMATIC1111 Web UI instance
aesthetic_embeddings
- Restart the Stable Diffusion Web UI
- Adjust the aesthetic gradient setting
- Make awesome images!
Hypernetwork
- Download the hypernetwork
- Place the hypernetwork inside the directory of your AUTOMATIC1111 Web UI instance
models/hypernetworks
- Restart the Stable Diffusion Web UI
- Select the hypernetwork from the input field in settings
Hypernetwork
- Adjust the hypernetwork strength using the range slider in settings
Hypernetwork strength
- Make awesome images!
LoRA
- Download the LoRA
- Place the file inside the folder
models/lora
- Click on the button under the button (purple icon)
show extra networks
Generate
- Go to the tab and refresh if needed
Lora
- Click on the one you want to apply, it will be added in the prompt
- Make sure to adjust the weight, by default it’s which is usually to high
:1
Old UI (Versions Prior to Jan 20th)
- Ensure that you’ve installed the Additional Networks extension, you can do this from the extensions tab. After installing you will need to restart AUTOMATIC1111.
- Download the LoRA
- Place the file inside the folder
extensions/sd-webui-additional-networks/models/lora
- On the or tab, dropdown the area at the bottom of the page
txt2img
img2img
Additional Networks
- Check enable
- Set to the LoRA model you downloaded
Model 1
- Set to a a good starting value and adjust as needed
Weight 1
0.85
- Make awesome images!
Note: You can use a LoRA with any model, but usually they are trained on a specific model and will perform best on that model or a derivative of that model.
LoCon
- Ensure that you’ve installed the LoCon Extension
- Download the LoCon
- Place the file inside the folder
models/lora
- Click on the button under the button (purple icon)
show extra networks
Generate
- Go to the tab and refresh if needed
Lora
- Click on the one you want to apply, it will be added in the prompt
- Make sure to adjust the weight, by default it’s which is usually to high
:1
Wildcards
- Ensure that you’ve installed the Wildcard Extension
- Download the Wildcards archive
- Extract the archive into
extensions/stable-diffusion-webui-wildcards/wildcards
- Use one or many of the wildcard words in your prompt to trigger the word replacement on generation (ex.
__hair-style__
)
Cmdr2’s Stable Diffusion UI v2
🙏 Thanks JeLuF for providing these directions
Fine-tuned Model Checkpoints (Dreambooth Models)
- Download the custom model in Checkpoint format (.ckpt)
- Place the model file inside the models\stable-diffusion directory of your installation directory (e.g. C:\stable-diffusion-ui\models\stable-diffusion)
- Reload the web page to update the model list
- Select the custom model from the Model list in the Image Settings section
- Use the trained keyword in a prompt (listed on the custom model’s page)
aiNodes
🙏 Thanks osi1880vr for providing these directions
- Open the model download widget, search for the models in the list from Civitai.
- Select the model you want as well as the config yaml which has to be used by that model.
- Wait until the progressbar shows 100%.
- Go back to the sampler widget where you choose the model from the list of installed models and press the dream button to render your prompt with the downloaded model.
You can follow these directions to download checkpoints (ckpt, safetensors), hypernetworks, textual inversion or aesthetic gradients. (And soon VAEs). We also support V2 models, both V2 formats are welcome here.
For all those steps you never leave the UI, just click buttons and you stay in your flow of creating art, not getting distracted with having to deal with your OS to move files or anything like that. It is as convenient as possible for now.