Skip to main content

DSD installation in JupyterHub

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

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


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"



Downloading entire folders

if you want to download an entire folder you need to zip it first:

zip -r example.zip original_folder

Final task

upload your Video to this location:

https://drive.google.com/drive/folders/1OB0QGjEy3vd9hfDPd2oel60nT_M-X8fm?usp=sharing

make a folder with your name



Upscaling


https://github.com/xinntao/Real-ESRGAN

-i INPUTPATH

-o OUTPUTPATH

-n MODEL




Prompt search engine - find good prompts

prompt exploration

openAI Microscope -explore CLIP

Stable Diffusion Examples on Twitter


my contact details:

Laura Juliane

laura_juliane.wagner@th-koeln.de

twitter