Update README.md

main
novarobot 3 years ago committed by GitHub
parent 01b9ba7001
commit 4eacf36cb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -34,75 +34,61 @@ git clone https://github.com/novarobot/stable-diffusion-cpuonly.git
``` ```
### install conda (optional but highly recommended) ### install conda
Don't put it on both bash and zsh, just do one installation!!! Don't put it on both bash and zsh, just do one installation!!!
``` (OPTION ZSH) install conda under zsh (optional)
install conda under zsh (optional)
```
sudo apt install zsh sudo apt install zsh
copy the default zshrc file (optional) copy the default zshrc file (optional)
cp ./stable-diffusion-cpuonly/.zshrc /home/USERNAME cp ./stable-diffusion-cpuonly/.zshrc /home/USERNAME
zsh zsh
``` ```
(if you haven't copied the zshrc, create the appropriate one with the menu that appears. If you copied it, the menu will not appear) (if you haven't copied the zshrc, create the appropriate one with the menu that appears. If you copied it, the menu will not appear)
``` ```
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod 777 Miniconda3-latest-Linux-x86_64.sh chmod 777 Miniconda3-latest-Linux-x86_64.sh
The installation location is e.g.: /opt/StableDiffusion/Miniconda3 #The installation location is e.g.: /opt/StableDiffusion/Miniconda3
Don't run conda init! (just hit enter) #Don't run conda init! (just hit enter)
./Miniconda3/bin/conda init zsh ./Miniconda3/bin/conda init zsh
exit exit
#Back to zsh again #Back to zsh again
zsh zsh
#A prefix (base) had to appear before the prompt! #A prefix (base) had to appear before the prompt!
conda env create -f ./stable-diffusion-cpuonly/environment-cpuonly.yaml conda env create -f ./stable-diffusion-cpuonly/environment-cpuonly.yaml
conda activate sdco conda activate sdco
conda install pytorch torchvision torchaudio cpuonly -c pytorch
#A prefix (sdco) had to appear before the prompt! #A prefix (sdco) had to appear before the prompt!
``` ```
##install conda under bash (original solution) (OPTION BASH) install conda under bash (original solution)
``` ```
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod 777 Miniconda3-latest-Linux-x86_64.sh chmod 777 Miniconda3-latest-Linux-x86_64.sh
The installation location is e.g.: /opt/StableDiffusion/Miniconda3 #The installation location is e.g.: /opt/StableDiffusion/Miniconda3
Run conda init (yes) #Run conda init (yes)
Exit and return to the terminal #Exit and return to the terminal
A prefix (base) had to appear before the prompt! #A prefix (base) had to appear before the prompt!
conda env create -f ./stable-diffusion-cpuonly/environment-cpuonly.yaml conda env create -f ./stable-diffusion-cpuonly/environment-cpuonly.yaml
conda activate sdco conda activate sdco
conda install pytorch torchvision torchaudio cpuonly -c pytorch
A prefix (sdco) had to appear before the prompt! #A prefix (sdco) had to appear before the prompt!
``` ```
### Download Stable-Diffusion-cpuonly
Copy this github repository and extract the files.
### Download the CompVis Stable-diffusion model. ### Download the CompVis Stable-diffusion 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. 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.
@ -111,6 +97,7 @@ https://huggingface.co/CompVis/stable-diffusion-v-1-4-original
``` ```
cd stable-diffusion-cpuonly
wget https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt wget https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt
mv sd-v1-4.ckpt models/ldm/stable-diffusion-v1/model.ckpt mv sd-v1-4.ckpt models/ldm/stable-diffusion-v1/model.ckpt
``` ```
@ -125,8 +112,6 @@ wget https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pt
mv GFPGANv1.3.pth src/gfpgan/experiments/pretrained_models/GFPGANv1.3.pth mv GFPGANv1.3.pth src/gfpgan/experiments/pretrained_models/GFPGANv1.3.pth
``` ```
### Linux - Running the install script ### Linux - Running the install script
open a terminal or powershell and cd to your stable-diffusion-cpuonly-main directory and run open a terminal or powershell and cd to your stable-diffusion-cpuonly-main directory and run
``` ```

Loading…
Cancel
Save