Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there some max prompts length limit? #28

Open
smoothdvd opened this issue Sep 2, 2024 · 1 comment
Open

Is there some max prompts length limit? #28

smoothdvd opened this issue Sep 2, 2024 · 1 comment

Comments

@smoothdvd
Copy link

smoothdvd commented Sep 2, 2024

I input a long prompt, but some content from the latter part of the prompt was lost.

python main.py --model schnell --prompt "Imagine a vibrant Tokyo street at night, glowing with neon lights from countless signs and billboards. The street is bustling with people, a mix of locals and tourists, some moving briskly while others linger to take in the sights. Tall buildings tower above, their windows reflecting the bright lights below, adding to the city’s luminous atmosphere.

The street is lined with a variety of shops, from trendy boutiques to small, cozy ramen shops emitting warm, inviting light. The iconic red lanterns of an izakaya sway gently in the night breeze, casting a soft, warm glow on the sidewalk.

Above, the sky is dark, but the city's radiance diminishes the stars, making them barely visible. The air is filled with the hum of conversation, the occasional laughter, and the distant sound of traffic. The atmosphere is alive, yet there's a certain calmness that comes with the night, a contrast between the city's energy and the tranquility of the evening.

In the distance, you can see the glowing outline of Tokyo Tower, its lights creating a striking contrast against the dark sky. The wet pavement, possibly from a recent rain, reflects the kaleidoscope of colors from the lights, adding an extra layer of vibrancy to the scene.

Beautiful Chinese girl is walking on the street, face camera." --steps 2 --seed 2 -q 8

image

The girl does not appear in the generated image.

If I replace the part of prompt "Beautiful Chinese girl is walking on the street, face camera." to any words (keep the seed same), the generated image is the same.

@filipstrand
Copy link
Owner

filipstrand commented Sep 4, 2024

@smoothdvd You are correct. There is indeed a max prompt length limit, we should probably give the user a warning that some parts was cut off (I think this is how they do it in the Diffusers implementation also - they simply accept the maximum prompt, and report what sub-string was removed if the original was too long). Will put this up as a task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants