Vision-CAIR commited on
Commit
c4f1d3b
1 Parent(s): 14a307e

Update longvu/cambrian_arch.py

Browse files
Files changed (1) hide show
  1. longvu/cambrian_arch.py +0 -6
longvu/cambrian_arch.py CHANGED
@@ -1464,12 +1464,6 @@ class CambrianMetaForCausalLM(ABC):
1464
  image_features[cur_image_idx].shape[-1],
1465
  )
1466
 
1467
- sim = F.cosine_similarity(
1468
- visual_emb_frame[:-1],
1469
- visual_emb_frame[1:],
1470
- dim=-1,
1471
- )
1472
-
1473
  new_visual_emb_frames = []
1474
  for start_idx in range(0, len(visual_emb_frame), 8):
1475
  end_idx = min(start_idx + 8, len(visual_emb_frame))
 
1464
  image_features[cur_image_idx].shape[-1],
1465
  )
1466
 
 
 
 
 
 
 
1467
  new_visual_emb_frames = []
1468
  for start_idx in range(0, len(visual_emb_frame), 8):
1469
  end_idx = min(start_idx + 8, len(visual_emb_frame))