# AUTOMATIC1111

{% hint style="info" %}
[**dreamlook.ai**](https://dreamlook.ai/) **lets you finetune Stable Diffusion models in minutes (first run is free!)**\
Follow this guide to use custom models trained on [dreamlook.ai](https://docs.dreamlook.ai/welcome-to-dreamlook.ai-docs) in AUTOMATIC1111.
{% endhint %}

AUTOMATIC1111 is one of the most advanced tool to create images with Stable Diffusion:

**🔗** [**https://github.com/AUTOMATIC1111/stable-diffusion-webui**](https://github.com/AUTOMATIC1111/stable-diffusion-webui)

## Step 1: Train your custom model on [dreamlook.ai](https://dreamlook.ai/)

Head to <https://dreamlook.ai/dreambooth>, and enable "Expert mode" to expose all the training options.

Select the checkpoint format "CompVis (AUTOMATIC1111-compatible)":

<figure><img src="https://3775798052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbjzMS9bi5lfz4h6oo4EA%2Fuploads%2FXKBfG24P9W0DfVkEQCeZ%2FScreenshot%202023-02-25%20at%2017.07.02.png?alt=media&#x26;token=82b2c0a5-b1c1-4ca6-938c-f652b2ea70fa" alt=""><figcaption></figcaption></figure>

You can choose other options freely such as the number of images, the number of training steps, the base model etc. Click on "Start job" when you're ready to train.

After the training finishes, find the CLI command to download the model on the model page. \
You will need it later to download the model to your AUTOMATIC1111 instance:

<figure><img src="https://3775798052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbjzMS9bi5lfz4h6oo4EA%2Fuploads%2Fu9qRioEnjjZ3TJEuIavi%2FScreenshot%202023-07-25%20at%2017.53.43.png?alt=media&#x26;token=1ac76aaf-29db-46a6-9d15-97b949fe63a5" alt=""><figcaption></figcaption></figure>

## Step 2: Start an AUTOMATIC1111 instance

There are [multiple ways](https://github.com/AUTOMATIC1111/stable-diffusion-webui#installation-and-running) to run AUTOMATIC1111, and the precise steps will depend on what you use.

In this guide, we will run it on Google Colab, using the excellent notebook from TheLastBen:&#x20;

**🔗** [**https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast\_stable\_diffusion\_AUTOMATIC1111.ipynb**](https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb)

* Simply open this Colab notebook, and run all the cells:

<figure><img src="https://3775798052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbjzMS9bi5lfz4h6oo4EA%2Fuploads%2Ftg4hWX9rUsmFbvGcnaQE%2FScreenshot%202023-02-25%20at%2017.29.11.png?alt=media&#x26;token=cc79c7df-1749-4c03-ac90-7044c9d6fcc8" alt=""><figcaption></figcaption></figure>

* After a while, you will see a public URL displayed:

<figure><img src="https://3775798052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbjzMS9bi5lfz4h6oo4EA%2Fuploads%2FpZSLZzXWX6Z3YAK8C6Bp%2FScreenshot%202023-02-25%20at%2017.29.33.png?alt=media&#x26;token=9cb7f80c-d8d8-4136-aba5-d6f50a028f2e" alt=""><figcaption></figcaption></figure>

* Open that URL to reveal the AUTOMATIC1111 web ui!

<figure><img src="https://3775798052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbjzMS9bi5lfz4h6oo4EA%2Fuploads%2FHRH0P2lV0gpAj5CtDaNy%2FScreenshot%202023-02-25%20at%2017.33.28.png?alt=media&#x26;token=df31e8d4-7837-4e02-95df-d59799fcc76f" alt=""><figcaption></figcaption></figure>

## Step 3: Add your custom model to AUTOMATIC1111

* Now that everything is setup, let's interrupt the web ui so we can download the checkpoint:

<figure><img src="https://3775798052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbjzMS9bi5lfz4h6oo4EA%2Fuploads%2FNcX63sYJGwi5ucnFWibO%2FScreenshot%202023-02-25%20at%2017.44.18.png?alt=media&#x26;token=227d08f3-623f-4677-818b-fd36a48ef70d" alt=""><figcaption></figcaption></figure>

* Use the URL to your model from [dreamlook.ai](https://dreamlook.ai/) (see [Step 1](#step-1-train-your-custom-model)), then create a new cell in the notebook and download the checkpoint to the AUTOMATIC1111 model folder:

```notebook-python
!wget --output "/content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/custom_model.safetensors" "<model_url>" 
```

<figure><img src="https://3775798052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbjzMS9bi5lfz4h6oo4EA%2Fuploads%2FGryweYWScFujXk6bPpzH%2FScreenshot%202023-02-25%20at%2017.41.52.png?alt=media&#x26;token=fced8ab3-b530-430d-8ea1-aca4f95345cf" alt=""><figcaption></figcaption></figure>

* You can now restart the web ui by running the previous cell. You will now be able to select your custom model in the "Stable Diffusion checkpoint" dropdown:

<figure><img src="https://3775798052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbjzMS9bi5lfz4h6oo4EA%2Fuploads%2FWyxu1xU3njmM1cXSh1Uw%2FScreenshot%202023-02-25%20at%2017.46.59.png?alt=media&#x26;token=0c28feba-9e19-4b68-9c3f-93c631105eef" alt=""><figcaption></figcaption></figure>

*It should be straightforward to adapt these steps if you use another AUTOMATIC1111 notebook or run it on another platform. If you have any issue, just ask on the* [*dreamlook.ai Discord server*](https://discord.gg/yX9D9KxHMS)*!*

## Step 4: Generate images!

You can now use the full power of the AUTOMATIC1111 web ui to create images 🤩🖼️

<figure><img src="https://3775798052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbjzMS9bi5lfz4h6oo4EA%2Fuploads%2FqJxvywMj3kxUlLAWEbb7%2FScreenshot%202023-02-25%20at%2017.48.21.png?alt=media&#x26;token=1767cfb7-8b6e-4348-992b-a173f95c23b7" alt=""><figcaption></figcaption></figure>

AUTOMATIC1111 is a powerful tool with a large array of options. There are many great tutorials to get started on YouTube - we particularly recommend content from [Aitrepreneur](https://www.youtube.com/@Aitrepreneur).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dreamlook.ai/generate-images/automatic1111.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
