From ae03079572e1445f353ec43d0f2bc3a8c393be0c Mon Sep 17 00:00:00 2001 From: Haoming Date: Fri, 1 May 2026 14:26:16 +0800 Subject: [PATCH] ptl --- modules/cmd_args.py | 2 -- modules/initialize.py | 1 - requirements.txt | 1 - 3 files changed, 4 deletions(-) diff --git a/modules/cmd_args.py b/modules/cmd_args.py index 54a62705..c9aa1ccf 100644 --- a/modules/cmd_args.py +++ b/modules/cmd_args.py @@ -49,8 +49,6 @@ parser.add_argument("--autolaunch", action="store_true", help="open the webui UR parser.add_argument("--theme", type=str, help="launches the UI with light or dark theme", default=None) parser.add_argument("--use-textbox-seed", action="store_true", help="use textbox for seeds in UI (no up/down, but possible to input long seeds)", default=False) parser.add_argument("--disable-console-progressbars", action="store_true", help="do not output progressbars to console", default=False) -parser.add_argument("--enable-console-prompts", action="store_true", help="does not do anything", default=False) # Legacy compatibility, use as default value shared.opts.enable_console_prompts -parser.add_argument("--disable-safe-unpickle", action="store_true", help="disable checking pytorch models for malicious code", default=False) parser.add_argument("--api", action="store_true", help="use api=True to launch the API together with the webui (use --nowebui instead for only the API)") parser.add_argument("--api-auth", type=str, help='Set authentication for API like "username:password"; or comma-delimit multiple like "u1:p1,u2:p2,u3:p3"', default=None) parser.add_argument("--api-log", action="store_true", help="use api-log=True to enable logging of all API requests") diff --git a/modules/initialize.py b/modules/initialize.py index a37db005..382b0b48 100644 --- a/modules/initialize.py +++ b/modules/initialize.py @@ -12,7 +12,6 @@ def shush(): logging.getLogger("torch.distributed.nn").setLevel(logging.ERROR) logging.getLogger("transformers.dynamic_module_utils").setLevel(logging.ERROR) logging.getLogger("xformers").addFilter(lambda record: "triton" not in record.getMessage().lower()) - warnings.filterwarnings(action="ignore", category=DeprecationWarning, module="pytorch_lightning") warnings.filterwarnings(action="ignore", category=UserWarning, module="torchvision.transforms.functional_tensor") warnings.filterwarnings(action="ignore", category=UserWarning, module="torchvision") startup_timer.record("filter logging") diff --git a/requirements.txt b/requirements.txt index 4aac8e14..4b4215af 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,7 +15,6 @@ inflection==0.5.1 joblib==1.5.3 kornia==0.6.12 lark==1.2.2 -lightning==2.5.6 numpy==2.3.5 omegaconf==2.2.3 opencv-python==4.10.0.84