You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: invokeai/app/invocations/flux_text_to_image.py
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ class FluxTextToImageInvocation(BaseInvocation, WithMetadata, WithBoard):
33
33
"""Text-to-image generation using a FLUX model."""
34
34
35
35
transformer: TransformerField=InputField(
36
-
description=FieldDescriptions.unet,
36
+
description=FieldDescriptions.flux_model,
37
37
input=Input.Connection,
38
38
title="Transformer",
39
39
)
@@ -46,10 +46,12 @@ class FluxTextToImageInvocation(BaseInvocation, WithMetadata, WithBoard):
46
46
)
47
47
width: int=InputField(default=1024, multiple_of=16, description="Width of the generated image.")
48
48
height: int=InputField(default=1024, multiple_of=16, description="Height of the generated image.")
49
-
num_steps: int=InputField(default=4, description="Number of diffusion steps.")
49
+
num_steps: int=InputField(
50
+
default=4, description="Number of diffusion steps. Recommend values are schnell: 4, dev: 50."
51
+
)
50
52
guidance: float=InputField(
51
53
default=4.0,
52
-
description="The guidance strength. Higher values adhere more strictly to the prompt, and will produce less diverse images.",
54
+
description="The guidance strength. Higher values adhere more strictly to the prompt, and will produce less diverse images. FLUX dev only, ignored for schnell.",
53
55
)
54
56
seed: int=InputField(default=0, description="Randomness seed for reproducibility.")
0 commit comments