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."})}}