Spaces:
Running
on
A10G
Running
on
A10G
Commit
·
292d4e3
1
Parent(s):
c75b625
eval configs
Browse files- eval_configs/demo.yaml +26 -0
- eval_configs/eval_emotion.yaml +40 -0
eval_configs/demo.yaml
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
model:
|
2 |
+
arch: minigpt_v2
|
3 |
+
model_type: pretrain
|
4 |
+
max_txt_len: 500
|
5 |
+
end_sym: "</s>"
|
6 |
+
# low_resource: True
|
7 |
+
low_resource: False
|
8 |
+
prompt_template: '[INST] {} [/INST]'
|
9 |
+
|
10 |
+
ckpt: "/home/czb/project/Emotion-LLaMA/checkpoints/save_checkpoint/MER2023-20240602194_demo/Emoation_LLaMA.pth"
|
11 |
+
|
12 |
+
lora_r: 64
|
13 |
+
lora_alpha: 16
|
14 |
+
|
15 |
+
datasets:
|
16 |
+
feature_face_caption:
|
17 |
+
vis_processor:
|
18 |
+
train:
|
19 |
+
name: "blip2_image_eval"
|
20 |
+
image_size: 448
|
21 |
+
text_processor:
|
22 |
+
train:
|
23 |
+
name: "blip_caption"
|
24 |
+
|
25 |
+
run:
|
26 |
+
task: image_text_pretrain
|
eval_configs/eval_emotion.yaml
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
model:
|
2 |
+
arch: minigpt_v2
|
3 |
+
model_type: pretrain
|
4 |
+
max_txt_len: 500
|
5 |
+
end_sym: "</s>"
|
6 |
+
low_resource: False
|
7 |
+
prompt_template: '[INST] {} [/INST]'
|
8 |
+
llama_model: "/home/user/project/Emotion-LLaMA/checkpoints/Llama-2-7b-chat-hf"
|
9 |
+
ckpt: "/home/user/project/Emotion-LLaMA/checkpoints/save_checkpoint/stage2/checkpoint_best.pth"
|
10 |
+
lora_r: 64
|
11 |
+
lora_alpha: 16
|
12 |
+
|
13 |
+
datasets:
|
14 |
+
feature_face_caption: #
|
15 |
+
batch_size: 1
|
16 |
+
vis_processor:
|
17 |
+
train:
|
18 |
+
name: "blip2_image_train"
|
19 |
+
image_size: 448
|
20 |
+
text_processor:
|
21 |
+
train:
|
22 |
+
name: "blip_caption"
|
23 |
+
sample_ratio: 30
|
24 |
+
|
25 |
+
evaluation_datasets:
|
26 |
+
feature_face_caption:
|
27 |
+
eval_file_path: /home/user/selected_face/face_emotion/relative_test3_NCEV.txt # MER2023
|
28 |
+
|
29 |
+
img_path: /home/user/selected_face/first_face/first_frames
|
30 |
+
|
31 |
+
# eval_file_path: /home/user/selected_face/DFEW/reltive_DFEW_set_1_test.txt
|
32 |
+
# img_path: /home/user/selected_face/DFEW/images
|
33 |
+
|
34 |
+
max_new_tokens: 500
|
35 |
+
batch_size: 1
|
36 |
+
|
37 |
+
run:
|
38 |
+
task: image_text_pretrain
|
39 |
+
name: minigptv2_evaluation
|
40 |
+
save_path: /home/user/project/Emotion-LLaMA/results
|