Skip to content

Commit

Permalink
all except yolo end encoder decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Ehrhardt committed Apr 30, 2024
1 parent 602913e commit 2ebf980
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions tests/models/videomae/test_modeling_videomae.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,7 @@ def _prepare_for_class(self, inputs_dict, model_class, return_labels=False):
# important: each video needs to have the same number of masked patches
# hence we define a single mask, which we then repeat for each example in the batch
mask = torch.ones((self.model_tester.num_masks,))
mask = torch.cat(
[mask, torch.zeros(self.model_tester.seq_length - mask.size(0))]
)
mask = torch.cat([mask, torch.zeros(self.model_tester.seq_length - mask.size(0))])
batch_size = inputs_dict["pixel_values"].shape[0]
bool_masked_pos = mask.expand(batch_size, -1).bool()
inputs_dict["bool_masked_pos"] = bool_masked_pos.to(torch_device)
Expand Down
1 change: 1 addition & 0 deletions tests/models/vit_mae/test_modeling_tf_vit_mae.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ class TFViTMAEModelTest(TFModelTesterMixin, PipelineTesterMixin, unittest.TestCa
test_onnx = False
test_resize_embeddings = False
test_head_masking = False
has_attentions = False

def setUp(self):
self.model_tester = TFViTMAEModelTester(self)
Expand Down

0 comments on commit 2ebf980

Please sign in to comment.