mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Elevate import deprecation warnings from DeprecationWarning to FutureWarning so messages are now seen
This commit is contained in:
parent
a1f379e712
commit
fad4538801
@ -1,4 +1,4 @@
|
||||
from ._factory import *
|
||||
|
||||
import warnings
|
||||
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", DeprecationWarning)
|
||||
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", FutureWarning)
|
||||
|
@ -1,4 +1,4 @@
|
||||
from ._features import *
|
||||
|
||||
import warnings
|
||||
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", DeprecationWarning)
|
||||
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", FutureWarning)
|
||||
|
@ -1,4 +1,4 @@
|
||||
from ._features_fx import *
|
||||
|
||||
import warnings
|
||||
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", DeprecationWarning)
|
||||
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", FutureWarning)
|
||||
|
@ -4,4 +4,4 @@ from ._manipulate import *
|
||||
from ._prune import *
|
||||
|
||||
import warnings
|
||||
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", DeprecationWarning)
|
||||
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", FutureWarning)
|
||||
|
@ -1,4 +1,4 @@
|
||||
from ._hub import *
|
||||
|
||||
import warnings
|
||||
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", DeprecationWarning)
|
||||
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", FutureWarning)
|
||||
|
@ -45,4 +45,4 @@ from timm.layers.trace_utils import _assert, _float_to_int
|
||||
from timm.layers.weight_init import trunc_normal_, trunc_normal_tf_, variance_scaling_, lecun_normal_
|
||||
|
||||
import warnings
|
||||
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.layers", DeprecationWarning)
|
||||
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.layers", FutureWarning)
|
||||
|
@ -1,4 +1,4 @@
|
||||
from ._registry import *
|
||||
|
||||
import warnings
|
||||
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", DeprecationWarning)
|
||||
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", FutureWarning)
|
||||
|
Loading…
x
Reference in New Issue
Block a user