From cb491bbd270ae999ee7afa73bb6cf3e380b62da9 Mon Sep 17 00:00:00 2001 From: Christopher Williams Date: Tue, 30 Aug 2022 15:51:29 -0400 Subject: [PATCH] quick fix --- README.md | 23 ++++++++++++++----- environment-cpuonly.yaml | 5 ---- latent_diffusion.egg-info/PKG-INFO | 4 ---- latent_diffusion.egg-info/SOURCES.txt | 8 ------- .../dependency_links.txt | 1 - latent_diffusion.egg-info/requires.txt | 3 --- latent_diffusion.egg-info/top_level.txt | 1 - 7 files changed, 17 insertions(+), 28 deletions(-) delete mode 100644 latent_diffusion.egg-info/PKG-INFO delete mode 100644 latent_diffusion.egg-info/SOURCES.txt delete mode 100644 latent_diffusion.egg-info/dependency_links.txt delete mode 100644 latent_diffusion.egg-info/requires.txt delete mode 100644 latent_diffusion.egg-info/top_level.txt diff --git a/README.md b/README.md index 59341c6..8413cea 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/environment-cpuonly.yaml b/environment-cpuonly.yaml index 984166e..856c332 100644 --- a/environment-cpuonly.yaml +++ b/environment-cpuonly.yaml @@ -36,9 +36,4 @@ dependencies: - gradio - keras-unet - fairseq - - -e git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers - - -e git+https://github.com/openai/CLIP.git@main#egg=clip - - -e git+https://github.com/TencentARC/GFPGAN#egg=GFPGAN - - -e git+https://github.com/xinntao/Real-ESRGAN#egg=realesrgan - - -e git+https://github.com/hlky/k-diffusion-sd#egg=k_diffusion - -e . diff --git a/latent_diffusion.egg-info/PKG-INFO b/latent_diffusion.egg-info/PKG-INFO deleted file mode 100644 index b4eff47..0000000 --- a/latent_diffusion.egg-info/PKG-INFO +++ /dev/null @@ -1,4 +0,0 @@ -Metadata-Version: 2.1 -Name: latent-diffusion -Version: 0.0.1 -License-File: LICENSE diff --git a/latent_diffusion.egg-info/SOURCES.txt b/latent_diffusion.egg-info/SOURCES.txt deleted file mode 100644 index 4629131..0000000 --- a/latent_diffusion.egg-info/SOURCES.txt +++ /dev/null @@ -1,8 +0,0 @@ -LICENSE -README.md -setup.py -latent_diffusion.egg-info/PKG-INFO -latent_diffusion.egg-info/SOURCES.txt -latent_diffusion.egg-info/dependency_links.txt -latent_diffusion.egg-info/requires.txt -latent_diffusion.egg-info/top_level.txt \ No newline at end of file diff --git a/latent_diffusion.egg-info/dependency_links.txt b/latent_diffusion.egg-info/dependency_links.txt deleted file mode 100644 index 8b13789..0000000 --- a/latent_diffusion.egg-info/dependency_links.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/latent_diffusion.egg-info/requires.txt b/latent_diffusion.egg-info/requires.txt deleted file mode 100644 index 8cb0fc9..0000000 --- a/latent_diffusion.egg-info/requires.txt +++ /dev/null @@ -1,3 +0,0 @@ -torch -numpy -tqdm diff --git a/latent_diffusion.egg-info/top_level.txt b/latent_diffusion.egg-info/top_level.txt deleted file mode 100644 index 8b13789..0000000 --- a/latent_diffusion.egg-info/top_level.txt +++ /dev/null @@ -1 +0,0 @@ -