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

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"

swap

Simply change the face in an input image and render the result to disc.

giger swap --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.4.tar.gz (130.9 kB view details)

Uploaded Source

Built Distribution

giger-0.3.4-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: giger-0.3.4.tar.gz
  • Upload date:
  • Size: 130.9 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.4.tar.gz
Algorithm Hash digest
SHA256 a1b042873e87c54fa2eaadd97dd8b28e9bc1cae716cb8d2910c887b97d17b3c3
MD5 541dbc8873717c3d308f8e3c46535623
BLAKE2b-256 869e1c8310415f2a0e0e61e8850a80a4fd9a9d7aa936355b830aefff9ac307c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: giger-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 15.7 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 17040d8d03753c5d17ce171674ebb13e0664770a36dae61ae2ee5af27d0a0cbe
MD5 107982819296a3f42586726f7c924867
BLAKE2b-256 b30bfb21acdfb5f8b037a77fe4d746742da2a08f4516eded7c17e48591c928e9

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