File size: 5,532 Bytes
8d82201
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/bin/bash

#SBATCH --job-name=n_obj_ours      # Submit a job named "example"
#SBATCH --mail-user=vip.maildummy@gmail.com
#SBATCH --mail-type=BEGIN,END,FAIL
#SBATCH --partition=a5000         # a6000 or a100
#SBATCH --gres=gpu:1
#SBATCH --time=7-00:00:00        # d-hh:mm:ss, max time limit
#SBATCH --mem=48000              # cpu memory size
#SBATCH --cpus-per-task=4        # cpu num
#SBATCH --output=log_refcocog_umd_repro_n_obj.txt         # std output filename

ml cuda/11.0                # 필요한 쿠다 버전 로드
eval "$(conda shell.bash hook)"  # Initialize Conda Environment
conda activate lavt             # Activate your conda environment


# ckpt
# srun python test_n_obj.py --model lavt_one --swin_type base --dataset refcocog --splitBy umd --split test \
#     --resume checkpoints/ckpt_lavt_one/gref_umd.pth --workers 4 --ddp_trained_weights --window12 --img_size 480 \
#     --config config/n_obj/n_12.yaml

# srun python test_n_obj.py --model lavt_one --swin_type base --dataset refcocog --splitBy umd --split test \
#     --resume checkpoints/ckpt_lavt_one/gref_umd.pth --workers 4 --ddp_trained_weights --window12 --img_size 480 \
#     --config config/n_obj/n_34.yaml

# srun python test_n_obj.py --model lavt_one --swin_type base --dataset refcocog --splitBy umd --split test \
#     --resume checkpoints/ckpt_lavt_one/gref_umd.pth --workers 4 --ddp_trained_weights --window12 --img_size 480 \
#     --config config/n_obj/n_56.yaml

# srun python test_n_obj.py --model lavt_one --swin_type base --dataset refcocog --splitBy umd --split test \
#     --resume checkpoints/ckpt_lavt_one/gref_umd.pth --workers 4 --ddp_trained_weights --window12 --img_size 480 \
#     --config config/n_obj/n_78.yaml

# repro
srun python test_n_obj.py --model lavt_one --swin_type base --dataset refcocog --splitBy umd --split test \
    --resume checkpoints/repro_lavt_one/model_best_gref_umd_lavt_one.pth \
    --workers 4 --ddp_trained_weights --window12 --img_size 480 \
    --config config/n_obj/n_12.yaml

srun python test_n_obj.py --model lavt_one --swin_type base --dataset refcocog --splitBy umd --split test \
    --resume checkpoints/repro_lavt_one/model_best_gref_umd_lavt_one.pth \
    --workers 4 --ddp_trained_weights --window12 --img_size 480 \
    --config config/n_obj/n_34.yaml

srun python test_n_obj.py --model lavt_one --swin_type base --dataset refcocog --splitBy umd --split test \
    --resume checkpoints/repro_lavt_one/model_best_gref_umd_lavt_one.pth \
    --workers 4 --ddp_trained_weights --window12 --img_size 480 \
    --config config/n_obj/n_56.yaml

srun python test_n_obj.py --model lavt_one --swin_type base --dataset refcocog --splitBy umd --split test \
    --resume checkpoints/repro_lavt_one/model_best_gref_umd_lavt_one.pth \
    --workers 4 --ddp_trained_weights --window12 --img_size 480 \
    --config config/n_obj/n_78.yaml


# our best_model (retrieval)

# srun python test_n_obj.py --model lavt_one --swin_type base --dataset refcocog --splitBy umd --split test \
#     --resume experiments/refcocog_umd/retrieval_gref_umd_433_10up_40epoch/model_best_retrieval_gref_umd_433_10up_40epoch.pth \
#     --workers 4 --ddp_trained_weights --window12 --img_size 480 \
#     --config config/n_obj/n_12.yaml

# srun python test_n_obj.py --model lavt_one --swin_type base --dataset refcocog --splitBy umd --split test \
#     --resume experiments/refcocog_umd/retrieval_gref_umd_433_10up_40epoch/model_best_retrieval_gref_umd_433_10up_40epoch.pth \
#     --workers 4 --ddp_trained_weights --window12 --img_size 480 \
#     --config config/n_obj/n_34.yaml

# srun python test_n_obj.py --model lavt_one --swin_type base --dataset refcocog --splitBy umd --split test \
#     --resume experiments/refcocog_umd/retrieval_gref_umd_433_10up_40epoch/model_best_retrieval_gref_umd_433_10up_40epoch.pth \
#     --workers 4 --ddp_trained_weights --window12 --img_size 480 \
#     --config config/n_obj/n_56.yaml

# srun python test_n_obj.py --model lavt_one --swin_type base --dataset refcocog --splitBy umd --split test \
#     --resume experiments/refcocog_umd/retrieval_gref_umd_433_10up_40epoch/model_best_retrieval_gref_umd_433_10up_40epoch.pth \
#     --workers 4 --ddp_trained_weights --window12 --img_size 480 \
#     --config config/n_obj/n_78.yaml

    

# random 

# srun python test_n_obj.py --model lavt_one --swin_type base --dataset refcocog --splitBy umd --split test \
#     --resume checkpoints/random_550_lavt_one/model_best_mosaic_gref_umd_lavt_one.pth \
#     --workers 4 --ddp_trained_weights --window12 --img_size 480 \
#     --config config/n_obj/n_12.yaml

# srun python test_n_obj.py --model lavt_one --swin_type base --dataset refcocog --splitBy umd --split test \
#     --resume checkpoints/random_550_lavt_one/model_best_mosaic_gref_umd_lavt_one.pth \
#     --workers 4 --ddp_trained_weights --window12 --img_size 480 \
#     --config config/n_obj/n_34.yaml

# srun python test_n_obj.py --model lavt_one --swin_type base --dataset refcocog --splitBy umd --split test \
#     --resume checkpoints/random_550_lavt_one/model_best_mosaic_gref_umd_lavt_one.pth \
#     --workers 4 --ddp_trained_weights --window12 --img_size 480 \
#     --config config/n_obj/n_56.yaml

# srun python test_n_obj.py --model lavt_one --swin_type base --dataset refcocog --splitBy umd --split test \
#     --resume checkpoints/random_550_lavt_one/model_best_mosaic_gref_umd_lavt_one.pth \
#     --workers 4 --ddp_trained_weights --window12 --img_size 480 \
#     --config config/n_obj/n_78.yaml