mirror of https://github.com/signalnine/lofi-imgen
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
433 B
Bash
9 lines
433 B
Bash
#!/bin/bash
|
|
|
|
CONTAINER=$(/snap/bin/docker ps | grep miniconda | awk '{print $1}')
|
|
/snap/bin/docker exec -i $CONTAINER /sd/run.sh
|
|
IMAGE="$(ls /home/gabe/stable-diffusion/outputs/*.png -t | head -n1)"
|
|
PROMPT="$(echo $IMAGE | awk -F/ '{ print $6 }' | sed 's/.\{4\}$//')"
|
|
/home/gabe/realesrgan/realesrgan-ncnn-vulkan -i "$IMAGE" -o /tmp/upscaled.png
|
|
python3 /home/gabe/lofi-imgen/tweet.py --filename /tmp/upscaled.png --prompt "$PROMPT"
|