From 6579632201315e616255556bfb72724d9e638225 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Sun, 8 Dec 2024 08:06:00 -0500 Subject: [PATCH] Remove unused imports and variables. --- nodes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nodes.py b/nodes.py index 1cb4b5a5af0..b6e2465f615 100644 --- a/nodes.py +++ b/nodes.py @@ -11,7 +11,7 @@ import random import logging -from PIL import Image, ImageOps, ImageSequence, ImageFile +from PIL import Image, ImageOps, ImageSequence from PIL.PngImagePlugin import PngInfo import numpy as np @@ -644,9 +644,7 @@ def load_lora(self, model, clip, lora_name, strength_model, strength_clip): if self.loaded_lora[0] == lora_path: lora = self.loaded_lora[1] else: - temp = self.loaded_lora self.loaded_lora = None - del temp if lora is None: lora = comfy.utils.load_torch_file(lora_path, safe_load=True)