forked from facebookresearch/banmo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.sh
58 lines (54 loc) · 1.83 KB
/
template.sh
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
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
gpus=$1
seqname=$2
addr=$3
use_human=$4
use_symm=$5
num_epochs=120
batch_size=256
model_prefix=$seqname-e$num_epochs-b$batch_size
if [ "$use_human" = "" ]; then
pose_cnn_path=mesh_material/posenet/human.pth
else
pose_cnn_path=mesh_material/posenet/quad.pth
fi
echo $pose_cnn_path
# mode: line load
savename=${model_prefix}-init
bash scripts/template-mgpu.sh $gpus $savename \
$seqname $addr --num_epochs $num_epochs \
--pose_cnn_path $pose_cnn_path \
--warmup_shape_ep 5 --warmup_rootmlp \
--lineload --batch_size $batch_size\
--${use_symm}symm_shape \
--${use_human}use_human
# mode: pose correction
# 0-80% body pose with proj loss, 80-100% gradually add all loss
# freeze shape/feature etc
loadname=${model_prefix}-init
savename=${model_prefix}-ft1
num_epochs=$((num_epochs/4))
bash scripts/template-mgpu.sh $gpus $savename \
$seqname $addr --num_epochs $num_epochs \
--pose_cnn_path $pose_cnn_path \
--model_path logdir/$loadname/params_latest.pth \
--lineload --batch_size $batch_size \
--warmup_steps 0 --nf_reset 1 --bound_reset 1 \
--dskin_steps 0 --fine_steps 1 --noanneal_freq \
--freeze_proj --proj_end 1\
--${use_symm}symm_shape \
--${use_human}use_human
# mode: fine tune with active+fine samples, large rgb loss wt and reset beta
loadname=${model_prefix}-ft1
savename=${model_prefix}-ft2
num_epochs=$((num_epochs*4))
bash scripts/template-mgpu.sh $gpus $savename \
$seqname $addr --num_epochs $num_epochs \
--pose_cnn_path $pose_cnn_path \
--model_path logdir/$loadname/params_latest.pth \
--lineload --batch_size $batch_size \
--warmup_steps 0 --nf_reset 0 --bound_reset 0 \
--dskin_steps 0 --fine_steps 0 --noanneal_freq \
--freeze_root --use_unc --img_wt 1 --reset_beta \
--${use_symm}symm_shape \
--${use_human}use_human