Spaces:
Running
on
Zero
Running
on
Zero
Update hawk/models/video_llama.py
Browse files
hawk/models/video_llama.py
CHANGED
@@ -412,7 +412,7 @@ class VideoLLAMA(Blip2Base):
|
|
412 |
with self.maybe_autocast():
|
413 |
|
414 |
# embed image features with blip2, out: (b t) q h
|
415 |
-
image_embeds = self.ln_vision(self.visual_encoder(image).to(device)
|
416 |
|
417 |
image_atts = torch.ones(image_embeds.size()[:-1], dtype=torch.long).to(device)
|
418 |
|
|
|
412 |
with self.maybe_autocast():
|
413 |
|
414 |
# embed image features with blip2, out: (b t) q h
|
415 |
+
image_embeds = self.ln_vision(self.visual_encoder(image)).to(device)
|
416 |
|
417 |
image_atts = torch.ones(image_embeds.size()[:-1], dtype=torch.long).to(device)
|
418 |
|