Skip to content

Commit

Permalink
Remove unused imports and variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Dec 8, 2024
1 parent ac2f052 commit 6579632
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6579632

Please sign in to comment.