lllyasviel / Omost

Your image is almost there!
Apache License 2.0
6.69k stars 401 forks source link

Loop and Repeat Output #103

Open Liuqh12 opened 3 days ago

Liuqh12 commented 3 days ago

Q1

My prompt:

The golden sun slowly rises from the blue to black sea level, and the white clouds on the beach also have to be rendered golden. 
Fish jump out of the water, and a few seagulls fly by, faintly seeing a thin mist.

Parameters

all default

Chat output

# Initialize the canvas
canvas = Canvas()

# Set a global description for the canvas
canvas.set_global_description(
    description='The golden sun slowly rises from the blue to black sea level, and the white clouds on the beach also have to be
 rendered golden. Fish jump out of the water, and a few seagulls fly by, faintly seeing a thin mist.',
    detailed_descriptions=[
        'In this captivating scene, the golden sun is rising slowly from the sea level, transitioning from blue to black.',
        'The white clouds on the beach are bathed in golden hues, creating a mesmerizing contrast.',
        'The sea itself is a mix of blue and black, with golden reflections.',
        'Fish are seen jumping out of the water, adding a sense of motion and life to the scene.',
        'A few seagulls can be seen flying by, their silhouettes faintly visible against the golden backdrop.',
        'A thin mist hovers over the water, adding an ethereal quality to the scene.',
    ],
    tags='golden sun, blue sea, black sea, white clouds, golden hues, sea level, fish jumping, seagulls flying, thin mist, captivating scene,
 mesmerizing contrast, motion, life, silhouettes, ethereal quality, bathed in golden hues, golden reflections, blue to black transition, sea 
level, beach, morning, sunrise, nature, marine life, clouds, mist, sunrises, coastal, reflections, ethereal, marine, sky, reflections, sea, mist, 
marine life, morning, sunrise, nature, clouds, reflections, coastal, ethereal, morning, sunrise, nature, marine, sky, reflections, sea, mist, 
marine life, morning, sunrise, nature, clouds, reflections, coastal, ethereal, morning, sunrise, nature, marine, sky, reflections, sea, mist, 
marine life, morning, sunrise, nature, clouds, reflections, coastal, ethereal, morning, sunrise, nature, marine, sky, reflections, sea, mist, 
marine life, morning, sunrise, nature, clouds, reflections, coastal, ethereal, morning, sunrise, nature, marine, sky, reflections, sea, mist,
marine life, morning, sunrise, nature, clouds, reflections, coastal, ethereal, morning, sunrise, nature, marine, sky, reflections, sea, mist, 
marine life, morning, sunrise, nature, clouds, reflections, coastal, ethereal, morning, sunrise, nature, marine, sky, reflections, sea, mist, 
marine life, morning, sunrise, nature, clouds, reflections, coastal, ethereal, morning, sunrise, nature, marine, sky, reflections, sea, mist, 

keep loop until I click 'Stop' button.

Q2

You code: https://github.com/lllyasviel/Omost/blob/731e74922fc6be91171688574d07624f93d3b658/lib_omost/pipeline.py#L196 seems not a greedy algorithm, just group input_ids limited by 75-len(global.desc). Any detail I ignored? If not, how about PriorityQueue?

Thanks !