32 lines
1.1 KiB
Bash
32 lines
1.1 KiB
Bash
#!/bin/bash
|
|
|
|
INSTALLATION=0
|
|
|
|
if [[ ! -d venv ]]
|
|
then
|
|
python3 -m venv venv || python -m venv venv || (
|
|
echo "Could not create a Python virtual environment."
|
|
exit 1
|
|
)
|
|
|
|
INSTALLATION=1
|
|
fi
|
|
|
|
if [[ -f ./venv/bin/activate ]]; then source ./venv/bin/activate; PYTHON=python3; fi
|
|
if [[ -f ./venv/Scripts/activate ]]; then source ./venv/Scripts/activate; PYTHON=python; fi
|
|
|
|
if [[ $INSTALLATION -eq 1 ]]
|
|
then
|
|
pip install pillow
|
|
fi
|
|
|
|
$PYTHON -u app.py $@ \
|
|
--options "options.json" \
|
|
--options "anime.json" \
|
|
--positive "((modern art style)) 1girl close portrait, ruby red ((long flowing hair, straight hair)), ruby lips, pale skin, white futuristic armor, sci-fi tech augmentations, high saturation, black background" \
|
|
--negative "((3d shading)), blurry, hazy, gritty, unclear, bad quality, disfigured, malformed, ((blue, gold, cyan)) gemstones" \
|
|
--jpeg-quality 20
|
|
|
|
|
|
# --positive "1girl close portrait, ruby red ((long flowing hair, straight hair)), ruby lips, pale skin, white futuristic armor, sci-fi tech augmentations, ((Xenoblade style)), slightly grayscale, graphite with color, high contrast"
|