From 5debfd2f09e2ef14e87c5987705e326fbf78567c Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Thu, 2 Nov 2023 14:49:49 -0400 Subject: [PATCH] remove warning --- modules/loader.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/loader.py b/modules/loader.py index 47ebc8a8a..c725d6d24 100644 --- a/modules/loader.py +++ b/modules/loader.py @@ -21,6 +21,7 @@ try: except Exception: pass urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) +warnings.filterwarnings(action="ignore", category=UserWarning, module="torchvision") import torchvision # pylint: disable=W0611,C0411 import pytorch_lightning # pytorch_lightning should be imported after torch, but it re-enables warnings on import so import once to disable them # pylint: disable=W0611,C0411 logging.getLogger("xformers").addFilter(lambda record: 'A matching Triton is not available' not in record.getMessage())