π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
fix cuda init (#1953)
Dmytro Mishkindba6aad55fc8
diff --git a/kornia/feature/adalam/adalam.py b/kornia/feature/adalam/adalam.pyindex 9c31ddf0a..3e49e65cd 100644--- a/kornia/feature/adalam/adalam.py+++ b/kornia/feature/adalam/adalam.py@@ -9,7 +9,6 @@ from torch import Tensorfrom kornia.feature.laf import get_laf_center, get_laf_orientation, get_laf_scalefrom kornia.testing import KORNIA_CHECK_LAF, KORNIA_CHECK_SHAPE-from kornia.utils.helpers import get_cuda_device_if_availablefrom .core import _no_match, adalam_corefrom .utils import dist_matrix@@ -28,7 +27,7 @@ def get_adalam_default_config():'refit': True, # Whether to perform refitting at the end of the RANSACs. Generally improves accuracy at the cost of runtime. # noqa: E501'force_seed_mnn': True, # Whether to consider only MNN for the purpose of selecting seeds. Generally improves accuracy at the cost of runtime. # noqa: E501# You can provide a MNN mask in input to skip MNN computation and still get the improvement.- 'device': get_cuda_device_if_available(), # Device to be used for running AdaLAM. Use GPU if available. # noqa: E501+ 'device': torch.device('cpu'), # Device to be used for running AdaLAM. Use GPU if available.}return DEFAULT_CONFIG