BranLiang / stable-diffusion-webui-sage-maker

Use stable diffusion webui on sage maker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stable-diffusion-webui-sage-maker

Use stable diffusion webui on sagemaker studio lab for free.

Getting start

  1. Register your sagemaker studio lab account

Normally you will be approved within 1 week

https://studiolab.sagemaker.aws/

  1. Start your runtime with GPU

  2. Open a terminal

$ cd ~
  1. Create a new conda env in case you mess up later
$ conda create --name webui python=3.9 
$ conda activate webui
  1. Run the install.sh

This installation will install a base mode chilloutmix_NiPrunedFp32Fix.safetensors for you by default. If you want to use other base model, feel free to replace it with other base model.

Because the disk is pretty restricted in the sagemaker studio lab. Highly suggest not to install more than 2 base models.

bash install.sh
  1. Start the webui

Before running the following script. Make sure you get an API key from the ngrok. And replace the REPLACE_ME in the script with your own token.

bash start.sh
  1. After the first installation, next everytime you restart the runtime, you need to do the following steps to restart the webui
$ conda activate webui
$ bash start.sh

Gocha

  • If you want to use Lora from sources like civita, be sure to download the lora model to the new folder.

Credits

camenduru/stable-diffusion-webui-sagemaker

About

Use stable diffusion webui on sage maker


Languages

Language:Shell 100.0%