Skip to content

Commit 61d8fdd

Browse files
Make linters happy (#2273)
1 parent a6a3374 commit 61d8fdd

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

inference/models/owlv2/owlv2.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ def __new__(cls, huggingface_id: str):
123123

124124
if OWLV2_COMPILE_MODEL:
125125
torch._dynamo.config.suppress_errors = True
126-
model = monkey_patch_vision_encoder_before_compilation(
127-
model
128-
)
126+
model = monkey_patch_vision_encoder_before_compilation(model)
129127
model.owlv2.vision_model = torch.compile(model.owlv2.vision_model)
130128
instance.model = model
131129
cls._instances[huggingface_id] = instance

0 commit comments

Comments
 (0)