Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Not to globally set warning filter at import time (#1451)

Daichi SUZUO9888fcc14866
diff --git a/kornia/filters/__tmp__.py b/kornia/filters/__tmp__.py
index 6b8b09402..bb801fd87 100644
--- a/kornia/filters/__tmp__.py
+++ b/kornia/filters/__tmp__.py
@@ -2,13 +2,11 @@ import warnings
from functools import wraps
from typing import Callable
-warnings.simplefilter('always', DeprecationWarning)
-
def __deprecation_warning(name: str, replacement: str):
warnings.warn(
f"`{name}` will be renamed to `{replacement}` in the future versions. " f"Please use `{replacement}` instead.",
- category=DeprecationWarning,
+ category=FutureWarning,
)