Skip to content

Commit

Permalink
Training Commands
Browse files Browse the repository at this point in the history
  • Loading branch information
hm-ysjiang committed Jun 7, 2023
1 parent e6b59c4 commit 41bbb35
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions train.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# From scratch
cmd_supervised_scratch="python -u train-supervised.py \
--name supervised-scratch-c128 \
--validation sintel \
--num_epochs 100 \
--batch_size 6 \
--lr 0.0004 \
--wdecay 0.00001 \
--context 128"

cmd_selfsupervised_scratch="python -u train-selfsupervised.py \
--name selfsupervised-scratch-c128 \
--validation sintel \
--num_epochs 100 \
--batch_size 6 \
--lr 0.0004 \
--wdecay 0.00001 \
--context 128"

# Transfer
cmd_supervised_transfer="python -u train-supervised.py \
--name supervised-transfer-c128 \
--validation sintel \
--restore_ckpt checkpoints/raft-things.pth \
--num_epochs 100 \
--batch_size 6 \
--lr 0.0002 \
--wdecay 0.00001 \
--gamma=0.85 \
--reset_context \
--context 128"

cmd_selfsupervised_transfer="python -u train-selfsupervised.py \
--name selfsupervised-transfer-c128 \
--validation sintel \
--restore_ckpt checkpoints/raft-things.pth \
--num_epochs 100 \
--batch_size 6 \
--lr 0.0002 \
--wdecay 0.00001 \
--gamma=0.85 \
--reset_context \
--context 128"

cmd=$cmd_supervised_transfer # Change this line

echo ${cmd}
eval ${cmd}

0 comments on commit 41bbb35

Please sign in to comment.