you can also donate crypto to 0x0da6a762250C62967fCb42E539e8d69B5E73f612
eth address
Quicklinks:
- Latest Setup
- HassanBlend Model Finetune Updates
- Latest Patreon Posts
- Models
- Prompts
- Photorealistic Tips
- Embeddings
- Hypernetworks
- Wildcards
- MyTools
- Settings I use
ED2.0 on Runpod
Start with the Automatic webui template, some libraries are already installed and make it easier
1. Open a new notebook on your runpod workspace root folder
Put the following in separate cells in your notebook:
Cell 1:
# check system resources, make sure your GPU actually has 24GB# You should see "0 MB / 24576 MB" in the middle of the printout# if you see 0 MB / 22000 MB find a different instance or provider...
!grep Swap /proc/meminfo
!swapon -s
!nvidia-smi
Cell 2:
!git clone https://github.com/victorchall/EveryDream2trainer
%cd /workspace/EveryDream2trainer
%mkdir input
finished\_msg = "DONE"
print(finished\_msg)
Cell 3:
Cell 4:
Cell 5:
Cell 6 – It downloads the huggingface model to a specific directory you can easily access
After the download was complete, I found my cktp file here in the workspace/EveryDream2trainer/models--stabilityai--stable-diffusion-2-1/snapshots/36a01dc742066de2e8c91e7cf0b8f6b53ef53da1/v2-1\_768-nonema-pruned.ckpt
You can also run this command to copy the file to your root (thanks Qu Slug)
!cp -L {downloaded_model_path} /workspace/EveryDream2trainer
When I tried to use the file I just downloaded from huggingface, there's some size mismatch error from runpods size but copy/pasting the file to your root will return it to full size.
Before running the train cell, have your inference.yaml file for V2 in the same root ED folder named the same as the model
Cell 8 – training
NOTES:
In order to train, you will need to either run your own train.py parameters according to the repo guide or edit train.json to make sure the "resume_cktp"
is matching your new cktp that was created after cell 7, either use the path where the conversion outputted the model file or else just copy the model from the converted path to your root ED2 folder and reference the CKTP in your train.json
If you are training with SD2.x, change the train.json to ed1_mode:false,
edit your resolution also.