Mark
/
celeste-ai
Archived
1
0
Fork 0

Minor fixes

master
Mark 2023-02-24 17:46:33 -08:00
parent 589f41c205
commit c372ef8cc7
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
2 changed files with 6 additions and 8 deletions

View File

@ -22,8 +22,6 @@ render_dir () {
$OUTPUT_DIR/${1##*/}.mp4
}
# Todo: error out if exists
mkdir -p $OUTPUT_DIR
@ -50,17 +48,18 @@ ffmpeg \
-safe 0 \
-i video_merge_list \
-vf "scale=1024x1024:flags=neighbor" \
$OUTPUT_DIR/00-all.mp4
$SC_ROOT/1x.mp4
rm video_merge_list
# Make accelerated video
ffmpeg \
-loglevel error -stats -y \
-i $OUTPUT_DIR/00-all.mp4 \
-i $SC_ROOT/1x.mp4 \
-framerate 60 \
-filter:v "setpts=0.125*PTS" \
$SC_ROOT/8x.mp4
echo "Cleaning up..."
rm -dr $OUTPUT_DIR

View File

@ -200,13 +200,12 @@ for ep in range(num_episodes):
state = next_state
# Only train the network if we have enough
# transitions in memory to do so.
if len(memory) >= BATCH_SIZE:
state = next_state
# Run optimizer
optimize.optimize_model(
memory,