We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pretrainedmodels
1 parent 441a602 commit d490cdfCopy full SHA for d490cdf
segmentation_models_pytorch/__init__.py
@@ -26,6 +26,7 @@
26
27
# Suppress the specific SyntaxWarning for `pretrainedmodels`
28
warnings.filterwarnings("ignore", message="is with a literal", category=SyntaxWarning)
29
+warnings.filterwarnings("ignore", message=r'"is" with \'str\' literal.*', category=SyntaxWarning) # for python >= 3.12
30
31
32
def create_model(
0 commit comments