superject/cards/neural/hexagrams-cuda1.sh

30 lines
1.6 KiB
Bash

#!/bin/bash
# a simple script to test a linode GPU instance for superject abstraction
PLACE=/tmp/neural/hexagrams
mkdir -p $PLACE
cd $PLACE
echo "using the HEXAGRAMS..."
hexagrams=("The Creative Heaven" "The Receptive Earth" "Difficulty At The Beginning" "Youthful Folly" "Waiting" "Conflict" "The Army" "Holding Together" "Small Taming" "Treading" "Peace" "Standstill" "Fellowship" "Great Possession" "Modesty" "Enthusiasm" "Following" "Work On The Decayed" "Approach" "Contemplation" "Biting Through" "Grace" "Splitting Apart" "Return" "Innocence" "Great Taming" "Mouth Corners" "Great Preponderance" "The Abysmal Water" "The Clinging Fire" "Influence" "Duration" "Retreat" "Great Power" "Progress" "Darkening Of The Light" "The Family" "Opposition" "Obstruction" "Deliverance" "Decrease" "Increase" "Breakthrough" "Coming To Meet" "Gathering Together" "Pushing Upward" "Oppression" "The Well" "Revolution" "The Cauldron" "The Arousing Thunder" "The Keeping Still Mountain" "Development" "The Marrying Maiden" "Abundance" "The Wanderer" "The Gentle Wind" "The Joyous Lake" "Dispersion" "Limitation" "Inner Truth" "Small Preponderance" "After Completion")
echo "bifold trigram..."
for i in "${hexagrams[@]}"
do
export CUDA_VISIBLE_DEVICES=1
echo "dreaming $i"
dream "$i" --save-progress --save-every 10 --epochs=1 --iterations=100 --image-size=512
done
#export CUDA_VISIBLE_DEVICES=1
# note in big-sleep.py -> torch,cuda.set_device(1)
# and/or CUDA_VISIBLE_DEVICES=1,2 python myscript.py
# ffmpeg -r 24 -f image2 -s 1920x1080 -i The_Grand_Evocateur_of_intensity.%d.png -vcodec libx264 -crf 25 -pix_fmt yuv420p The_Grand_Evocateur_of_intensity_m3.mp4