π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
fix test loading before pytorch 1.6 (#1278)
Edgar Ribac91daa84dec0
diff --git a/test/feature/test_loftr.py b/test/feature/test_loftr.pyindex f401c1feb..ca4112ed0 100644--- a/test/feature/test_loftr.py+++ b/test/feature/test_loftr.py@@ -9,10 +9,14 @@ from kornia.testing import assert_closeclass TestLoFTR:+ @pytest.mark.skipif(torch.__version__.startswith('1.6'),+ reason='1.6.0 not supporting the pretrained weights as they are packed.')def test_pretrained_outdoor_smoke(self, device):if device == torch.device('cpu'):loftr = LoFTR('outdoor').to(device)+ @pytest.mark.skipif(torch.__version__.startswith('1.6'),+ reason='1.6.0 not supporting the pretrained weights as they are packed.')def test_pretrained_indoor_smoke(self, device):if device == torch.device('cpu'):loftr = LoFTR('indoor').to(device)