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.

Read more: https://artificialhoney.github.io/giger

Installation

pip install giger git+https://github.com/ai-forever/Real-ESRGAN.git git+https://github.com/XPixelGroup/BasicSR@master

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

upscale

Simply upscale an image and render the result to disc.

giger upscale --input image.png --output image@4x.png --scale 4

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.3.1.tar.gz (183.7 kB view details)

Uploaded Source

Built Distribution

giger-0.3.1-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: giger-0.3.1.tar.gz
  • Upload date:
  • Size: 183.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for giger-0.3.1.tar.gz
Algorithm Hash digest
SHA256 4be284eb6c575f233bbbbeec65780aa7fbae9f46de3e282774e1ed10eee2f75a
MD5 b1b9c8cc969ba06c31bdb63dab5d7e02
BLAKE2b-256 23a82d9b9697c640010df177b385d2b687e686c3fd166b4d0199896ca91b410c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for giger-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd36f6ebf483eb31f7971bfb23e4507de46ef62bdb8530f01ec6b1eee8c6f6a3
MD5 1e143666384dd3ceda78a17186eabee7
BLAKE2b-256 a59e40366934f9134c8ba8defc5cfbc13f53017c8916a5f87628a3775a561407

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