Skip to content

Instantly share code, notes, and snippets.

@FurkanGozukara
Last active July 29, 2023 20:33
Show Gist options
  • Save FurkanGozukara/fdfb1c24a38509c8ec0184951ba12abf to your computer and use it in GitHub Desktop.
Save FurkanGozukara/fdfb1c24a38509c8ec0184951ba12abf to your computer and use it in GitHub Desktop.
How to run and install Automatic1111 Web UI and DreamBooth on RunPod with latest xformers
video of this gist : https://youtu.be/zA4LksIVas8
dreambooth extension commit id : 3324b6ab7fa661cf7d6b5ef186227dc5e8ad1878
sd web ui commit : 22bcc7be428c94e9408f589966c2040187245d81
fuser -k 3000/tcp
python relauncher.py
pip3 install torch==1.13.1 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
pip uninstall xformers
pip install https://huggingface.co/MonsterMMORPG/SECourses/resolve/main/xformers-0.0.19-cp310-cp310-manylinux2014_x86_64.whl
pip install -r requirements.txt
wget https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned.ckpt
wget https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.ckpt
https://github.com/d8ahazard/sd_dreambooth_extension
lora extended: https://github.com/KohakuBlueleaf/a1111-sd-webui-locon
@FurkanGozukara
Copy link
Author

Hello!!! I have been struggling for the past few days getting dreambooth to work in runpod using your instructions. I think they may be out of date with versions. For instance, git pull doesn't work anymore and there are other mis-match errors happening:

root@ae1bd986deb2:/workspace/stable-diffusion-webui# git pull fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). root@ae1bd986deb2:/workspace/stable-diffusion-webui#

Could you please update the info? I really need to train a model and you are the only resource out there (a great one too :)

yes git pull not working for web ui. alternatively you can download into workspace and extract into that folder

but rest is working you can follow the tutorial

if you can't make it i can install for you if you become our patreon supporter

@xofonno
Copy link

xofonno commented Apr 21, 2023 via email

@FurkanGozukara
Copy link
Author

Re: FurkanGozukara/runpod xformers.txt I would love your help, I am already a Patreon supporter, Preston Vance :)Sent using the mobile mail appOn 4/20/23 at 10:07 PM, Furkan Gözükara wrote: From: "Furkan Gözükara" @.>Date: April 20, 2023To: "FurkanGozukara" @.>Cc: "Comment" @.>Subject: Re: FurkanGozukara/runpod xformers.txt @FurkanGozukara commented on this gist. Hello!!! I have been struggling for the past few days getting dreambooth to work in runpod using your instructions. I think they may be out of date with versions. For instance, git pull doesn't work anymore and there are other mis-match errors happening: @.:/workspace/stable-diffusion-webui# git pull fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). @.***:/workspace/stable-diffusion-webui# Could you please update the info? I really need to train a model and you are the only resource out there (a great one too :) yes git pull not working for web ui. alternatively you can download into workspace and extract into that folder but rest is working you can follow the tutorial if you can't make it i can install for you if you become our patreon supporter —Reply to this email directly, view it on GitHub or unsubscribe.You are receiving this email because you commented on the thread. Triage notifications on the go with GitHub Mobile for iOS or Android.

great please dm me from discord: MonsterMMORPG#2198

@xofonno
Copy link

xofonno commented Apr 21, 2023 via email

@misterteetee
Copy link

misterteetee commented Apr 21, 2023

Just curious (also having out of memory issues on Runpod with 24GB of vram): the video references v1-5-pruned-ema but your link here is for v1-5-pruned.ckpt. Is that significant or a was there a reason for the change?

edit: issue here I'm having is OOM errors during training right after a sample image is generated (50 steps). If I set "Save Preview(s) Frequency" to 0, training seems to proceed (for now).

Steps: 1%|▋ | 75/7500 [00:25<40:49, 3.03it/s, inst_loss=0, loss=0.234, lr=1e-7, prior_loss=0.311, vram=18.1]

update2: training fails during an attempt to save the model at 500 steps

@xofonno
Copy link

xofonno commented Apr 21, 2023 via email

@FurkanGozukara
Copy link
Author

Just curious (also having out of memory issues on Runpod with 24GB of vram): the video references v1-5-pruned-ema but your link here is for v1-5-pruned.ckpt. Is that significant or a was there a reason for the change?

edit: issue here I'm having is OOM errors during training right after a sample image is generated (50 steps). If I set "Save Preview(s) Frequency" to 0, training seems to proceed (for now).

Steps: 1%|▋ | 75/7500 [00:25<40:49, 3.03it/s, inst_loss=0, loss=0.234, lr=1e-7, prior_loss=0.311, vram=18.1]

update2: training fails during an attempt to save the model at 500 steps

Sorry that I am not at home. This weekend is Eid here holy day. Hopefully I can help you later hour

@xofonno
Copy link

xofonno commented Apr 21, 2023 via email

@Shibashis98
Copy link

Hi I am getting this error after doing python relauncher.py .Please help. Stuck for 2 days.
dreambooth error

@FurkanGozukara
Copy link
Author

Hi I am getting this error after doing python relauncher.py .Please help. Stuck for 2 days. dreambooth error

hi updated file here

https://github.com/FurkanGozukara/Stable-Diffusion/blob/main/Tutorials/How-To-Install-DreamBooth-Extension-On-RunPod.md

@xofonno
Copy link

xofonno commented May 29, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment