diff --git a/README.md b/README.md index 47c0660..730eb1d 100644 --- a/README.md +++ b/README.md @@ -47,58 +47,35 @@ download the .exe and I copied it to my C:/Windows/System directory (this isn't ``` sudo apt-get -y install git wget ``` -## Installation of Stable-Diffusion-Cpuonly +## Installation of Stable-Diffusion-cpuonly -Copy this github repository and extract to you home/$user directory, the install and run bash scripts are set to run from that location with the *-main at the end like you've just downloaded the zipped up file. +### Download Stable-Diffusion-cpuonly +Copy this github repository and extract the files. +### Download the CompVis Stable-diffusion model. -run from stable-diffusion-cpuonly directory - -``` -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 cpuonly -c pytorch -conda env create -f environment-cpuonly.yaml -conda activate ldm -``` -``` -pip install pynvml gradio keras-unet fairseq basicsr facexlib -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. +Go here and download the correct mode from here. You'll have to agree to the license setup an account but this is the bread and butter AI art generating learning model. https://huggingface.co/CompVis/stable-diffusion-v-1-4-original +copy the file to your stable-diffusion-cpuonly-main directory -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 +### Running the install script -and copy it to your stable-diffusion-cpuonly/src/GFPGAN/experiments/pretrained_models directory +open a terminal or powershell and cd to your stable-diffusion-cpuonly-main directory and run -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 +``` +bash -i install_sdco.sh -and copy these to your stable-diffusion-cpuonly/src/realsrgan/experiments/pretrained_models directory +``` +## Starting Stable-Diffusion-cpuonly Run the following command + ``` -python .\webui.py --no-half +bash -i run_sdco.sh ``` @@ -106,16 +83,6 @@ python .\webui.py --no-half -old readme info -//You can also update an existing [latent diffusion](https://github.com/CompVis/latent-diffusion) environment by running -// -//``` -//conda install pytorch torchvision -c pytorch -//pip install transformers==4.19.2 diffusers invisible-watermark -//pip install -e . -//``` -// - ## Stable Diffusion v1 Stable Diffusion v1 refers to a specific configuration of the model