File size: 1,261 Bytes
4f6b78d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#! /bin/bash

GPU_ID=0
DATA_ROOT_DIR="results"
DATASETS=(
    davis_rearranged
    )

SCENES=(
    blackswan
    camel
    car-shadow
    dog
    horsejump-high
    motocross-jump
    parkour
    soapbox
    )

N_VIEWS=(
    50
    50
    40
    50
    50
    40
    50
    50
    )

# increase iteration to get better metrics (e.g. gs_train_iter=5000)
gs_train_iter=4000
tag="testing_pnsr"

for i in "${!SCENES[@]}"; do
    for DATASET in "${DATASETS[@]}"; do
        SCENE=${SCENES[$i]}
        N_VIEW=${N_VIEWS[$i]}
        # SOURCE_PATH must be Absolute path
        SOURCE_PATH=${DATA_ROOT_DIR}/${DATASET}/${SCENE}/
        MODEL_PATH=${DATA_ROOT_DIR}/${DATASET}/${SCENE}/${tag}_${gs_train_iter}/


        CMD_T="CUDA_VISIBLE_DEVICES=${GPU_ID} python -W ignore ./train_test_psnr.py \
        -s ${SOURCE_PATH} \
        -m ${MODEL_PATH}  \
        --n_views ${N_VIEW}  \
        --scene ${SCENE} \
        --iter ${gs_train_iter} \
        --optim_pose \
        --dataset davis \
        --gt_dynamic_mask data/davis/DAVIS/Annotations/480p \
        "

        echo "========= ${DATASET}/${SCENE}: Train: jointly optimize pose with dynamic masking ========="
        echo $CMD_T
        eval $CMD_T
    done
done

python scripts/get_testing_psnr_davis.py