Jiaqi-hkust commited on
Commit
8643bd2
·
verified ·
1 Parent(s): 77666d7

Update hawk/models/video_llama.py

Browse files
Files changed (1) hide show
  1. hawk/models/video_llama.py +2 -2
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:0"
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:0"
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()