Skip to main content

CLI for Stable Diffusion tasks.

Project description

PyPI-Server Monthly Downloads Test Coveralls License MIT Project generated with PyScaffold

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

giger-0.1.7.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

giger-0.1.7-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file giger-0.1.7.tar.gz.

File metadata

  • Download URL: giger-0.1.7.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

Hashes for giger-0.1.7.tar.gz
Algorithm Hash digest
SHA256 afa8a0b06865777e642473662aa2eb81fb369eadf7c908eac012b5c1aea4e0a9
MD5 f7469d56c201c4e7d958d32ff7009906
BLAKE2b-256 82f89c63150047c372d9b5b7d548d133b33e94ed3b3c91b6ceaf8942b00641b9

See more details on using hashes here.

File details

Details for the file giger-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: giger-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for giger-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f1ce6e6d2e1828b94373e901b3fe31beecce07ea403b1783cba67e7c2ddeb9f5
MD5 d130c40c3ce0fb4972f46ce26a3594cb
BLAKE2b-256 f0ceef728ab6880123a96e5cc3eb77f31cc9ba62a5a85600870272a547ab96a0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page