-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_object_detection_prediction.sh
executable file
·30 lines (30 loc) · 1.25 KB
/
run_object_detection_prediction.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
CUDA_VISIBLE_DEVICES=0 python object_detection_prediction.py \
--output_dir="./save/obj-det" \
--train_dataset_path='./preprocessed_data/ambiguous_candidates/simmc2.1_ambiguous_candidates_dstc11_train.json' \
--dev_dataset_path='./preprocessed_data/ambiguous_candidates/simmc2.1_ambiguous_candidates_dstc11_dev.json' \
--devtest_dataset_path='./preprocessed_data/ambiguous_candidates/simmc2.1_ambiguous_candidates_dstc11_devtest.json' \
--cache_dir="./cache/obj-det" \
--model_name_or_path="./save/obj-det/facebook/detr-resnet-50" \
--per_device_train_batch_size=1 \
--per_device_eval_batch_size=1 \
--num_train_epochs=200 \
--fp16=True \
--save_strategy="epoch" \
--save_steps=1 \
--logging_strategy="epoch" \
--logging_steps=1 \
--evaluation_strategy="epoch" \
--eval_steps=1 \
--gradient_accumulation_steps=8 \
--eval_accumulation_steps=8 \
--learning_rate=1e-4 \
--save_total_limit=1 \
--remove_unused_columns=False \
--report_to="tensorboard" \
--seed=42 \
--data_seed=42 \
--load_best_model_at_end=True \
--preprocessing_num_workers=16 \
--overwrite_output_dir=True \
--preprocessed_data_dir="./preprocessed_data/visual_features/" \
--remove_unused_columns=False