Skip to main content

Guide

Jarvislabs.ai Create Stable Diffusion

Use A1111 - Stable Diffusion web UI on Jarvislabs out of the box in less than 60+ seconds ⏰. It comes with 40+ preloaded models.

Automatic1111 (often abbreviated as A1111) is a popular web-based graphical user interface (GUI) built on top of Gradio for running Stable Diffusion, an AI-powered text-to-image generation model. It provides a user-friendly way to interact with Stable Diffusion through a web browser, offering a wide range of features and customization options for generating and manipulating images.

Access the web UI

Once you start the instance by clicking run on cloud button from the top, click on your instance "API" button. Jarvislabs.ai Web Stable Diffusion

You may see a cloudflare page as you start, it happens as the software required are being set on your instance. After few seconds, try refreshing the page. Curious to know what is happening, we will explore how to check the logs.

Access the logs

Open JupyterLab of your running instance, you can launch a terminal by the below steps.

Use the File → New → Terminal menu to launch a terminal

From the terminal, you can access the logs using:

tail -f automatic.log

The above command streams the logs as it happens.

Launch/Modify the parameters used to launch

If you want to launch the instance on your own, then simply kill the process. Lets take a look at the steps on how we can achieve it. From the terminal try the following commands.


ps aux | grep stable

root 51 56.2 0.5 22359980 1365600 ? Sl 08:49 0:20 python /home/stable-diffusion-webui/launch.py --xformers
root 342 0.0 0.0 3848 1024 pts/0 S+ 08:50 0:00 grep stable

In the output, process id is 51. Lets kill the process by using the below command:

kill -9 51 # replace 51 with the process id on your instance.

A simpler solution, but dangerous if you are running any other process in the background is:

pkill -f stable

This command will kill all processes that have "stable" in their command line

Now you can launch again by using the below command:

python /home/stable-diffusion-webui/launch.py --xformers

Add models to automatic 1111

You can use tools like wget to download model wieghts. To do it, open the terminal and go to the required location. For example, if you want to add a new model then follow the below steps:

cd /home/stable-diffusion-webui/models/Stable-diffusion
wget --content-disposition https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0_0.9vae.safetensors?download=true

Use Automatic1111 API

You can use Automatic1111 through API's too. To launch through API, follow the below steps:

tmux kill -t automatic
cd /home/stable-diffusion-webui/
python launch.py --xformers --api

Access the API endpoint from the UI. Jarvislabs.ai Web Stable Diffusion Right-click on the instance to get the API endpoint, to access the API. Example:

curl "API_ENDPOINT/sdapi/v1/sd-models"

Learn more about Automatic1111 api here.

Key Aspects

1. User Interface

  • Comprehensive set of controls and options in a web-based format
  • Easier image generation without relying on command-line interfaces

2. Advanced Features

  • Text-to-image generation
  • Image-to-image transformation
  • Inpainting and outpainting
  • Various image processing tools

3. Extensibility

  • Supports a wide range of extensions and plugins
  • Allows users to enhance functionality and add new features

4. Model Support

  • Works with various Stable Diffusion models and checkpoints
  • Enables switching between different versions or custom-trained models

5. Community-Driven Development

  • Active community contributes to rapid feature updates
  • Popular choice for advanced users

6. Customization

  • Adjustable settings include:
    • Sampling methods
    • Face restoration options
    • Output configurations
  • Allows fine-tuning of the image generation process

FAQs

What is Automatic1111?

Automatic1111 is a powerful web user interface (WebUI) specifically designed for Stable Diffusion, a text-to-image AI model. It provides a user-friendly and customizable platform to create stunning images based on your written prompts.

What are the requirements to run Automatic1111 on your own PC?
Hardware Requirements
  • GPU: A decent NVIDIA GPU with at least 8GB of VRAM (e.g., RTX 3060 Ti or higher)
  • CPU: A modern processor (i5 or Ryzen 5 or higher)
  • RAM: 16GB or more
Software Requirements
  • Operating System: Windows 10/11 or Linux
  • Python: Python 3.10 with libraries like PyTorch and CUDA Toolkit pre-installed
  • Command Line: Basic comfort with command prompts
Additional Requirements
  • Download files for the Stable Diffusion model (e.g., 1.5 or 2.1) and Automatic1111 itself
  • Sufficient storage space on your PC for models and generated images
What are the requirements for using Automatic1111 with an online GPU instance?
Hardware Requirements
  • No powerful PC needed; processing happens on cloud servers
Software Requirements
  • Web Browser: Any modern browser like Chrome, Firefox, Edge, etc.
  • Internet Connection: Stable and high-speed for smooth processing and file transfers
  • Cloud Account: Sign up for a service providing access to powerful GPUs for a fee (e.g., Jarvislabs, Google Colab, Paperspace)
Where can I download Automatic1111?

If you want to run Automatic1111 on your own PC, the source code and installation instructions are available on GitHub at Automatic1111. Alternatively, you can use an online GPU instance like Jarvislabs.

Is Automatic1111 free to use?

Yes, both Automatic1111 and Stable Diffusion are open-source and free to use. However, you may need to pay for cloud computing resources depending on your hardware limitations.

Can I use Automatic1111 to edit existing images?

Yes, you can use Automatic1111 to edit existing images in Image2Image mode. For more details about editing existing images, please refer to our Image2Image documentation.