mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
parent
f0b3ef9e2e
commit
b29c24ff1e
@ -561,6 +561,7 @@ class VideoLlavaForConditionalGeneration(VideoLlavaPreTrainedModel, GenerationMi
|
||||
)
|
||||
|
||||
video_features = None
|
||||
num_frames = 0
|
||||
if pixel_values_videos is not None:
|
||||
video_features, num_frames = self.get_video_features(
|
||||
pixel_values_videos=pixel_values_videos, vision_feature_layer=vision_feature_layer
|
||||
|
@ -621,7 +621,7 @@ class InstructBlipModelIntegrationTest(unittest.TestCase):
|
||||
logits = model(**inputs).logits
|
||||
|
||||
expected_slice = torch.tensor(
|
||||
[[-3.3926, -12.2969, 8.4922], [-5.0195, -11.9531, 8.1406], [-4.0039, -13.3594, 9.2578]],
|
||||
[[-3.3047, -12.0625, 8.4922], [-4.9258, -11.7578, 8.1406], [-3.9297, -13.5000, 9.2500]],
|
||||
device=torch_device,
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user