-
Install skypilot package by following these instructions.
-
Run
git clone https://github.com/skypilot-org/skypilot.git && cd examples/stable_diffusion
-
Run
sky launch -c stable-diffusion stable_diffusion_docker.yaml
-
Run
ssh -L 7860:localhost:7860 stable-diffusion
-
Open
http://localhost:7860/
in browser. If the page doesn't load, try again in a few minutes to allow the container to start. -
Type in text prompt and click "Generate".
-
Once you are done, run
sky stop stable-diffusion
to stop the VM. -
To restart VM, repeat steps 3 and 4.
- Avoid exceeding 900x900 for image resolution due GPU memory constraints
- You can toggle "Classifier Free Guidance Scale" to higher value to enforce adherence to prompt
- Here are some good example text prompts (Classifier Free Guidance Scale = 7.5, sampling steps = 50):
- "donkey playing poker"
- "UC Berkeley student writing code on a laptop"
- "Marvel vs. DC"
- "corgi on Golden Gate Bridge"
- "desert golf"
- "Indian McDonald's"
- "Elon Musk robot"
- "mechanical heart"
- "Batman in San Francisco"
- "futuristic city in the sky and clouds"
- "bear ballroom dancing"
- "wall-e terminator"
- "psychedelic Yosemite"
- "rap song album cover"
- "Wall Street bull rodeo"
- "Trump in minecraft"