forked from RicoXu727/MaskedTAViT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_script.sh
executable file
·43 lines (34 loc) · 1.31 KB
/
run_script.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
#!/bin/bash
current_env=$(conda info --envs | awk '$1=="*"{print $2}')
if [ "$current_env" != "base" ]; then
echo "Activating venv..."
source /home/shiwen/anaconda3/bin/activate venv
fi
rm -rf lightning_logs
# echo "Training the VQ-VAE..."
# rm -rf vqvae_checkpoints
# python3 masktavit/train_vqvae.py
# echo "Training the VideoGPT without the frame condition..."
# rm -rf gpt_checkpoints
# python3 masktavit/train_videogpt.py \
# --ckpt_dirpath 'gpt_checkpoints'
# echo "Training the VideoGPT with the frame condition..."
# rm -rf gpt_frame_checkpoints
# python3 masktavit/train_videogpt.py \
# --ckpt_dirpath 'gpt_frame_checkpoints' \
# --model.n_cond_frames 2
# echo "Training the VideoGPT with the distance mask..."
# rm -rf gpt_mask_checkpoints
# python3 masktavit/train_videogpt.py \
# --ckpt_dirpath 'gpt_mask_checkpoints' \
# --model.dist_mask True
echo "Training the VideoGPT with the frame condition and distance mask..."
rm -rf gpt_mask_frame_checkpoints
python3 masktavit/train_videogpt.py \
--ckpt_dirpath 'gpt_mask_frame_checkpoints' \
--model.n_cond_frames 2
--model.dist_mask True
echo "Evaluation..."
python3 masktavit/compute_fvd.py \
--path 'datasets/bair.hdf5' \
--ckpt 'gpt_mask_frame_checkpoints/best_gpt_model.ckpt'