Skip to content

Commit

Permalink
typegen + Suggested changes (fix typo + remove asserts)
Browse files Browse the repository at this point in the history
  • Loading branch information
skunkworxdark authored and psychedelicious committed Feb 4, 2025
1 parent d7f80fc commit dfb9e30
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion invokeai/app/invocations/flux_lora_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ def invoke(self, context: InvocationContext) -> FluxLoRALoaderOutput:
for lora in loras:
if lora is None:
continue
assert type(lora) is LoRAField
if lora.lora.key in added_loras:
continue

Expand Down
2 changes: 0 additions & 2 deletions invokeai/app/invocations/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ def invoke(self, context: InvocationContext) -> LoRALoaderOutput:
for lora in loras:
if lora is None:
continue
assert type(lora) is LoRAField
if lora.lora.key in added_loras:
continue

Expand Down Expand Up @@ -448,7 +447,6 @@ def invoke(self, context: InvocationContext) -> SDXLLoRALoaderOutput:
for lora in loras:
if lora is None:
continue
assert type(lora) is LoRAField
if lora.lora.key in added_loras:
continue

Expand Down

0 comments on commit dfb9e30

Please sign in to comment.