Spaces:
Runtime error
Runtime error
Update hawk/models/video_llama.py
Browse files
hawk/models/video_llama.py
CHANGED
@@ -403,7 +403,7 @@ class VideoLLAMA(Blip2Base):
|
|
403 |
|
404 |
def encode_videoQformer_visual(self, image, motion=False):
|
405 |
if motion is False:
|
406 |
-
device = "cuda
|
407 |
|
408 |
# input shape b,c,t,h,w
|
409 |
batch_size,_,time_length,_,_ = image.size()
|
@@ -454,7 +454,7 @@ class VideoLLAMA(Blip2Base):
|
|
454 |
|
455 |
else:
|
456 |
# Motion Encoder
|
457 |
-
device = "cuda
|
458 |
|
459 |
# input shape b,c,t,h,w
|
460 |
batch_size,_,time_length,_,_ = image.size()
|
|
|
403 |
|
404 |
def encode_videoQformer_visual(self, image, motion=False):
|
405 |
if motion is False:
|
406 |
+
device = "cuda"
|
407 |
|
408 |
# input shape b,c,t,h,w
|
409 |
batch_size,_,time_length,_,_ = image.size()
|
|
|
454 |
|
455 |
else:
|
456 |
# Motion Encoder
|
457 |
+
device = "cuda"
|
458 |
|
459 |
# input shape b,c,t,h,w
|
460 |
batch_size,_,time_length,_,_ = image.size()
|