Skip to content

Commit

Permalink
[run-slow] Fixing minimum
Browse files Browse the repository at this point in the history
  • Loading branch information
qubvel committed Dec 23, 2024
1 parent 238dd11 commit 63ba1c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def test_classification_head(self):

self.assertEqual(cls_probs.shape[1], 10)

@requires_torch_greater_or_equal("2.0.0")
@requires_torch_greater_or_equal("2.0.1")
def test_save_load_with_hub_mixin(self):
# instantiate model
model = smp.create_model(
Expand Down Expand Up @@ -173,7 +173,7 @@ def test_save_load_with_hub_mixin(self):
self.assertIn("my_awesome_metric", readme)

@slow_test
@requires_torch_greater_or_equal("2.0.0")
@requires_torch_greater_or_equal("2.0.1")
def test_preserve_forward_output(self):
from huggingface_hub import hf_hub_download

Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_segformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class TestSegformerModel(base.BaseModelTester):
test_model_type = "segformer"

@slow_test
@requires_torch_greater_or_equal("2.0.0")
@requires_torch_greater_or_equal("2.0.1")
def test_load_pretrained(self):
hub_checkpoint = "smp-hub/segformer-b0-512x512-ade-160k"

Expand Down

0 comments on commit 63ba1c4

Please sign in to comment.