Skip to content

lacop/sdgrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stable Diffusion Image Grid

Source for https://sdgrid.lacop.dev/ - an experiment showing a large collection of Stable Diffusion images.

Shamelessly stolen Heavily inspired by https://generrated.com/.

Instructions

This is a collection of scripts held together by duct tape, but it works fine for this one-off experiment. To generate more images (or recreate the whole thing from scratch):

  1. Setup Stable Diffusion.

    Specifically this is using https://github.com/AUTOMATIC1111/stable-diffusion-webui at 3f417566b0bda8eab05d247567aebf001c1d1725. Fetch the same version if you want reproducible results.

  2. Pull this repo.

  3. Edit inputs/topics.csv and inputs/styles.csv as you like.

  4. Start up the SD webui (python launch.py) and start generating missing images:

    python scripts/dream.py
    

    Adjust env vars as needed. The script will check the output directory for any existing images and skip generating those, so if you add a few more styles to styles.csv it will only do the neccessary work.

  5. Generate the webpage. You can do this while the images are being generated.

    python scripts/generate_webpage.py
    API_KEY=... LOCAL_HTML_DIR=html python scripts/upload.py
    
  6. Convert the results to jpg and generate thumbnails. Upload the results to CDN.

    ./scripts/prepare_images.sh
    API_KEY=... LOCAL_IMAGE_DIR=images python scripts/upload.py
    

    This assumes you use Bunny CDN which I picked for no particular reason.

License

The code under scripts/ is released under MIT license.A

About

A collection of Stable Diffusion outputs for various prompts and styles

Topics

Resources

License

Stars

Watchers

Forks