Skip to content

Commit

Permalink
defined self.nframe as used in the generate_inner
Browse files Browse the repository at this point in the history
  • Loading branch information
amitbcp committed Jan 6, 2025
1 parent b96a00e commit f0b7e2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vlmeval/vlm/video_llm/video_llava.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def __init__(self, model_path='LanguageBind/Video-LLaVA-7B-hf', **kwargs):
self.model.eval().cuda()
self.processor = VideoLlavaProcessor.from_pretrained(model_path)
self.kwargs = kwargs
self.nframe = 8
torch.cuda.empty_cache()

def generate_inner(self, message, dataset=None):
Expand Down

0 comments on commit f0b7e2a

Please sign in to comment.