forked from ruotianluo/self-critical.pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
39 lines (38 loc) · 3.25 KB
/
run.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
python convert_mimic.py
python convert_retina.py
python profeat_mimic.py --input_json data/dataset_mimic_rm.json --output_dir data/mimicrm --images_root /media/hdd/donghao/imcaption/R2Gen/data/mimic_cxr/images
python profeat_retina.py --input_json data/dataset_retina_resize.json --output_dir data/retina_resize
python scripts/prepro_labels.py --input_json data/dataset_mimic_rm.json --output_json data/mimicrmtalk.json --output_h5 data/mimicrmtalk --max_length 60
python scripts/prepro_labels.py --input_json data/dataset_retina_resize.json --output_json data/retinaresizetalk.json --output_h5 data/retinaresizetalk --max_length 60
python scripts/prepro_reference_json_mimic.py --input_json data/dataset_mimic_rm.json --output_json data/mimicrm_eval.json
python scripts/prepro_reference_json_mimic.py --input_json data/dataset_mimic.json --output_json data/mimic_eval.json
python count_dataset_and_overall.py
# modify the file named eval_utils.py located at captioning/utils/eval_utils.py
# modify getCOCO function
python tools/train.py --cfg configs/mimic_aoa.yml --id aoa
python tools/train.py --cfg configs/retina_aoa.yaml --id retina_aoa
python tools/train.py --cfg configs/mimic_a2i2.yml --id a2i2
python tools/train.py --cfg configs/fds_tf.yml --id tfdebugv3
python tools/train.py --cfg configs/mimic_fc.yml --id fc
python tools/train.py --cfg configs/mimic_m2.yml --id m2
python tools/train.py --cfg configs/mimic_updown.yml --id updown
python tools/train.py --cfg configs/mimic_bert.yml --id bert
python tools/train.py --cfg configs/mimicrm_m2.yml --id m2rm
python tools/train.py --cfg configs/mimicrm_tf.yaml --id tfrm
python tools/eval_mimic.py --model logs/mimic_updown/model-best.pth --infos_path logs/mimic_updown/infos_updown-best.pkl --split test
python tools/eval_mimic.py --model logs/mimic_tfv2/model-best.pth --infos_path logs/mimic_tfv2/infos_mimic_tf-best.pkl --split test
python tools/eval_mimic.py --model logs/mimic_a2i2/model-best.pth --infos_path logs/mimic_a2i2/infos_a2i2-best.pkl --split test
python tools/eval_mimic.py --model logs/mimic_fc/model-best.pth --infos_path logs/mimic_fc/infos_fc-best.pkl --split test
python tools/eval_mimic.py --model logs/mimic_m2/model-best.pth --infos_path logs/mimic_m2/infos_m2-best.pkl --split test
python tools/eval_mimic.py --model logs/mimic_aoa/model-best.pth --infos_path logs/mimic_aoa/infos_aoa-best.pkl --split test
python tools/eval_mimic.py --model logs/mimicrm_tf/model-best.pth --infos_path logs/mimicrm_tf/infos_tfrm-best.pkl --split test
python tools/eval_mimic.py --model logs/mimicrm_tfv2/model-best.pth --infos_path logs/mimicrm_tf/infos_tfrm-best.pkl --split test
python tools/eval_mimic.py --model logs/mimicrm_tfv2/model-15.pth --infos_path logs/mimicrm_tfv2/infos_tfrm-15.pkl --split test
python convert_retina_tiny.py
python profeat_retina.py --input_json data/dataset_retina_resize_tiny.json --output_dir data/retina_resize_tiny
python scripts/prepro_labels.py --input_json data/dataset_retina_resize_tiny.json --output_json data/retinatinytalk.json --output_h5 data/retinatinytalk --max_length 60
python count_dataset_and_overall.py
# modify the file named eval_utils.py located at captioning/utils/eval_utils.py
# modify getCOCO function
python tools/train.py --cfg configs/retina_tiny_aoa.yml --id retina_tiny_aoa
# create config file