forked from alexlee-gk/video_prediction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerate_all.sh
55 lines (53 loc) · 2.44 KB
/
generate_all.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
# BAIR action-free robot pushing dataset
dataset=bair_action_free
CUDA_VISIBLE_DEVICES=0 python scripts/generate.py --input_dir data/bair --dataset bair \
--dataset_hparams sequence_length=30 --model ground_truth --mode test \
--output_gif_dir results_test_2afc/${dataset}/ground_truth \
--output_png_dir results_test_samples/${dataset}/ground_truth --gif_length 10
for method_dir in \
ours_vae_gan \
ours_gan \
ours_vae_l1 \
sv2p_time_invariant \
; do
CUDA_VISIBLE_DEVICES=0 python scripts/generate.py --input_dir data/bair \
--dataset_hparams sequence_length=30 --checkpoint models/${dataset}/${method_dir} --mode test \
--results_gif_dir results_test_2afc/${dataset} \
--results_png_dir results_test_samples/${dataset} --gif_length 10
done
# KTH human actions dataset
# use batch_size=1 to ensure reproducibility when sampling subclips within a sequence
dataset=kth
CUDA_VISIBLE_DEVICES=0 python scripts/generate.py --input_dir data/kth --dataset kth \
--dataset_hparams sequence_length=40 --model ground_truth --mode test \
--output_gif_dir results_test_2afc/${dataset}/ground_truth \
--output_png_dir results_test_samples/${dataset}/ground_truth --gif_length 10 --batch_size 1
for method_dir in \
ours_vae_gan \
ours_gan \
ours_vae_l1 \
sv2p_time_invariant \
sv2p_time_variant \
; do
CUDA_VISIBLE_DEVICES=1 python scripts/generate.py --input_dir data/kth \
--dataset_hparams sequence_length=40 --checkpoint models/${dataset}/${method_dir} --mode test \
--results_gif_dir results_test_2afc/${dataset} \
--results_png_dir results_test_samples/${dataset} --gif_length 10 --batch_size 1
done
# BAIR action-conditioned robot pushing dataset
dataset=bair
CUDA_VISIBLE_DEVICES=0 python scripts/generate.py --input_dir data/bair --dataset bair \
--dataset_hparams sequence_length=30 --model ground_truth --mode test \
--output_gif_dir results_test_2afc/${dataset}/ground_truth \
--output_png_dir results_test_samples/${dataset}/ground_truth --gif_length 10
for method_dir in \
ours_vae_gan \
ours_gan \
ours_vae_l1 \
sv2p_time_variant \
; do
CUDA_VISIBLE_DEVICES=0 python scripts/generate.py --input_dir data/bair \
--dataset_hparams sequence_length=30 --checkpoint models/${dataset}/${method_dir} --mode test \
--results_gif_dir results_test_2afc/${dataset} \
--results_png_dir results_test_samples/${dataset} --gif_length 10
done