Skip to content

Commit

Permalink
fix basemodel bug2
Browse files Browse the repository at this point in the history
  • Loading branch information
aiXander committed Jan 5, 2025
1 parent 3b1e6b5 commit 998593c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comfyui.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ def _validate_comfyui_args(self, workflow, tool):
raise Exception(f"Remap parameter {key} is missing original choices: {choices}")

def _inject_args_into_workflow(self, workflow, tool, args):

base_model = "unknown"
# Helper function to validate and normalize URLs
def validate_url(url):
if not isinstance(url, str):
Expand Down Expand Up @@ -719,7 +719,7 @@ def validate_url(url):

# if there's a lora, replace mentions with embedding name
if key == "prompt":
if base_model == "flux-dev":
if "flux" in base_model:
for lora_key in ["lora", "lora2"]:
if args.get(f"use_{lora_key}", False):
lora_strength = args.get(f"{lora_key}_strength", 0.7)
Expand Down

0 comments on commit 998593c

Please sign in to comment.