-
Notifications
You must be signed in to change notification settings - Fork 1
/
captioning.sh
81 lines (71 loc) · 2.9 KB
/
captioning.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
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
CUDA_VISIBLE_DEVICES=0 python -m sqllava.eval.model_cap \
--model_path ./checkpoints/path/to/ckpt/\
--model_base ./checkpoints/sharegpt4_pretrain \
--question-file ./playground/coco/question3.jsonl \
--image-folder path/to/coco2014/images/val2014/\
--answers-file ./output/coco/1200.jsonl \
--conv-mode="v1" \
--lora_pretrain ./checkpoints/path/to/ckpt/Vit-lora \
python sqllava/eval/eval_image_caption.py \
--answers-file ./output/coco/1200.jsonl\
--annotation path/to/coco2014/annotations/coco_karpathy_test.json\
--model_name "1200" \
--dataset "coco"
CUDA_VISIBLE_DEVICES=0 python -m sqllava.eval.model_cap \
--model_path ./checkpoints/path/to/ckpt\
--model_base ./checkpoints/sharegpt4_pretrain \
--question-file ./playground/nocaps/near-domain_question.jsonl \
--image-folder path/to/nocaps/images/near-domain\
--answers-file ./output/nocaps/1200.jsonl \
--conv-mode="v1" \
--temperature 0 \
--lora_pretrain ./checkpoints/path/to/ckpt/Vit-lora \
#
python sqllava/eval/eval_image_caption.py \
--answers-file ./output/nocaps/1200.jsonl\
--annotation path/to/nocaps/nocaps_val_near_domain.json\
--model_name "1200" \
--dataset "nocap_near_d"
CUDA_VISIBLE_DEVICES=0 python -m sqllava.eval.model_cap \
--model_path ./checkpoints/path/to/ckpt \
--model_base ./checkpoints/sharegpt4_pretrain\
--question-file ./playground/flickr/question3.jsonl \
--image-folder path/to/Flickr/flickr30k_images\
--answers-file ./output/flickr/1200.jsonl \
--conv-mode="v1" \
--lora_pretrain ./checkpoints/path/to/ckpt/Vit-lora \
python sqllava/eval/eval_image_caption.py \
--answers-file ./output/flickr/1200.jsonl\
--annotation path/to/Flickr/annotations/flickr30k_test.json\
--model_name "1200" \
--dataset "flickr"
#
CUDA_VISIBLE_DEVICES=0 python -m sqllava.eval.model_cap \
--model_path ./checkpoints/path/to/ckpt/ \
--model_base ./checkpoints/sharegpt4_pretrain\
--question-file ./playground/nocaps/out-domain_question.jsonl \
--image-folder /path/to/nocaps/images/out-domain\
--answers-file ./output/nocaps/1200.jsonl \
--conv-mode="v1" \
--temperature 0 \
--lora_pretrain ./checkpoints/path/to/ckpt/Vit-lora \
python sqllava/eval/eval_image_caption.py \
--answers-file ./output/nocaps/1200.jsonl\
--annotation path/to/nocaps/nocaps_val_out_domain.json\
--model_name "1200" \
--dataset "nocap_out_d"
#
CUDA_VISIBLE_DEVICES=0 python -m sqllava.eval.model_cap \
--model_path ./checkpoints/path/to/ckpt \
--model_base ./checkpoints/sharegpt4_pretrain\
--question-file ./playground/conceptual/question3.jsonl \
--image-folder /path/to/conceptual \
--answers-file ./output/conceptual/1200.jsonl \
--conv-mode="v1" \
--temperature 0 \
--lora_pretrain ./checkpoints/path/to/ckpt/Vit-lora \
python sqllava/eval/eval_image_caption.py \
--answers-file ./output/conceptual/1200.jsonl\
--QA ./playground/conceptual/question3.jsonl \
--model_name "1200"\
--dataset "concept"