Skip to content

Instantly share code, notes, and snippets.

View loretoparisi's full-sized avatar
🐍
Pythoning

Loreto Parisi loretoparisi

🐍
Pythoning
View GitHub Profile
@loretoparisi
loretoparisi / stablediffusionwalk.py
Created August 25, 2022 10:49 — forked from karpathy/stablediffusionwalk.py
hacky stablediffusion code for generating videos
"""
stable diffusion dreaming
creates hypnotic moving videos by smoothly walking randomly through the sample space
example way to run this script:
$ python stablediffusionwalk.py --prompt "blueberry spaghetti" --name blueberry
to stitch together the images, e.g.:
$ ffmpeg -r 10 -f image2 -s 512x512 -i blueberry/frame%06d.jpg -vcodec libx264 -crf 10 -pix_fmt yuv420p blueberry.mp4
@loretoparisi
loretoparisi / REPRO_CONDA_SETUP.md
Created August 25, 2022 22:09 — forked from lmmx/REPRO_CONDA_SETUP.md
Demo of Stable Diffusion usage, storing the prompt in metadata https://twitter.com/permutans/status/1562471438501548034