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:',
586
+
'- If the prompt is simple, focus on adding specifics about colors, shapes, sizes, textures, and spatial relationships to create vivid and concrete scenes.',
587
+
'- If the prompt is already detailed, refine and enhance the existing details slightly without overcomplicating.',
588
+
'Here are examples of how to transform or refine prompts:',
589
+
'- 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.',
590
+
'- 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.',
591
+
'Please generate only the enhanced description for the prompt below and avoid including any additional commentary or evaluations:',
592
+
'User Prompt: '
593
+
],
569
594
) ->Union[SanaPipelineOutput, Tuple]:
570
595
"""
571
596
Function invoked when calling the pipeline for generation.
@@ -644,6 +669,8 @@ def __call__(
644
669
`._callback_tensor_inputs` attribute of your pipeline class.
0 commit comments