Local Gen Installation

### Models

A Model is the sample resource from which the images are generated. If you want to generate an image in certain styles, a model is the minimum requirement you need to install in order to do so. Some models, especially anime ones will generate images that are desaturated. So in addition you may want to download a reccommend VAE in order to correct this. Lets walk through some models on the same prompts with our "lovely" Princess Knight serving as our model.

###### Nemu Generator Models:

* Anything 4.5 | Model Information | VAE [Desaturation Fix]

* AbyssOrangeMix3 (AOM3) | Model Information | VAE [Desaturation Fix]

* Counterfeit-v2.5 | Model Information | No VAE

###### RRAnon's Other Reccommended Alternative Models:

* Pastel Mix | Model Information | Same VAE as Anything

* Nyan Mix | Model Information | Same VAE as AOM3

### Step By Step Installation Instructions

1. After installing all neccessary programmes and model(s) of choice. Open your operating system file explorer. Choose where you want your Stable Diffusion installation to happen (I reccommend documents) and right click, then click "**Git Bash Here**".
2. A black command window should pop up. Enter "**git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui**`"`
3. Once the install has finished. Open the "**stable-diffusion-webui"** folder and then **"models"** and then **"Stable-diffusion"**.
4. Open your downloads in a seperate file explorer window. Copy and paste/click and drag your **model file** from your downloads (it should have the extension .ckpt or .safetenors) into the stable diffusion folder. (TIP: Renaming your model file to "model.ckpt or model.safetenors willl make it the default loaded model when you open the generator. If there isn't a file named "model" the generator will load models either alphabetically or by last used)
5. If your model has a VAE to go along with it. Open the "**stable-diffusion-webui"** folder and then **"models"** and then **"VAE"** and copy and paste the VAE (file extension .pt) from your downloads folder into there.
6. Almost there! Go to the **"stable-diffusion-webui"** folder and double click **webui-user.bat** to open the generator! (Note the first time of opening will take anywhere from 5 to 15 minutes as the generator sets up)
7. Once the Generator has finished loading it'll give you an address line in the command window **"Running on Local URL: HTTPAddress"** copy and paste that address into your browser to access the generator. To close the generator, close the command box.
8. Once this screen is open, you should start to see some familiar stuff. Your Model should be in the top left under **"Stable Diffusion Checkpoint"**. If you have a VAE you need to turn it on. Go to **Settings**, then **Stable Diffusion** and click **SDVAE** to select it. Then press Apply Settings to save. (Remember to switch the respective VAEs if you switch models)
9. You're all set to go! Play around with the options and start generating! I will eventually have a section below this to help improve your experience tenfold but for now you should be able to come up with some good basic stuff! If in doubt, open your nemu generations with notepad and copy and paste the prompts and settings from there!
10. **OPTIONAL BUT RECCOMMENDED.** If you're aren't one to care about time spent. Right Click **webui-user.bat** and click **edit**, on the text line **"set COMMANDLINE\_ARGS="** add "--medvram" and **save.** This reduces the strain on your VRAM, allowing you to generate in batches and at higher sizes but makes the generator slightly slower.

## RRAnon's Guide to LORA and Embeddings

### LORAs

LORAs are advanced additional networks that can be used as overlays on your generations to add a desired effect. Most commonly, a specific art style, pose or character design. To simplify, LORAs are the seasoning on top of Checkpoints/Models ingredients and just like seasoning, the right LORAs used in the right way can upgrade your generation from mediocrity to exceptional.

#### Where to find LORAs

LORAs can be found on many websites, however I'd always reccommend Civitai

#### How to install LORAs

Installing LORAs is very easy.

1. Download desired LORA
2. Move from Downloads folder to **stable-diffusion-webui\models\Lora**
3. In Webui, click the **playing card icon**, **underneath the generate button and between the clipboard and trash can**
4. A LORA tab should pop-up, click it and **the refresh button** to see your newly installed LORA

That's all. See? Very easy.

#### **How to use LORAs**

Using LORAs themselves can sometimes be a piece of cake and othertimes a piss take. How drastic the changes a LORA makes often directly relates to how much work is required on your end to get the right result. However, we are in luck! Most LORA authors on Civitai will provide a guide on their submission post about how to best use the LORA which means if we're ever stuck, we can go back to where we downloaded it from and follow along. Some LORAs also require a prompt trigger. With all that being said, here is my general guide to using LORAs

1. Enter our desired prompts for our generation as normal.
2. To add our LORA, we are going to go into the **LORA tab** we were in previously from clicking the **playing card icon**
3. **Clicking our desired LORA** will automatically add it to the **positive prompts box** as something like **<lora:name:1>**
4. The "1" is the default LORA weight and is a **decimal** similar to the weighting we did in our good gens guide above. Commonly ranging from 0.1 to 1
5. Most LORA authors will tell you the **preferable weight in their submission post**, so be sure to refer back to their post if stuck.
6. Once we're satisfied, like normal we click generate and the LORA will now be included in the generation process of our image.
7. As always, these things require **practice, experimentation and patience** and will unlikely be perfect first time around.

**Example:** LORA that overlays a new artstyle on this image of Raging Red

### Embeddings

Embeds (often called Textual Inversion) are small files that often influence our generations in small ways. Whilst they do not play as significant a role as LORAs do, they are extremely helpful for certain things. For example, abridging our negative prompts. Normally, you'd post several dozen negative prompts just to improve the quality of your image, however, with embeds, I have abridged these down to three negative prompts for every image generation. These are the following embeds that I use to handle all my negative prompts.

* **Easynegative**
* **Bad Hands**
* **Bad Artist**

#### Where to find Embeddings

Once again I reccommend Civitai. Where they are under **Textual Inversion**.

#### How to install Embeddings

1. Download desired embeddings
2. Move from Downloads folder to **stable-diffusion-webui\embeddings**
3. In Webui, click the **playing card icon**, **underneath the generate button and between the clipboard and trash can**
4. An Embeds tab should be available, click it and **the refresh button** to see your newly installed Embed

#### How to use Embeddings

Extremely easy, unlike LORAs, there is no weighting, just a prompt trigger so all we need to do is add the Embed to our desired prompt matrix and we're ready to go.

1. Enter our desired prompts for our generation as normal.
2. To add our Embed, we are going to go into the **Embed tab** by clicking the **playing card icon**
3. You're Embed will either be for your positive or negative prompt matrix, **if unsure, consult the submission page**
4. Click our **suitable prompt matrix** and then **click the Embed**
5. Generate your image!

## Elanon's Extras Desktop Waifu Generator Guide

### Automatic Updates in your local installation:

**Step 1:** Right click webui-user and click on edit.

**Step 2:** Write the following at the end of the script:

* *git pull*
* *call webui.bat*

### Guide to the Installation of Extensions:

Extensions are complements to the Automatic11111 local generator that will improve the quality of your images greatly in specific ways. In this guide I will show how to use of the most common extensions: ADetailer.

1. Open "Extensions" tab.
2. Open "Install from URL" tab in the tab.
3. Find the github page in which the extension is being worked on, in the case of ADetailer is the following:`https://github.com/Bing-su/adetailer.git` Enter the previous URL to "URL for extension's git repository".
4. Press "Install" button.
5. Wait 5 seconds, and you will see the message "Installed into stable-diffusion-webui\extensions\adetailer. Use Installed tab to restart".
6. Go to "Installed" tab, click "Check for updates", and then click "Apply and restart UI". (The next time you can also use this method to update extensions.)
7. Completely restart A1111 webui including your terminal. (If you do not know what is a "terminal", you can reboot your computer: turn your computer off and turn it on again.)

All extension can be installed like this.

### Some useful extensions:

Find below a couple of the most popular ones used by the WWA Players:

 adetailer
 sd-webui-agent-scheduler
 sd-webui-controlnet
 sd-webui-cutoff
 stable-diffusion-aesthetic-gradients