|
|
|
|
@ -28,6 +28,9 @@ run from stable-diffusion-cpuonly directory if you are running on nvidia gpu wit
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
mkdir -p models/ldm/stable-diffusion-v1/
|
|
|
|
|
mkdir -p outputs/extras-samples
|
|
|
|
|
mkdir -p outputs/img2img-samples/samples
|
|
|
|
|
mkdir -p outputs/txt2img-samples/samples
|
|
|
|
|
conda install pytorch torchvision torchaudio -c pytorch
|
|
|
|
|
conda env create -f environment.yaml
|
|
|
|
|
conda activate ldm
|
|
|
|
|
@ -39,10 +42,18 @@ run from stable-diffusion-cpuonly directory
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
mkdir -p models/ldm/stable-diffusion-v1/
|
|
|
|
|
|
|
|
|
|
conda install pytorch torchvision torchaudio cpuonly -c pytorch
|
|
|
|
|
conda env create -f environment-cpuonly.yaml
|
|
|
|
|
conda activate ldm
|
|
|
|
|
```
|
|
|
|
|
```
|
|
|
|
|
pip install -e git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers
|
|
|
|
|
pip install -e git+https://github.com/openai/CLIP.git@main#egg=clip
|
|
|
|
|
pip install -e git+https://github.com/TencentARC/GFPGAN#egg=GFPGAN
|
|
|
|
|
pip install -e git+https://github.com/xinntao/Real-ESRGAN#egg=realesrgan
|
|
|
|
|
pip install -e git+https://github.com/hlky/k-diffusion-sd#egg=k_diffusion
|
|
|
|
|
```
|
|
|
|
|
Go here and download the correct mode from here. YOu'll have to agree to the license setup an account, I believe.
|
|
|
|
|
This the bread and butter AI art generating learning model.
|
|
|
|
|
...
|
|
|
|
|
@ -52,18 +63,18 @@ https://huggingface.co/CompVis/stable-diffusion-v-1-4-original
|
|
|
|
|
copy it to your stable-diffusion-cpuonly/models/ldm/stable-diffusion-v1 directory and rename it to model.ckpt
|
|
|
|
|
|
|
|
|
|
Download the model - this is for better face generation or cleanup
|
|
|
|
|
...
|
|
|
|
|
```
|
|
|
|
|
https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth
|
|
|
|
|
...
|
|
|
|
|
```
|
|
|
|
|
and copy it to your stable-diffusion-cpuonly/src/GFPGAN/experiments/pretrained_models directory
|
|
|
|
|
|
|
|
|
|
Download the model - this is for upscaling your images
|
|
|
|
|
...
|
|
|
|
|
```
|
|
|
|
|
https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth
|
|
|
|
|
...
|
|
|
|
|
...
|
|
|
|
|
```
|
|
|
|
|
```
|
|
|
|
|
https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.2.4/RealESRGAN_x4plus_anime_6B.pth
|
|
|
|
|
...
|
|
|
|
|
```
|
|
|
|
|
and copy these to your stable-diffusion-cpuonly/src/realsrgan/experiments/pretrained_models directory
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|