Skip to content

Commit

Permalink
style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
unography committed Sep 8, 2022
1 parent efdca2e commit bb61e30
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/transformers/models/owlvit/modeling_owlvit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ def get_image_features(
last_hidden_state = vision_outputs[0]
image_features = self.vision_model.post_layernorm(last_hidden_state)
# Unmodified CLIP embeddings
else:
else:
pooled_output = vision_outputs[1]
image_features = self.visual_projection(pooled_output)

Expand Down
1 change: 0 additions & 1 deletion tests/models/owlvit/test_modeling_owlvit.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,6 @@ def recursive_check(tuple_object, dict_object):
dict_inputs = self._prepare_for_class(inputs_dict, model_class)
check_equivalence(model, tuple_inputs, dict_inputs)


@slow
def test_model_from_pretrained(self):
for model_name in OWLVIT_PRETRAINED_MODEL_ARCHIVE_LIST[:1]:
Expand Down

0 comments on commit bb61e30

Please sign in to comment.