Add configs/evaluate.yaml
Browse files- configs/evaluate.yaml +56 -0
configs/evaluate.yaml
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (c) 2022, salesforce.com, inc.
|
| 2 |
+
# All rights reserved.
|
| 3 |
+
# SPDX-License-Identifier: BSD-3-Clause
|
| 4 |
+
# For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
| 5 |
+
|
| 6 |
+
# Bleu_1: 0.832
|
| 7 |
+
# Bleu_2: 0.691
|
| 8 |
+
# Bleu_3: 0.556
|
| 9 |
+
# Bleu_4: 0.438
|
| 10 |
+
# METEOR: 0.317
|
| 11 |
+
# ROUGE_L: 0.620
|
| 12 |
+
# CIDEr: 1.461
|
| 13 |
+
# SPICE: 0.252
|
| 14 |
+
|
| 15 |
+
model:
|
| 16 |
+
arch: instruct_vicuna7b # blip2 blip2_opt instruct_vicuna7b
|
| 17 |
+
model_type: vicuna7b # pretrain pretrain_opt2.7b vicuna7b
|
| 18 |
+
use_grad_checkpoint: False
|
| 19 |
+
pretrained: ./output/BLIP2/train_vicua/20250320054/checkpoint_best.pth #/root/autodl-tmp/Blip2CC/output/BLIP2/train_vicua/20250319222/checkpoint_best.pth #/root/autodl-tmp/Blip2CC/output/BLIP2/train_vicua/20250206211/checkpoint_0.pth #/root/autodl-tmp/Blip2CC/output/BLIP2/train_vicua/20250206211/checkpoint_0.pth
|
| 20 |
+
|
| 21 |
+
datasets:
|
| 22 |
+
changechat_105k: # ChangeChat-105k change captioning dataset
|
| 23 |
+
vis_processor:
|
| 24 |
+
eval:
|
| 25 |
+
name: "blip_image_eval"
|
| 26 |
+
image_size: 224
|
| 27 |
+
text_processor:
|
| 28 |
+
eval:
|
| 29 |
+
name: "blip_caption"
|
| 30 |
+
# build_info:
|
| 31 |
+
# images:
|
| 32 |
+
# storage: '/export/share/datasets/vision/coco/images/'
|
| 33 |
+
|
| 34 |
+
run:
|
| 35 |
+
task: captioning
|
| 36 |
+
# optimizer
|
| 37 |
+
batch_size_train: 4
|
| 38 |
+
batch_size_eval: 4
|
| 39 |
+
num_workers: 0
|
| 40 |
+
|
| 41 |
+
max_len: 30
|
| 42 |
+
min_len:
|
| 43 |
+
num_beams: 1
|
| 44 |
+
prompt: 'Please briefly describe the changes in these two images.'
|
| 45 |
+
# Please briefly describe the changes in these two images.// prompt在dataset的text_input那里修改就好
|
| 46 |
+
|
| 47 |
+
seed: 42
|
| 48 |
+
output_dir: "output/BLIP2/Caption_coco_opt2.7b"
|
| 49 |
+
|
| 50 |
+
evaluate: True
|
| 51 |
+
test_splits: ["test"]
|
| 52 |
+
|
| 53 |
+
device: "cuda"
|
| 54 |
+
world_size: 1
|
| 55 |
+
dist_url: "env://"
|
| 56 |
+
distributed: True
|