Skip to content

Commit

Permalink
feature: adds --control-strength as parameter for cli
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydrennan authored and brycedrennan committed Dec 6, 2023
1 parent 24f4af3 commit ef0f446
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions imaginairy/cli/imagine.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@
),
multiple=True,
)
@click.option(
"--control-strength",
help=(
"Strength of the control signal."
),
multiple=True,
)
@click.option(
"--control-mode",
default=None,
Expand Down Expand Up @@ -106,6 +113,7 @@ def imagine_cmd(
caption_text,
control_image,
control_image_raw,
control_strength,
control_mode,
videogen,
):
Expand Down Expand Up @@ -146,6 +154,7 @@ def imagine_cmd(
ControlNetInput(
image=control_image,
image_raw=control_image_raw,
strength=float(control_strength[i]),
mode=cm,
)
)
Expand Down

0 comments on commit ef0f446

Please sign in to comment.