Skip to content

Commit 2f03692

Browse files
author
Ye Shaokai
committed
WIP
1 parent ebcd7c9 commit 2f03692

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.vscode/launch.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
"--deepspeed", "scripts/zero3.json",
251251
"--model_name_or_path", "lmms-lab/llava-onevision-qwen2-0.5b-ov",
252252
"--version", "qwen_1_5",
253-
"--data_path", "scripts/train/vis_supervision_strong_baseline.yaml",
253+
"--data_path", "scripts/train/simple_tim_top5_cut.yaml",
254254
"--video_folder", "/data/shaokai/",
255255
"--mm_tunable_parts", "mm_vision_tower,mm_mlp_adapter,mm_language_model",
256256
"--mm_vision_tower_lr", "2e-6",
@@ -294,11 +294,12 @@
294294
"--val_metadata", "/data/shaokai/epic-kitchens-100-annotations/EPIC_100_validation.csv",
295295
"--llava_num_frames", "16",
296296
"--clip_length", "16",
297-
"--action_representation", "GT_random_narration",
297+
"--action_representation", "topk_narration_cut_key",
298298
"--topk_predictions", "5",
299-
"--eval_steps", "10",
299+
"--eval_steps", "1",
300300
"--vision_supervision", "all_newlines",
301-
"--action_types", "97,300,3806"
301+
"--action_types", "97,300,3806",
302+
"--n_narration", "5"
302303
],
303304
"console": "integratedTerminal",
304305
"justMyCode": false,

llava/action/ek_eval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ def evaluate_on_EK100(eval_args,
199199

200200
crop_size = 336
201201
labels, mapping_vn2narration, mapping_vn2act, verb_maps, noun_maps = generate_label_map(Path(eval_args.val_metadata).parent,
202-
eval_args.action_representation,
203-
cache_file = Path(eval_args.val_metadata).parent / 'nlp_cache.pkl')
202+
eval_args.action_representation)
203+
204204

205205
if eval_args.action_predictions:
206206
with open(eval_args.action_predictions, 'r') as f:

0 commit comments

Comments
 (0)