batch_collect_video.sh 978 Bytes
Newer Older
Nianchen Deng's avatar
Nianchen Deng committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#/usr/bin/bash
curdir=$(pwd)
datadir="$curdir/data/__new/classroom_fovea_r360x80_t0.6"
videodir="$datadir/eval_video"
epochs=50

if [ ! -d "$videodir" ]; then
    echo "make directory for Video"
    mkdir $videodir
fi

# nets: 1, 2, 4, 8
# layers: 2, 4, 8
# channels: 64 128 256 512 1024
for n_nets in 1 2 4 8; do
    for n_layers in 2 4 8; do
        for nf in 64 128 256 512 1024; do
            for n_samples in 8 16 32 64 128; do
                configid="eval@snerffast${n_nets}-rgb_e6_fc${nf}x${n_layers}_d1.00-7.00_s${n_samples}_~p"
                exportname="eval_${n_nets}x${nf}x${n_layers}_${n_samples}"
                src_path="../$configid/output_$epochs/helix_color.mp4"
                dst_path="$videodir/$exportname.mp4"
                if [ -f "$videodir/$src_path" ]; then
                    if [ ! -f "$dst_path" ]; then
                        ln -s $src_path $dst_path
                    fi
                fi
            done
        done
    done
done