[efficientloftr] fix model_id in tests (#39621)
fix: wrong EfficientLoFTR model id in tests
This commit is contained in:
@@ -273,7 +273,7 @@ class EfficientLoFTRModelTest(ModelTesterMixin, unittest.TestCase):
|
|||||||
|
|
||||||
@slow
|
@slow
|
||||||
def test_model_from_pretrained(self):
|
def test_model_from_pretrained(self):
|
||||||
from_pretrained_ids = ["stevenbucaille/efficientloftr"]
|
from_pretrained_ids = ["zju-community/efficientloftr"]
|
||||||
for model_name in from_pretrained_ids:
|
for model_name in from_pretrained_ids:
|
||||||
model = EfficientLoFTRForKeypointMatching.from_pretrained(model_name)
|
model = EfficientLoFTRForKeypointMatching.from_pretrained(model_name)
|
||||||
self.assertIsNotNone(model)
|
self.assertIsNotNone(model)
|
||||||
@@ -414,12 +414,12 @@ def prepare_imgs():
|
|||||||
class EfficientLoFTRModelIntegrationTest(unittest.TestCase):
|
class EfficientLoFTRModelIntegrationTest(unittest.TestCase):
|
||||||
@cached_property
|
@cached_property
|
||||||
def default_image_processor(self):
|
def default_image_processor(self):
|
||||||
return AutoImageProcessor.from_pretrained("stevenbucaille/efficientloftr") if is_vision_available() else None
|
return AutoImageProcessor.from_pretrained("zju-community/efficientloftr") if is_vision_available() else None
|
||||||
|
|
||||||
@slow
|
@slow
|
||||||
def test_inference(self):
|
def test_inference(self):
|
||||||
model = EfficientLoFTRForKeypointMatching.from_pretrained(
|
model = EfficientLoFTRForKeypointMatching.from_pretrained(
|
||||||
"stevenbucaille/efficientloftr", attn_implementation="eager"
|
"zju-community/efficientloftr", attn_implementation="eager"
|
||||||
).to(torch_device)
|
).to(torch_device)
|
||||||
preprocessor = self.default_image_processor
|
preprocessor = self.default_image_processor
|
||||||
images = prepare_imgs()
|
images = prepare_imgs()
|
||||||
|
|||||||
Reference in New Issue
Block a user