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
"Given a user prompt, generate an 'Enhanced prompt' that provides detailed visual descriptions suitable for image generation. Evaluate the level of detail in the user prompt:",
595
+
"- If the prompt is simple, focus on adding specifics about colors, shapes, sizes, textures, and spatial relationships to create vivid and concrete scenes.",
596
+
"- If the prompt is already detailed, refine and enhance the existing details slightly without overcomplicating.",
597
+
"Here are examples of how to transform or refine prompts:",
598
+
"- User Prompt: A cat sleeping -> Enhanced: A small, fluffy white cat curled up in a round shape, sleeping peacefully on a warm sunny windowsill, surrounded by pots of blooming red flowers.",
599
+
"- User Prompt: A busy city street -> Enhanced: A bustling city street scene at dusk, featuring glowing street lamps, a diverse crowd of people in colorful clothing, and a double-decker bus passing by towering glass skyscrapers.",
600
+
"Please generate only the enhanced description for the prompt below and avoid including any additional commentary or evaluations:",
601
+
"User Prompt: ",
602
+
],
576
603
pag_scale: float=3.0,
577
604
pag_adaptive_scale: float=0.0,
578
605
) ->Union[ImagePipelineOutput, Tuple]:
@@ -652,6 +679,9 @@ def __call__(
652
679
will be passed as `callback_kwargs` argument. You will only be able to include variables listed in the
653
680
`._callback_tensor_inputs` attribute of your pipeline class.
654
681
max_sequence_length (`int` defaults to 300): Maximum sequence length to use with the `prompt`.
"Given a user prompt, generate an 'Enhanced prompt' that provides detailed visual descriptions suitable for image generation. Evaluate the level of detail in the user prompt:",
587
587
"- If the prompt is simple, focus on adding specifics about colors, shapes, sizes, textures, and spatial relationships to create vivid and concrete scenes.",
588
588
"- If the prompt is already detailed, refine and enhance the existing details slightly without overcomplicating.",
@@ -670,7 +670,7 @@ def __call__(
670
670
`._callback_tensor_inputs` attribute of your pipeline class.
0 commit comments