- Generates a single stable diffusion image with an input prompt.
- Requires a HuggingFace account and a token.
Sample generated with v1.3 with minor edits on Photoshop and background extended with DALL-E:
python
3.9+- HuggingFace account
- Install the requirements
pip install -r requirements.txt
-
Accept the agreement in the Stable Diffusion v1.4 model repo to gain access to the model.
-
Create and retrieve a
READ
token from HuggingFace Settings -
Login with your token in the command below
huggingface-cli login
- You can now start generating with:
python generate.py <prompt>
ex. - python generate.py "astronaut floating in space while spaceship drifts away"
You can use these prompt suffixes to generate decent-looking outputs.
Add your description of a place at the start of the prompt.
- "
[description of place]
, tone mapped, shiny, intricate, cinematic lighting, highly detailed, digital painting, artstation, concept art, smooth, sharp focus, illustration, art by terry moore and greg rutkowski and alphonse mucha" (credit: @jquesnelle)
Add your description of a human at the start of the prompt.
- "
[description of human]
Clean Cel shaded vector art. Shutterstock. behance hd by lois van baarle, artgerm, Helen huang, by makoto shinkai and ilya kuvshinov, rossdraws, illustration" (credit: The_Bravinator on Reddit)