Created
September 4, 2022 11:47
-
-
Save DOsinga/23029cc7009aface7e86121994ffc469 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
while IFS="," read -r state_name landmark state_code rec_remaining | |
do | |
echo "Run: $state_name \"$landmark\" $state_code" | |
if [ ! -f outputs/landmarks/$state_code.png ]; | |
then | |
python scripts/txt2img.py --prompt "a travel magazine photo by Chris Burkard of $landmark, $state_name, trending on artstation" --n_samples 1 --n_iter 1 --plms --outdir outputs/landmarks | |
mv outputs/landmarks/grid-*.png outputs/landmarks/$state_code.png | |
fi | |
done < <(tail -n +2 state_landmarks.csv) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simple script to loop through a csv and run txt2img on every line