From 23593a6b853a9fb60a805ddfecba6f1e7837753f Mon Sep 17 00:00:00 2001 From: Vijay Date: Sun, 10 Nov 2024 10:13:26 +0530 Subject: [PATCH] Removed unwanted code --- nodes.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nodes.py b/nodes.py index 1a40a849..267ca44a 100644 --- a/nodes.py +++ b/nodes.py @@ -478,10 +478,6 @@ class SaveLatent: class LoadLatent: @classmethod def INPUT_TYPES(s): - input_dir = os.path.join(folder_paths.get_output_directory(), "latents") # Adjusts to "Input/Latent" - if not os.path.exists(input_dir): - os.makedirs(input_dir, exist_ok=True) - files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f)) and f.endswith(".latent")] return {"required": {"latent": (folder_paths.get_filename_list("latents"), {"tooltip": "The name of the latent from output/latents to load."})}}