Upload folder using huggingface_hub
Browse files- ASDA/scripts/test.sh +42 -0
- ASDA/scripts/test_proj.sh +42 -0
- ASDA/scripts/test_proj_rcc.sh +42 -0
- ASDA/scripts/test_rcc.sh +41 -0
- ASDA/scripts/train.sh +43 -0
- ASDA/scripts/train1.sh +44 -0
- ASDA/scripts/train_gref_sbert.sh +60 -0
- ASDA/scripts/train_gref_sbert_proj.sh +64 -0
- ASDA/scripts/train_gref_sbert_proj2.sh +67 -0
- ASDA/scripts/train_gref_sbert_proj_multigpu.sh +56 -0
- ASDA/scripts/train_gref_selffilter.sh +64 -0
- ASDA/scripts/train_rcc_sbert.sh +59 -0
- ASDA/scripts/train_rcc_sbert2.sh +59 -0
- ASDA/scripts/train_rccp_sbert.sh +53 -0
- ASDA/scripts/train_rccp_sbert2.sh +50 -0
ASDA/scripts/test.sh
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --job-name=EVAL
|
| 3 |
+
#SBATCH --partition=a5000
|
| 4 |
+
#SBATCH --gres=gpu:1
|
| 5 |
+
#SBATCH --time=13-11:30:00
|
| 6 |
+
#SBATCH --mem=28000
|
| 7 |
+
#SBATCH --cpus-per-task=3
|
| 8 |
+
#SBATCH --output=./eval_gref/selffltr_gref_m10_tmp007_fine_bs28_thr040.log
|
| 9 |
+
|
| 10 |
+
ml purge
|
| 11 |
+
ml load cuda/11.8
|
| 12 |
+
eval "$(conda shell.bash hook)"
|
| 13 |
+
conda activate asda
|
| 14 |
+
|
| 15 |
+
cd /data2/projects/chaeyun/ASDA
|
| 16 |
+
|
| 17 |
+
export MASTER_PORT=8583
|
| 18 |
+
|
| 19 |
+
OPT_DIR=/data2/projects/chaeyun/ASDA/saved_models/
|
| 20 |
+
SAVENAME=selffltr_gref_m10_tmp007_fine_bs28_thr040
|
| 21 |
+
RESUME_PATH=${OPT_DIR}/${SAVENAME}_model_best.pth.tar
|
| 22 |
+
# RESUME_OIOU=${OPT_DIR}/${SAVENAME}_best_oiou_model_best.pth.tar
|
| 23 |
+
|
| 24 |
+
python test.py \
|
| 25 |
+
--dataset refcocog_u \
|
| 26 |
+
--ngpu 1 \
|
| 27 |
+
--savename $SAVENAME \
|
| 28 |
+
--resume $RESUME_PATH
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
# /data2/projects/chaeyun/ASDA/exp_projection/pj_gref_m10_tmp007_fine_nofltr_bs28.log
|
| 32 |
+
# /data2/projects/chaeyun/ASDA/exp_projection/pj_gref_m10_tmp007_coarse_fthr065_bs28.log
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
# /data2/projects/chaeyun/ASDA/exp/gref_umd_bs28_repro.log
|
| 36 |
+
# /data2/projects/chaeyun/ASDA/exp/gref_umd_bs36_repro.log
|
| 37 |
+
|
| 38 |
+
# /data2/projects/chaeyun/ASDA/exp/refcoco_sanity_bs28.log
|
| 39 |
+
# /data2/projects/chaeyun/ASDA/exp/refcoco_sanity_bs36.log
|
| 40 |
+
|
| 41 |
+
# /data2/projects/chaeyun/ASDA/exp/refcocop_bs28_repro.log
|
| 42 |
+
|
ASDA/scripts/test_proj.sh
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --job-name=EVAL
|
| 3 |
+
#SBATCH --partition=a5000
|
| 4 |
+
#SBATCH --gres=gpu:1
|
| 5 |
+
#SBATCH --time=13-11:30:00
|
| 6 |
+
#SBATCH --mem=28000
|
| 7 |
+
#SBATCH --cpus-per-task=3
|
| 8 |
+
#SBATCH --output=./eval_gref/pj_gref_m12_tmp007_refcoarse_nofltroiou_bs28.log
|
| 9 |
+
|
| 10 |
+
ml purge
|
| 11 |
+
ml load cuda/11.8
|
| 12 |
+
eval "$(conda shell.bash hook)"
|
| 13 |
+
conda activate asda
|
| 14 |
+
|
| 15 |
+
cd /data2/projects/chaeyun/ASDA
|
| 16 |
+
|
| 17 |
+
export MASTER_PORT=9273
|
| 18 |
+
|
| 19 |
+
OPT_DIR=/data2/projects/chaeyun/ASDA/saved_models/
|
| 20 |
+
SAVENAME=pj_gref_m12_tmp007_refcoarse_nofltroiou_bs28
|
| 21 |
+
RESUME_PATH=${OPT_DIR}/${SAVENAME}_model_best.pth.tar
|
| 22 |
+
|
| 23 |
+
python test_proj.py \
|
| 24 |
+
--dataset refcocog_u \
|
| 25 |
+
--ngpu 1 \
|
| 26 |
+
--savename $SAVENAME \
|
| 27 |
+
--fuse_mode coarse \
|
| 28 |
+
--resume $RESUME_PATH
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
# /data2/projects/chaeyun/ASDA/exp_projection/pj_gref_m10_tmp007_fine_nofltr_bs28.log
|
| 32 |
+
# /data2/projects/chaeyun/ASDA/exp_projection/pj_gref_m10_tmp007_coarse_fthr065_bs28.log
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
# /data2/projects/chaeyun/ASDA/exp/gref_umd_bs28_repro.log
|
| 36 |
+
# /data2/projects/chaeyun/ASDA/exp/gref_umd_bs36_repro.log
|
| 37 |
+
|
| 38 |
+
# /data2/projects/chaeyun/ASDA/exp/refcoco_sanity_bs28.log
|
| 39 |
+
# /data2/projects/chaeyun/ASDA/exp/refcoco_sanity_bs36.log
|
| 40 |
+
|
| 41 |
+
# /data2/projects/chaeyun/ASDA/exp/refcocop_bs28_repro.log
|
| 42 |
+
|
ASDA/scripts/test_proj_rcc.sh
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --job-name=EVAL
|
| 3 |
+
#SBATCH --partition=a5000
|
| 4 |
+
#SBATCH --gres=gpu:1
|
| 5 |
+
#SBATCH --time=13-11:30:00
|
| 6 |
+
#SBATCH --mem=28000
|
| 7 |
+
#SBATCH --cpus-per-task=3
|
| 8 |
+
#SBATCH --output=./eval_rccs/pj_rccp_m10_tmp007_refcoarse_nofltroiou_bs36.log
|
| 9 |
+
|
| 10 |
+
ml purge
|
| 11 |
+
ml load cuda/11.8
|
| 12 |
+
eval "$(conda shell.bash hook)"
|
| 13 |
+
conda activate asda
|
| 14 |
+
|
| 15 |
+
cd /data2/projects/chaeyun/ASDA
|
| 16 |
+
|
| 17 |
+
export MASTER_PORT=1085
|
| 18 |
+
|
| 19 |
+
OPT_DIR=/data2/projects/chaeyun/ASDA/saved_models/
|
| 20 |
+
SAVENAME=pj_rccp_m10_tmp007_refcoarse_nofltroiou_bs36
|
| 21 |
+
RESUME_PATH=${OPT_DIR}/${SAVENAME}_model_best.pth.tar
|
| 22 |
+
|
| 23 |
+
python test_proj.py \
|
| 24 |
+
--dataset refcoco+ \
|
| 25 |
+
--ngpu 1 \
|
| 26 |
+
--savename $SAVENAME \
|
| 27 |
+
--fuse_mode refined_coarse \
|
| 28 |
+
--resume $RESUME_PATH
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
# /data2/projects/chaeyun/ASDA/exp_projection/pj_gref_m10_tmp007_fine_nofltr_bs28.log
|
| 32 |
+
# /data2/projects/chaeyun/ASDA/exp_projection/pj_gref_m10_tmp007_coarse_fthr065_bs28.log
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
# /data2/projects/chaeyun/ASDA/exp/gref_umd_bs28_repro.log
|
| 36 |
+
# /data2/projects/chaeyun/ASDA/exp/gref_umd_bs36_repro.log
|
| 37 |
+
|
| 38 |
+
# /data2/projects/chaeyun/ASDA/exp/refcoco_sanity_bs28.log
|
| 39 |
+
# /data2/projects/chaeyun/ASDA/exp/refcoco_sanity_bs36.log
|
| 40 |
+
|
| 41 |
+
# /data2/projects/chaeyun/ASDA/exp/refcocop_bs28_repro.log
|
| 42 |
+
|
ASDA/scripts/test_rcc.sh
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --job-name=EVAL
|
| 3 |
+
#SBATCH --partition=a5000
|
| 4 |
+
#SBATCH --gres=gpu:1
|
| 5 |
+
#SBATCH --time=13-11:30:00
|
| 6 |
+
#SBATCH --mem=28000
|
| 7 |
+
#SBATCH --cpus-per-task=3
|
| 8 |
+
#SBATCH --output=./eval_gref/refcoco_unc_oiou_bs28.log
|
| 9 |
+
|
| 10 |
+
ml purge
|
| 11 |
+
ml load cuda/11.8
|
| 12 |
+
eval "$(conda shell.bash hook)"
|
| 13 |
+
conda activate asda
|
| 14 |
+
|
| 15 |
+
cd /data2/projects/chaeyun/ASDA
|
| 16 |
+
|
| 17 |
+
export MASTER_PORT=9823
|
| 18 |
+
|
| 19 |
+
OPT_DIR=/data2/projects/chaeyun/ASDA/saved_models/
|
| 20 |
+
SAVENAME=refcoco_unc_oiou_bs28
|
| 21 |
+
RESUME_PATH=${OPT_DIR}/${SAVENAME}_model_best.pth.tar
|
| 22 |
+
|
| 23 |
+
python test.py \
|
| 24 |
+
--dataset refcoco \
|
| 25 |
+
--ngpu 1 \
|
| 26 |
+
--savename $SAVENAME \
|
| 27 |
+
--resume $RESUME_PATH
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
# /data2/projects/chaeyun/ASDA/exp_projection/pj_gref_m10_tmp007_fine_nofltr_bs28.log
|
| 31 |
+
# /data2/projects/chaeyun/ASDA/exp_projection/pj_gref_m10_tmp007_coarse_fthr065_bs28.log
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
# /data2/projects/chaeyun/ASDA/exp/gref_umd_bs28_repro.log
|
| 35 |
+
# /data2/projects/chaeyun/ASDA/exp/gref_umd_bs36_repro.log
|
| 36 |
+
|
| 37 |
+
# /data2/projects/chaeyun/ASDA/exp/refcoco_sanity_bs28.log
|
| 38 |
+
# /data2/projects/chaeyun/ASDA/exp/refcoco_sanity_bs36.log
|
| 39 |
+
|
| 40 |
+
# /data2/projects/chaeyun/ASDA/exp/refcocop_bs28_repro.log
|
| 41 |
+
|
ASDA/scripts/train.sh
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --job-name=asda-sanity
|
| 3 |
+
#SBATCH --partition=a6000
|
| 4 |
+
#SBATCH --gres=gpu:1
|
| 5 |
+
#SBATCH --time=13-11:30:00
|
| 6 |
+
#SBATCH --mem=28000
|
| 7 |
+
#SBATCH --cpus-per-task=3
|
| 8 |
+
#SBATCH --output=./exp_oiou/gref_umd_oiou_bs28.log
|
| 9 |
+
|
| 10 |
+
ml purge
|
| 11 |
+
ml load cuda/11.8
|
| 12 |
+
eval "$(conda shell.bash hook)"
|
| 13 |
+
conda activate asda
|
| 14 |
+
|
| 15 |
+
cd /data2/projects/chaeyun/ASDA
|
| 16 |
+
|
| 17 |
+
export NCCL_P2P_DISABLE=1
|
| 18 |
+
export NVIDIA_TF32_OVERRIDE=1
|
| 19 |
+
export NCCL_IB_TIMEOUT=100
|
| 20 |
+
export NCCL_IB_RETRY_CNT=15
|
| 21 |
+
|
| 22 |
+
export MASTER_PORT=8575
|
| 23 |
+
|
| 24 |
+
export CUDA_VISIBLE_DEVICES=0
|
| 25 |
+
|
| 26 |
+
python train_oiou.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 28 --time 17 --savename gref_umd_oiou_bs28
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
# python train.py --dataset refcoco+ --splitBy unc --ngpu 1 --batch_size 28 --time 17 --savename refcocop_bs28_repro
|
| 31 |
+
# python train.py --dataset refcoco+ --splitBy unc --ngpu 1 --batch_size 36 --time 17 --savename refcocop_bs36_repro
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
# python train.py --dataset refcoco --splitBy unc --ngpu 1 --batch_size 36 --time 17 --savename refcoco_bs36_repro
|
| 35 |
+
# python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 28 --time 17 --savename gref_umd_bs28_repro
|
| 36 |
+
# python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 36 --time 17 --savename gref_umd_bs36_repro
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
# export CUDA_VISIBLE_DEVICES=0,1; python train.py --dataset refcocog --splitBy umd --ngpu 2 --batch_size 64 --time 17 --savename gref_umd_bs64_repro
|
| 40 |
+
|
| 41 |
+
# export CUDA_VISIBLE_DEVICES=0,1; python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 64 --time 17 --savename gref_umd_bs64_repro
|
| 42 |
+
|
| 43 |
+
|
ASDA/scripts/train1.sh
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --job-name=asda-sanity
|
| 3 |
+
#SBATCH --partition=a6000
|
| 4 |
+
#SBATCH --gres=gpu:1
|
| 5 |
+
#SBATCH --time=13-11:30:00
|
| 6 |
+
#SBATCH --mem=28000
|
| 7 |
+
#SBATCH --cpus-per-task=3
|
| 8 |
+
#SBATCH --output=./exp_oiou/refcocop_unc_oiou_bs28.log
|
| 9 |
+
|
| 10 |
+
ml purge
|
| 11 |
+
ml load cuda/11.8
|
| 12 |
+
eval "$(conda shell.bash hook)"
|
| 13 |
+
conda activate asda
|
| 14 |
+
|
| 15 |
+
cd /data2/projects/chaeyun/ASDA
|
| 16 |
+
|
| 17 |
+
export NCCL_P2P_DISABLE=1
|
| 18 |
+
export NVIDIA_TF32_OVERRIDE=1
|
| 19 |
+
export NCCL_IB_TIMEOUT=100
|
| 20 |
+
export NCCL_IB_RETRY_CNT=15
|
| 21 |
+
|
| 22 |
+
export MASTER_PORT=8820
|
| 23 |
+
|
| 24 |
+
export CUDA_VISIBLE_DEVICES=0
|
| 25 |
+
|
| 26 |
+
# python train_oiou.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 28 --time 17 --savename gref_umd_oiou_bs28
|
| 27 |
+
|
| 28 |
+
python train_oiou.py --dataset refcoco+ --splitBy unc --ngpu 1 --batch_size 28 --time 17 --savename refcocop_unc_oiou_bs28
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
# python train.py --dataset refcoco+ --splitBy unc --ngpu 1 --batch_size 28 --time 17 --savename refcocop_bs28_repro
|
| 32 |
+
# python train.py --dataset refcoco+ --splitBy unc --ngpu 1 --batch_size 36 --time 17 --savename refcocop_bs36_repro
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
# python train.py --dataset refcoco --splitBy unc --ngpu 1 --batch_size 36 --time 17 --savename refcoco_bs36_repro
|
| 36 |
+
# python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 28 --time 17 --savename gref_umd_bs28_repro
|
| 37 |
+
# python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 36 --time 17 --savename gref_umd_bs36_repro
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
# export CUDA_VISIBLE_DEVICES=0,1; python train.py --dataset refcocog --splitBy umd --ngpu 2 --batch_size 64 --time 17 --savename gref_umd_bs64_repro
|
| 41 |
+
|
| 42 |
+
# export CUDA_VISIBLE_DEVICES=0,1; python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 64 --time 17 --savename gref_umd_bs64_repro
|
| 43 |
+
|
| 44 |
+
|
ASDA/scripts/train_gref_sbert.sh
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --job-name=asda-fltr
|
| 3 |
+
#SBATCH --partition=a6000
|
| 4 |
+
#SBATCH --gres=gpu:1
|
| 5 |
+
#SBATCH --time=13-11:30:00
|
| 6 |
+
#SBATCH --mem=25000
|
| 7 |
+
#SBATCH --cpus-per-task=3
|
| 8 |
+
#SBATCH --output=./exp/gref_m10_tmp007_fine_nofltr_bs28.log
|
| 9 |
+
|
| 10 |
+
ml purge
|
| 11 |
+
ml load cuda/11.8
|
| 12 |
+
eval "$(conda shell.bash hook)"
|
| 13 |
+
conda activate asda
|
| 14 |
+
|
| 15 |
+
cd /data2/projects/chaeyun/ASDA
|
| 16 |
+
|
| 17 |
+
export NCCL_P2P_DISABLE=1
|
| 18 |
+
export NVIDIA_TF32_OVERRIDE=1
|
| 19 |
+
export NCCL_IB_TIMEOUT=100
|
| 20 |
+
export NCCL_IB_RETRY_CNT=15
|
| 21 |
+
export MASTER_PORT=2721
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
BS=28
|
| 25 |
+
SAVENAME=gref_m10_tmp007_fine_nofltr_bs28
|
| 26 |
+
MARGIN=10
|
| 27 |
+
TEMP=0.07
|
| 28 |
+
MODE=hardpos_only_refined
|
| 29 |
+
FILTER_THRES=0.99
|
| 30 |
+
FUSE_MODE=fine
|
| 31 |
+
|
| 32 |
+
## options
|
| 33 |
+
# gref_m10_tmp007_coarse_nofltr_bs28
|
| 34 |
+
# gref_m10_tmp007_coarse_fthr065_bs28
|
| 35 |
+
# gref_m10_tmp007_coarse_fthr050_bs28
|
| 36 |
+
# gref_m10_tmp007_fine_fthr065_bs28
|
| 37 |
+
# gref_m10_tmp007_fine_nofltr_bs28
|
| 38 |
+
|
| 39 |
+
# TRAIN
|
| 40 |
+
export CUDA_VISIBLE_DEVICES=0
|
| 41 |
+
python_args="--dataset refcocog \
|
| 42 |
+
--splitBy umd \
|
| 43 |
+
--ngpu 1 --batch_size ${BS} \
|
| 44 |
+
--savename ${SAVENAME} --time 17 \
|
| 45 |
+
--metric_learning \
|
| 46 |
+
--margin_value ${MARGIN} \
|
| 47 |
+
--filter_thres ${FILTER_THRES} \
|
| 48 |
+
--temperature ${TEMP} \
|
| 49 |
+
--metric_mode ${MODE} \
|
| 50 |
+
--fuse_mode ${FUSE_MODE} "
|
| 51 |
+
|
| 52 |
+
python train_gref_sbert.py $python_args
|
| 53 |
+
|
| 54 |
+
# python train.py --dataset refcoco --splitBy unc --ngpu 1 --batch_size 36 --time 17 --savename refcoco_bs36_repro
|
| 55 |
+
# python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 28 --time 17 --savename gref_umd_bs28_repro
|
| 56 |
+
# python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 36 --time 17 --savename gref_umd_bs36_repro
|
| 57 |
+
# export CUDA_VISIBLE_DEVICES=0,1; python train.py --dataset refcocog --splitBy umd --ngpu 2 --batch_size 64 --time 17 --savename gref_umd_bs64_repro
|
| 58 |
+
# export CUDA_VISIBLE_DEVICES=0,1; python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 64 --time 17 --savename gref_umd_bs64_repro
|
| 59 |
+
|
| 60 |
+
|
ASDA/scripts/train_gref_sbert_proj.sh
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --job-name=asda-nfltr-pj
|
| 3 |
+
#SBATCH --partition=a6000
|
| 4 |
+
#SBATCH --gres=gpu:1
|
| 5 |
+
#SBATCH --time=13-11:30:00
|
| 6 |
+
#SBATCH --mem=28000
|
| 7 |
+
#SBATCH --cpus-per-task=3
|
| 8 |
+
#SBATCH --output=./exp_projection/pj_gref_m10_tmp007_coarse_fthr065_bs28.log
|
| 9 |
+
|
| 10 |
+
ml purge
|
| 11 |
+
ml load cuda/11.8
|
| 12 |
+
eval "$(conda shell.bash hook)"
|
| 13 |
+
conda activate asda
|
| 14 |
+
|
| 15 |
+
cd /data2/projects/chaeyun/ASDA
|
| 16 |
+
|
| 17 |
+
export NCCL_P2P_DISABLE=1
|
| 18 |
+
export NVIDIA_TF32_OVERRIDE=1
|
| 19 |
+
export NCCL_IB_TIMEOUT=100
|
| 20 |
+
export NCCL_IB_RETRY_CNT=15
|
| 21 |
+
export MASTER_PORT=2969
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
BS=28
|
| 25 |
+
SAVENAME=pj_gref_m10_tmp007_coarse_fthr065_bs28
|
| 26 |
+
MARGIN=10
|
| 27 |
+
TEMP=0.07
|
| 28 |
+
MODE=hardpos_only_refined
|
| 29 |
+
FILTER_THRES=0.65
|
| 30 |
+
FUSE_MODE=coarse
|
| 31 |
+
|
| 32 |
+
## options
|
| 33 |
+
# pj_gref_m10_tmp007_coarse_nofltr_bs28
|
| 34 |
+
# pj_gref_m10_tmp007_coarse_fthr065_bs28
|
| 35 |
+
# pj_gref_m10_tmp007_coarse_fthr050_bs28
|
| 36 |
+
|
| 37 |
+
# pj_gref_m10_tmp007_fine_nofltr_bs28
|
| 38 |
+
# pj_gref_m10_tmp007_fine_fthr050_bs28
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
## TODO : grid search on best setting
|
| 42 |
+
|
| 43 |
+
# TRAIN
|
| 44 |
+
export CUDA_VISIBLE_DEVICES=0
|
| 45 |
+
python_args="--dataset refcocog \
|
| 46 |
+
--splitBy umd \
|
| 47 |
+
--ngpu 1 --batch_size ${BS} \
|
| 48 |
+
--savename ${SAVENAME} --time 17 \
|
| 49 |
+
--metric_learning --use_projections \
|
| 50 |
+
--margin_value ${MARGIN} \
|
| 51 |
+
--filter_thres ${FILTER_THRES} \
|
| 52 |
+
--temperature ${TEMP} \
|
| 53 |
+
--metric_mode ${MODE} \
|
| 54 |
+
--fuse_mode ${FUSE_MODE} "
|
| 55 |
+
|
| 56 |
+
python train_gref_sbert.py $python_args
|
| 57 |
+
|
| 58 |
+
# python train.py --dataset refcoco --splitBy unc --ngpu 1 --batch_size 36 --time 17 --savename refcoco_bs36_repro
|
| 59 |
+
# python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 28 --time 17 --savename gref_umd_bs28_repro
|
| 60 |
+
# python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 36 --time 17 --savename gref_umd_bs36_repro
|
| 61 |
+
# export CUDA_VISIBLE_DEVICES=0,1; python train.py --dataset refcocog --splitBy umd --ngpu 2 --batch_size 64 --time 17 --savename gref_umd_bs64_repro
|
| 62 |
+
# export CUDA_VISIBLE_DEVICES=0,1; python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 64 --time 17 --savename gref_umd_bs64_repro
|
| 63 |
+
|
| 64 |
+
|
ASDA/scripts/train_gref_sbert_proj2.sh
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --job-name=asda-rcoarse-m10
|
| 3 |
+
#SBATCH --partition=a6000
|
| 4 |
+
#SBATCH --gres=gpu:1
|
| 5 |
+
#SBATCH --time=13-11:30:00
|
| 6 |
+
#SBATCH --mem=28000
|
| 7 |
+
#SBATCH --cpus-per-task=3
|
| 8 |
+
#SBATCH --output=./exp_projection/pj_gref_m10_tmp007_refcoarse_nofltroiou_bs32.log
|
| 9 |
+
|
| 10 |
+
ml purge
|
| 11 |
+
ml load cuda/11.8
|
| 12 |
+
eval "$(conda shell.bash hook)"
|
| 13 |
+
conda activate asda
|
| 14 |
+
|
| 15 |
+
cd /data2/projects/chaeyun/ASDA
|
| 16 |
+
|
| 17 |
+
export NCCL_P2P_DISABLE=1
|
| 18 |
+
export NVIDIA_TF32_OVERRIDE=1
|
| 19 |
+
export NCCL_IB_TIMEOUT=100
|
| 20 |
+
export NCCL_IB_RETRY_CNT=15
|
| 21 |
+
export MASTER_PORT=1592
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
BS=32
|
| 25 |
+
SAVENAME=pj_gref_m10_tmp007_refcoarse_nofltroiou_bs32
|
| 26 |
+
MARGIN=10
|
| 27 |
+
TEMP=0.07
|
| 28 |
+
MODE=hardpos_only_refined
|
| 29 |
+
FILTER_THRES=0.99
|
| 30 |
+
FUSE_MODE=refined_coarse
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
# pj_gref_m10_tmp007_refcoarse_nofltroiou_bs28
|
| 34 |
+
|
| 35 |
+
## options
|
| 36 |
+
# pj_gref_m10_tmp007_coarse_nofltr_bs28
|
| 37 |
+
# pj_gref_m10_tmp007_coarse_fthr065_bs28
|
| 38 |
+
# pj_gref_m10_tmp007_coarse_fthr050_bs28
|
| 39 |
+
|
| 40 |
+
# pj_gref_m10_tmp007_fine_nofltr_bs28
|
| 41 |
+
# pj_gref_m10_tmp007_fine_fthr050_bs28
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
## TODO : grid search on best setting
|
| 45 |
+
|
| 46 |
+
# TRAIN
|
| 47 |
+
export CUDA_VISIBLE_DEVICES=0
|
| 48 |
+
python_args="--dataset refcocog \
|
| 49 |
+
--splitBy umd \
|
| 50 |
+
--ngpu 1 --batch_size ${BS} \
|
| 51 |
+
--savename ${SAVENAME} --time 17 \
|
| 52 |
+
--metric_learning --use_projections \
|
| 53 |
+
--margin_value ${MARGIN} \
|
| 54 |
+
--filter_thres ${FILTER_THRES} \
|
| 55 |
+
--temperature ${TEMP} \
|
| 56 |
+
--metric_mode ${MODE} \
|
| 57 |
+
--fuse_mode ${FUSE_MODE} "
|
| 58 |
+
|
| 59 |
+
python train_gref_sbert_oiou.py $python_args
|
| 60 |
+
|
| 61 |
+
# python train.py --dataset refcoco --splitBy unc --ngpu 1 --batch_size 36 --time 17 --savename refcoco_bs36_repro
|
| 62 |
+
# python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 28 --time 17 --savename gref_umd_bs28_repro
|
| 63 |
+
# python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 36 --time 17 --savename gref_umd_bs36_repro
|
| 64 |
+
# export CUDA_VISIBLE_DEVICES=0,1; python train.py --dataset refcocog --splitBy umd --ngpu 2 --batch_size 64 --time 17 --savename gref_umd_bs64_repro
|
| 65 |
+
# export CUDA_VISIBLE_DEVICES=0,1; python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 64 --time 17 --savename gref_umd_bs64_repro
|
| 66 |
+
|
| 67 |
+
|
ASDA/scripts/train_gref_sbert_proj_multigpu.sh
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --job-name=asda-rcoarse-oiou
|
| 3 |
+
#SBATCH --partition=a6000
|
| 4 |
+
#SBATCH --gres=gpu:2
|
| 5 |
+
#SBATCH --time=13-11:30:00
|
| 6 |
+
#SBATCH --mem=28000
|
| 7 |
+
#SBATCH --cpus-per-task=3
|
| 8 |
+
#SBATCH --output=./exp_projection/pj_gref_m10_tmp007_refcoarse_nofltroiou_bs36.log
|
| 9 |
+
|
| 10 |
+
ml purge
|
| 11 |
+
ml load cuda/11.8
|
| 12 |
+
eval "$(conda shell.bash hook)"
|
| 13 |
+
conda activate asda
|
| 14 |
+
|
| 15 |
+
cd /data2/projects/chaeyun/ASDA
|
| 16 |
+
|
| 17 |
+
export NCCL_P2P_DISABLE=1
|
| 18 |
+
export NVIDIA_TF32_OVERRIDE=1
|
| 19 |
+
export NCCL_IB_TIMEOUT=100
|
| 20 |
+
export NCCL_IB_RETRY_CNT=15
|
| 21 |
+
export MASTER_PORT=2765
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
BS=36
|
| 25 |
+
SAVENAME=pj_gref_m10_tmp007_refcoarse_nofltroiou_bs36
|
| 26 |
+
MARGIN=10
|
| 27 |
+
TEMP=0.07
|
| 28 |
+
MODE=hardpos_only_refined
|
| 29 |
+
FILTER_THRES=0.99
|
| 30 |
+
FUSE_MODE=refined_coarse
|
| 31 |
+
|
| 32 |
+
## options
|
| 33 |
+
# pj_gref_m10_tmp007_refcoarse_nofltroiou_bs36
|
| 34 |
+
|
| 35 |
+
# TRAIN
|
| 36 |
+
export CUDA_VISIBLE_DEVICES=0,1;
|
| 37 |
+
python_args="--dataset refcocog \
|
| 38 |
+
--splitBy umd \
|
| 39 |
+
--ngpu 2 --batch_size ${BS} \
|
| 40 |
+
--savename ${SAVENAME} --time 17 \
|
| 41 |
+
--metric_learning --use_projections \
|
| 42 |
+
--margin_value ${MARGIN} \
|
| 43 |
+
--filter_thres ${FILTER_THRES} \
|
| 44 |
+
--temperature ${TEMP} \
|
| 45 |
+
--metric_mode ${MODE} \
|
| 46 |
+
--fuse_mode ${FUSE_MODE} "
|
| 47 |
+
|
| 48 |
+
python train_gref_sbert_oiou.py $python_args
|
| 49 |
+
|
| 50 |
+
# python train.py --dataset refcoco --splitBy unc --ngpu 1 --batch_size 36 --time 17 --savename refcoco_bs36_repro
|
| 51 |
+
# python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 28 --time 17 --savename gref_umd_bs28_repro
|
| 52 |
+
# python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 36 --time 17 --savename gref_umd_bs36_repro
|
| 53 |
+
# export CUDA_VISIBLE_DEVICES=0,1; python train.py --dataset refcocog --splitBy umd --ngpu 2 --batch_size 64 --time 17 --savename gref_umd_bs64_repro
|
| 54 |
+
# export CUDA_VISIBLE_DEVICES=0,1; python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 64 --time 17 --savename gref_umd_bs64_repro
|
| 55 |
+
|
| 56 |
+
|
ASDA/scripts/train_gref_selffilter.sh
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --job-name=asda-fth06
|
| 3 |
+
#SBATCH --partition=a6000
|
| 4 |
+
#SBATCH --gres=gpu:1
|
| 5 |
+
#SBATCH --time=13-11:30:00
|
| 6 |
+
#SBATCH --mem=28000
|
| 7 |
+
#SBATCH --cpus-per-task=3
|
| 8 |
+
#SBATCH --output=./exp_selffilter/selffltr_gref_m10_tmp007_fine_bs28_thr040.log
|
| 9 |
+
|
| 10 |
+
ml purge
|
| 11 |
+
ml load cuda/11.8
|
| 12 |
+
eval "$(conda shell.bash hook)"
|
| 13 |
+
conda activate asda
|
| 14 |
+
|
| 15 |
+
cd /data2/projects/chaeyun/ASDA
|
| 16 |
+
|
| 17 |
+
export NCCL_P2P_DISABLE=1
|
| 18 |
+
export NVIDIA_TF32_OVERRIDE=1
|
| 19 |
+
export NCCL_IB_TIMEOUT=100
|
| 20 |
+
export NCCL_IB_RETRY_CNT=15
|
| 21 |
+
export MASTER_PORT=3127
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
## arguments to be changed
|
| 25 |
+
FUSE_MODE=fine
|
| 26 |
+
MTENSOR_OPTION=use_fuser
|
| 27 |
+
BS=28
|
| 28 |
+
SAVENAME=selffltr_gref_m10_tmp007_fine_bs28_thr040
|
| 29 |
+
MARGIN=10
|
| 30 |
+
TEMP=0.07
|
| 31 |
+
SELF_FTHRES=0.41
|
| 32 |
+
|
| 33 |
+
## Fixed arguments
|
| 34 |
+
MODE=hardpos_only_refined
|
| 35 |
+
FILTER_THRES=0.99
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
# TRAIN
|
| 39 |
+
export CUDA_VISIBLE_DEVICES=0
|
| 40 |
+
python_args="--dataset refcocog \
|
| 41 |
+
--splitBy umd \
|
| 42 |
+
--ngpu 1 --batch_size ${BS} \
|
| 43 |
+
--savename ${SAVENAME} --time 17 \
|
| 44 |
+
--metric_learning \
|
| 45 |
+
--margin_value ${MARGIN} \
|
| 46 |
+
--filter_thres ${FILTER_THRES} \
|
| 47 |
+
--metric_tensor_option ${MTENSOR_OPTION} \
|
| 48 |
+
--self_filter \
|
| 49 |
+
--self_fthres ${SELF_FTHRES} \
|
| 50 |
+
--temperature ${TEMP} \
|
| 51 |
+
--metric_mode ${MODE} \
|
| 52 |
+
--fuse_mode ${FUSE_MODE} "
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
python train_gref_selffilter.py $python_args
|
| 57 |
+
|
| 58 |
+
# python train.py --dataset refcoco --splitBy unc --ngpu 1 --batch_size 36 --time 17 --savename refcoco_bs36_repro
|
| 59 |
+
# python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 28 --time 17 --savename gref_umd_bs28_repro
|
| 60 |
+
# python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 36 --time 17 --savename gref_umd_bs36_repro
|
| 61 |
+
# export CUDA_VISIBLE_DEVICES=0,1; python train.py --dataset refcocog --splitBy umd --ngpu 2 --batch_size 64 --time 17 --savename gref_umd_bs64_repro
|
| 62 |
+
# export CUDA_VISIBLE_DEVICES=0,1; python train.py --dataset refcocog --splitBy umd --ngpu 1 --batch_size 64 --time 17 --savename gref_umd_bs64_repro
|
| 63 |
+
|
| 64 |
+
|
ASDA/scripts/train_rcc_sbert.sh
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --job-name=asda-rcc-pj5
|
| 3 |
+
#SBATCH --partition=a6000
|
| 4 |
+
#SBATCH --gres=gpu:1
|
| 5 |
+
#SBATCH --time=13-11:30:00
|
| 6 |
+
#SBATCH --mem=28000
|
| 7 |
+
#SBATCH --cpus-per-task=3
|
| 8 |
+
#SBATCH --output=./exp_rcc_projection/pj_rcc_m10_tmp007_fine_nofltroiou_bs28.log
|
| 9 |
+
|
| 10 |
+
ml purge
|
| 11 |
+
ml load cuda/11.8
|
| 12 |
+
eval "$(conda shell.bash hook)"
|
| 13 |
+
conda activate asda
|
| 14 |
+
|
| 15 |
+
cd /data2/projects/chaeyun/ASDA
|
| 16 |
+
|
| 17 |
+
export NCCL_P2P_DISABLE=1
|
| 18 |
+
export NVIDIA_TF32_OVERRIDE=1
|
| 19 |
+
export NCCL_IB_TIMEOUT=100
|
| 20 |
+
export NCCL_IB_RETRY_CNT=15
|
| 21 |
+
export MASTER_PORT=1989
|
| 22 |
+
|
| 23 |
+
BS=28
|
| 24 |
+
SAVENAME=pj_rcc_m10_tmp007_fine_nofltroiou_bs28
|
| 25 |
+
MARGIN=10
|
| 26 |
+
TEMP=0.07
|
| 27 |
+
MODE=hardpos_only_refined
|
| 28 |
+
FILTER_THRES=0.99
|
| 29 |
+
FUSE_MODE=fine
|
| 30 |
+
|
| 31 |
+
# Running options
|
| 32 |
+
# pj_rcc_m10_tmp007_coarse_nofltroiou_bs28
|
| 33 |
+
# pj_rcc_m10_tmp007_coarse_fthr070_oiou_bs28
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
# TRAIN
|
| 38 |
+
export CUDA_VISIBLE_DEVICES=0
|
| 39 |
+
python_args="--dataset refcoco \
|
| 40 |
+
--splitBy unc \
|
| 41 |
+
--ngpu 1 --batch_size ${BS} \
|
| 42 |
+
--savename ${SAVENAME} --time 17 \
|
| 43 |
+
--metric_learning --use_projections \
|
| 44 |
+
--margin_value ${MARGIN} \
|
| 45 |
+
--filter_thres ${FILTER_THRES} \
|
| 46 |
+
--temperature ${TEMP} \
|
| 47 |
+
--metric_mode ${MODE} \
|
| 48 |
+
--fuse_mode ${FUSE_MODE} "
|
| 49 |
+
|
| 50 |
+
python train_rcc_sbert_oiou.py $python_args
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
# python train.py --dataset refcoco --splitBy unc --ngpu 1 --batch_size 36 --time 17 --savename refcoco_bs36_repro
|
| 54 |
+
|
| 55 |
+
# python train.py --dataset refcoco+ --splitBy unc --ngpu 1 --batch_size 28 --time 17 --savename refcocop_bs28_repro
|
| 56 |
+
# python train.py --dataset refcoco+ --splitBy unc --ngpu 1 --batch_size 36 --time 17 --savename refcocop_bs36_repro
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
|
ASDA/scripts/train_rcc_sbert2.sh
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --job-name=asda-rcc-pj7
|
| 3 |
+
#SBATCH --partition=a6000
|
| 4 |
+
#SBATCH --gres=gpu:1
|
| 5 |
+
#SBATCH --time=13-11:30:00
|
| 6 |
+
#SBATCH --mem=28000
|
| 7 |
+
#SBATCH --cpus-per-task=3
|
| 8 |
+
#SBATCH --output=./exp_rcc_projection/pj_rcc_m12_tmp007_refcoarse_nofltroiou_bs32.log
|
| 9 |
+
|
| 10 |
+
ml purge
|
| 11 |
+
ml load cuda/11.8
|
| 12 |
+
eval "$(conda shell.bash hook)"
|
| 13 |
+
conda activate asda
|
| 14 |
+
|
| 15 |
+
cd /data2/projects/chaeyun/ASDA
|
| 16 |
+
|
| 17 |
+
export NCCL_P2P_DISABLE=1
|
| 18 |
+
export NVIDIA_TF32_OVERRIDE=1
|
| 19 |
+
export NCCL_IB_TIMEOUT=100
|
| 20 |
+
export NCCL_IB_RETRY_CNT=15
|
| 21 |
+
export MASTER_PORT=2948
|
| 22 |
+
|
| 23 |
+
BS=32
|
| 24 |
+
SAVENAME=pj_rcc_m12_tmp007_refcoarse_nofltroiou_bs32
|
| 25 |
+
MARGIN=12
|
| 26 |
+
TEMP=0.07
|
| 27 |
+
MODE=hardpos_only_refined
|
| 28 |
+
FILTER_THRES=0.99
|
| 29 |
+
FUSE_MODE=refined_coarse
|
| 30 |
+
|
| 31 |
+
# Running options
|
| 32 |
+
# pj_rcc_m10_tmp007_coarse_nofltroiou_bs28
|
| 33 |
+
# pj_rcc_m10_tmp007_coarse_fthr070_oiou_bs28
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
# TRAIN
|
| 38 |
+
export CUDA_VISIBLE_DEVICES=0
|
| 39 |
+
python_args="--dataset refcoco \
|
| 40 |
+
--splitBy unc \
|
| 41 |
+
--ngpu 1 --batch_size ${BS} \
|
| 42 |
+
--savename ${SAVENAME} --time 17 \
|
| 43 |
+
--metric_learning --use_projections \
|
| 44 |
+
--margin_value ${MARGIN} \
|
| 45 |
+
--filter_thres ${FILTER_THRES} \
|
| 46 |
+
--temperature ${TEMP} \
|
| 47 |
+
--metric_mode ${MODE} \
|
| 48 |
+
--fuse_mode ${FUSE_MODE} "
|
| 49 |
+
|
| 50 |
+
python train_rcc_sbert_oiou.py $python_args
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
# python train.py --dataset refcoco --splitBy unc --ngpu 1 --batch_size 36 --time 17 --savename refcoco_bs36_repro
|
| 54 |
+
|
| 55 |
+
# python train.py --dataset refcoco+ --splitBy unc --ngpu 1 --batch_size 28 --time 17 --savename refcocop_bs28_repro
|
| 56 |
+
# python train.py --dataset refcoco+ --splitBy unc --ngpu 1 --batch_size 36 --time 17 --savename refcocop_bs36_repro
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
|
ASDA/scripts/train_rccp_sbert.sh
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --job-name=asda-rccp-pj5
|
| 3 |
+
#SBATCH --partition=a6000
|
| 4 |
+
#SBATCH --gres=gpu:1
|
| 5 |
+
#SBATCH --time=13-11:30:00
|
| 6 |
+
#SBATCH --mem=28000
|
| 7 |
+
#SBATCH --cpus-per-task=3
|
| 8 |
+
#SBATCH --output=./exp_rccp_projection/pj_rccp_m12_tmp007_refcoarse_nofltroiou_bs32.log
|
| 9 |
+
|
| 10 |
+
ml purge
|
| 11 |
+
ml load cuda/11.8
|
| 12 |
+
eval "$(conda shell.bash hook)"
|
| 13 |
+
conda activate asda
|
| 14 |
+
|
| 15 |
+
cd /data2/projects/chaeyun/ASDA
|
| 16 |
+
|
| 17 |
+
export NCCL_P2P_DISABLE=1
|
| 18 |
+
export NVIDIA_TF32_OVERRIDE=1
|
| 19 |
+
export NCCL_IB_TIMEOUT=100
|
| 20 |
+
export NCCL_IB_RETRY_CNT=15
|
| 21 |
+
export MASTER_PORT=8128
|
| 22 |
+
|
| 23 |
+
BS=32
|
| 24 |
+
SAVENAME=pj_rccp_m12_tmp007_refcoarse_nofltroiou_bs32
|
| 25 |
+
MARGIN=12
|
| 26 |
+
TEMP=0.07
|
| 27 |
+
MODE=hardpos_only_refined
|
| 28 |
+
FILTER_THRES=0.99
|
| 29 |
+
FUSE_MODE=refined_coarse
|
| 30 |
+
|
| 31 |
+
# Running options
|
| 32 |
+
# pj_rccp_m10_tmp007_coarse_nofltroiou_bs28
|
| 33 |
+
|
| 34 |
+
# pending
|
| 35 |
+
# pj_rccp_m10_tmp007_coarse_fthr070_oiou_bs28
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
# TRAIN
|
| 39 |
+
export CUDA_VISIBLE_DEVICES=0
|
| 40 |
+
python_args="--dataset refcoco+ \
|
| 41 |
+
--splitBy unc \
|
| 42 |
+
--ngpu 1 --batch_size ${BS} \
|
| 43 |
+
--savename ${SAVENAME} --time 17 \
|
| 44 |
+
--metric_learning --use_projections \
|
| 45 |
+
--margin_value ${MARGIN} \
|
| 46 |
+
--filter_thres ${FILTER_THRES} \
|
| 47 |
+
--temperature ${TEMP} \
|
| 48 |
+
--metric_mode ${MODE} \
|
| 49 |
+
--fuse_mode ${FUSE_MODE} "
|
| 50 |
+
|
| 51 |
+
python train_rcc_sbert_oiou.py $python_args
|
| 52 |
+
|
| 53 |
+
|
ASDA/scripts/train_rccp_sbert2.sh
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --job-name=asda-rccp-pj2
|
| 3 |
+
#SBATCH --partition=a6000
|
| 4 |
+
#SBATCH --gres=gpu:1
|
| 5 |
+
#SBATCH --time=13-11:30:00
|
| 6 |
+
#SBATCH --mem=28000
|
| 7 |
+
#SBATCH --cpus-per-task=3
|
| 8 |
+
#SBATCH --output=./exp_rccp_projection/pj_rccp_m10_tmp007_coarse_fthr070_oiou_bs28.log
|
| 9 |
+
|
| 10 |
+
ml purge
|
| 11 |
+
ml load cuda/11.8
|
| 12 |
+
eval "$(conda shell.bash hook)"
|
| 13 |
+
conda activate asda
|
| 14 |
+
|
| 15 |
+
cd /data2/projects/chaeyun/ASDA
|
| 16 |
+
|
| 17 |
+
export NCCL_P2P_DISABLE=1
|
| 18 |
+
export NVIDIA_TF32_OVERRIDE=1
|
| 19 |
+
export NCCL_IB_TIMEOUT=100
|
| 20 |
+
export NCCL_IB_RETRY_CNT=15
|
| 21 |
+
export MASTER_PORT=8871
|
| 22 |
+
|
| 23 |
+
BS=28
|
| 24 |
+
SAVENAME=pj_rccp_m10_tmp007_coarse_fthr070_oiou_bs28
|
| 25 |
+
MARGIN=10
|
| 26 |
+
TEMP=0.07
|
| 27 |
+
MODE=hardpos_only_refined
|
| 28 |
+
FILTER_THRES=0.68
|
| 29 |
+
FUSE_MODE=coarse
|
| 30 |
+
|
| 31 |
+
# Running options
|
| 32 |
+
# pj_rccp_m10_tmp007_coarse_fthr070_oiou_bs28
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
# TRAIN
|
| 36 |
+
export CUDA_VISIBLE_DEVICES=0
|
| 37 |
+
python_args="--dataset refcoco+ \
|
| 38 |
+
--splitBy unc \
|
| 39 |
+
--ngpu 1 --batch_size ${BS} \
|
| 40 |
+
--savename ${SAVENAME} --time 17 \
|
| 41 |
+
--metric_learning --use_projections \
|
| 42 |
+
--margin_value ${MARGIN} \
|
| 43 |
+
--filter_thres ${FILTER_THRES} \
|
| 44 |
+
--temperature ${TEMP} \
|
| 45 |
+
--metric_mode ${MODE} \
|
| 46 |
+
--fuse_mode ${FUSE_MODE} "
|
| 47 |
+
|
| 48 |
+
python train_rcc_sbert_oiou.py $python_args
|
| 49 |
+
|
| 50 |
+
|