Minor fixes
parent
589f41c205
commit
c372ef8cc7
|
@ -22,8 +22,6 @@ render_dir () {
|
||||||
$OUTPUT_DIR/${1##*/}.mp4
|
$OUTPUT_DIR/${1##*/}.mp4
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Todo: error out if exists
|
# Todo: error out if exists
|
||||||
mkdir -p $OUTPUT_DIR
|
mkdir -p $OUTPUT_DIR
|
||||||
|
|
||||||
|
@ -50,17 +48,18 @@ ffmpeg \
|
||||||
-safe 0 \
|
-safe 0 \
|
||||||
-i video_merge_list \
|
-i video_merge_list \
|
||||||
-vf "scale=1024x1024:flags=neighbor" \
|
-vf "scale=1024x1024:flags=neighbor" \
|
||||||
$OUTPUT_DIR/00-all.mp4
|
$SC_ROOT/1x.mp4
|
||||||
|
|
||||||
rm video_merge_list
|
rm video_merge_list
|
||||||
|
|
||||||
# Make accelerated video
|
# Make accelerated video
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
-loglevel error -stats -y \
|
-loglevel error -stats -y \
|
||||||
-i $OUTPUT_DIR/00-all.mp4 \
|
-i $SC_ROOT/1x.mp4 \
|
||||||
-framerate 60 \
|
-framerate 60 \
|
||||||
-filter:v "setpts=0.125*PTS" \
|
-filter:v "setpts=0.125*PTS" \
|
||||||
$SC_ROOT/8x.mp4
|
$SC_ROOT/8x.mp4
|
||||||
|
|
||||||
echo "Cleaning up..."
|
echo "Cleaning up..."
|
||||||
|
|
||||||
rm -dr $OUTPUT_DIR
|
rm -dr $OUTPUT_DIR
|
||||||
|
|
|
@ -200,13 +200,12 @@ for ep in range(num_episodes):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
state = next_state
|
||||||
|
|
||||||
|
|
||||||
# Only train the network if we have enough
|
# Only train the network if we have enough
|
||||||
# transitions in memory to do so.
|
# transitions in memory to do so.
|
||||||
if len(memory) >= BATCH_SIZE:
|
if len(memory) >= BATCH_SIZE:
|
||||||
|
|
||||||
state = next_state
|
|
||||||
|
|
||||||
# Run optimizer
|
# Run optimizer
|
||||||
optimize.optimize_model(
|
optimize.optimize_model(
|
||||||
memory,
|
memory,
|
||||||
|
|
Reference in New Issue