CLI for Stable Diffusion tasks.
Project description
CLI for Stable Diffusion tasks.
Installation
pip install giger
Usage
Please check first of all the help function and the examples.
giger --help
Also make sure to always obtain the latest version.
giger --version
Increase verbosity to also output the diffusers logging.
giger -vv
template
Use a jinja2 template file and supply data from file. Overwrite variables and print out to console.
giger template --config hero=viking --data hero.yml "$(cat hero.txt.j2)"
Use an inline jinja2 template file and supply data. Write out to file.
giger template --config hero=viking "A {{hero}} with long hair and sword" --output viking.txt
You can also pipe from another command to the template task.
echo "A {{hero}} with long hair and sword" | giger template --config hero=viking --output viking.txt
prompt
Generate a prompt with multiple well-known input keywords to choose.
giger prompt "A viking with long hair and sword" --time "Ancient" --type "Comic Book" --art_style "Concept art" --realism "Photorealistic" --rendering_engine "Octane render" --lightning_style "Cinematic" --camera_position "Ultra-Wide-Angle Shot" --resolution "8k"
You can also pipe from another command to the prompt task.
echo "A viking with long hair and sword" | giger prompt --time "Ancient" --type "Comic Book" --art_style "Concept art" --realism "Photorealistic" --rendering_engine "Octane render" --lightning_style "Cinematic" --camera_position "Ultra-Wide-Angle Shot" --resolution "8k"
image
The commands pull the chosen model from huggingface.co. You choose one with the --model option. Also the batch and image sizes can be configured and one can pass the prompt via pipe.
Please see the help function for more information.
txt2img
giger image "A viking with long hair and sword, Concept art, Photorealistic, Octane render, Cinematic, Ultra-Wide-Angle Shot, 8k" --output $HOME/Desktop/ --name viking
img2img
giger image "A viking with long hair and sword, Concept art, Photorealistic, Octane render, Cinematic, Ultra-Wide-Angle Shot, 8k" --output $HOME/Desktop/ --name viking --input input.png
controlnet
giger image "A viking with long hair and sword, Concept art, Photorealistic, Octane render, Cinematic, Ultra-Wide-Angle Shot, 8k" --output $HOME/Desktop/ --name viking --input input.png --controlnet_model "lllyasviel/sd-controlnet-hed"
roop
Simply change the face in an input image and render the result to disc.
giger roop --face face.jpg --input target.png --output output.png
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file giger-0.1.6.tar.gz
.
File metadata
- Download URL: giger-0.1.6.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 698b75a072cd119b14ca46697533fb52e104b4e9caa063083b1d03760171082f |
|
MD5 | 5e7b2efc4a5d372921c7ac619b2e50e5 |
|
BLAKE2b-256 | db19bce6d9cc55de648f1bb50de1aa8181ac7e50242cd02993912156c07e5478 |
File details
Details for the file giger-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: giger-0.1.6-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32d52058d17315fc7c7b4ba9ca4a5f2ff3c4702f0240dc39dfadbdf0a564f7cb |
|
MD5 | a4e7ff5f3aaa174b7c53d5af4a84adcb |
|
BLAKE2b-256 | 449c9c8fa8efbed3e6e088b0a847dd51595616d8ad4f53362acce1819c36b3fb |