Installation: Deforum Stable Diffusion
Installation
Installing DSD locally on a Linux Device
1. clone this repository:
git clone https://github.com/HelixNGC7293/DeforumStableDiffusionLocal.git
Creating the environment
2. in case the environment should be available permanently (yes)
conda config --add envs_dirs /home/jovyan/.conda_envs
3. create environment with conda
conda create --name dsd python=3.8.5 -y
4. initialize bash shell
conda init bash
5. restart shell
source ~/.bashrc
6. activate environment:
conda activate dsd
Downloading models
cd into models folder
cd models
Download model files
wget --no-check-certificate --content-disposition https://th-koeln.sciebo.de/s/QJJm0HoP5JqMYza/download -O sd-v1-4.ckpt
wget --no-check-certificate https://th-koeln.sciebo.de/s/e9GlUImXPvTtJRP/download -O dpt_large-midas-2f21e586.pt
cd ..
cd pretrained
download adaBins
wget --no-check-certificate --content-disposition https://th-koeln.sciebo.de/s/yYEhjskz9yuKotX/download -O AdaBins_nyu.pt
cd ..
Making the installations
cd DeforumStableDiffusionLocal
python setup.py
Prompting the Model (Latest Stable Diffusion Weights)
These steps need to be executed in order to activate the environment we installed before
initialize bash shell
conda init bash
restart shell
source ~/.bashrc
then:
conda activate dsd
generate still images:
python run.py --settings "./examples/runSettings_StillImages.txt"
animation:
python run.py --enable_animation_mode --settings "./examples/runSettings_Animation.txt"
installation script
git clone https://github.com/HelixNGC7293/DeforumStableDiffusionLocal.git
conda config --add envs_dirs /home/jovyan/.conda_envs
conda create --name dsd python=3.8.5 -y
cd DeforumStableDiffusionLocal
cd models
wget ##############insert adabins
wget --no-check-certificate --content-disposition https://th-koeln.sciebo.de/s/QJJm0HoP5JqMYza/download -O sd-v1-4.ckpt
wget --no-check-certificate https://th-koeln.sciebo.de/s/e9GlUImXPvTtJRP/download -O dpt_large-midas-2f21e586.pt
cd ..
conda init bash
source ~/.bashrc
conda activate dsd
python setup.py
Downloading entire folders
if you want to download an entire folder you need to zip it first:
zip -r example.zip original_folder
Upscaling
For upscaling please refer to the ESRGAN Book
https://github.com/xinntao/Real-ESRGAN
-i INPUTPATH
-o OUTPUTPATH
-n MODEL
No Comments