You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.0 KiB

# Hacklahoma AI Image Workshop (Fall 2023)
1 year ago
## Launching a Stable Diffusion Instance on Cloud
Go to Google Cloud (or any other cloud provider), and open [console](https://console.cloud.google.com).
[Trial $300 Google Cloud credits](https://cloud.google.com/free/docs/free-cloud-features).
Create a VM with a GPU, at least 15GB RAM, and 30GB disk. Connect to SSH, install git, and clone this [Automatic1111 (A1111) repository](https://github.com/AUTOMATIC1111/stable-diffusion-webui).
`cd` in to the cloned directory and run:
```
$ bash ./
```
## text2img
Background: `text2img` can be thought of as generating visual content based on textual descriptions. Popular models include [DALL-E](https://openai.com/dall-e-2), [Midjourney](https://www.midjourney.com/home), and [Stable Diffusion](https://stability.ai/blog/stable-diffusion-public-release).
![](images/sd-latent-space.jpg)
## ControlNet (+ Stable Diffusion)
![](images/cn-sd.png)
Install extension for A1111: [`sd-webui-controlnet`](https://github.com/Mikubill/sd-webui-controlnet)