Skip to content

Commit

Permalink
add video training and infer scripts for GLEE-Pro and fix improve inf…
Browse files Browse the repository at this point in the history
…er speed
  • Loading branch information
wjf5203 committed Aug 8, 2024
1 parent 028ecee commit 6f5a19d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions projects/GLEE/configs/videos/Pro/BURST_Pro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ MODEL:
CROSS_TRACK: False
PSEUDO_VIDEO: False
FREEZE_WHOLE: False
VIDEO_WINDOW_SIZE: 2
BACKBONE:
NAME: "D2_EVA02"
EVA02:
Expand Down
1 change: 1 addition & 0 deletions projects/GLEE/configs/videos/Pro/TAO_Pro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ MODEL:
CROSS_TRACK: False
PSEUDO_VIDEO: False
FREEZE_WHOLE: False
VIDEO_WINDOW_SIZE: 2
BACKBONE:
NAME: "D2_EVA02"
EVA02:
Expand Down
1 change: 1 addition & 0 deletions projects/GLEE/configs/videos/Pro/ovis_Pro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ MODEL:
CROSS_TRACK: False
PSEUDO_VIDEO: False
FREEZE_WHOLE: False
VIDEO_WINDOW_SIZE: 2
BACKBONE:
NAME: "D2_EVA02"
EVA02:
Expand Down
3 changes: 2 additions & 1 deletion projects/GLEE/glee/GLEE.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ def __init__(self, cfg):
self.num_queries = cfg.MODEL.MaskDINO.NUM_OBJECT_QUERIES
self.instance_on = True
self.visaul_prompt = cfg.MODEL.VISUAL_PROMPT
self.video_window_size = cfg.MODEL.VIDEO_WINDOW_SIZE

self.is_lsj = cfg.INPUT.DATASET_MAPPER_NAME == 'coco_instance_lsj'

Expand Down Expand Up @@ -754,7 +755,7 @@ def MinVIS_inference(self, batched_inputs, task):
video_len = len(batched_inputs[0]['file_names'])


clip_length = 5 # self.batch_infer_len
clip_length = self.video_window_size
batch_name_list = self.dataset_name_dicts[task]

#split long video into clips to form a batch input
Expand Down
1 change: 1 addition & 0 deletions projects/GLEE/glee/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def add_glee_config(cfg):
cfg.MODEL.CROSS_TRACK = False
cfg.MODEL.TRACK_VERSION = 'v3'
cfg.MODEL.EARLYFUSION = True
cfg.MODEL.VIDEO_WINDOW_SIZE = 10

cfg.INPUT.SAMPLING_FRAME_NUM = 1
cfg.INPUT.SAMPLING_FRAME_RANGE = 10
Expand Down

0 comments on commit 6f5a19d

Please sign in to comment.