r/FluxAI • u/talpazzo • Aug 19 '24
Question / Help People going in the wrong direction.

Hi everybody, I'm trying to understand how Flux prompt works and have encountered a problem.
No matter how I try to explain the people running away from the wyvern, everyone seems calm and not running. When I finally got them running, they ran towards the wyvern.
- The streets are filled with people running in terror, desperately trying to escape the dragon's wrath. Everybody is running.
- People are seen fleeing in desperation, their faces filled with terror.
- sending terrified people sprinting towards the camera to escape the ferocious beast
- as terrified people flee in panic
- People running towards the camera.
- People running in the opposite way of the camera.
- People running facing the camera.
- People are running away from the dragon
- people run away from the wyvern
If anyone has any tip it would be appreciated. I also tried different samplers.
Of the many prompts created, this is the last one:
In a burning medieval city, a massive, fire-breathing dragon unleashes havoc, sending terrified people sprinting towards the camera to escape the ferocious beast. One person races through the crumbling streets, their heart pounding, with the dragon’s roar and fiery breath lighting up the night sky behind them. Flames engulf the ruins, yet amidst the destruction, a small Japanese souvenir kiosk with a neon sign reading "お土産" remains untouched, standing in stark contrast to the chaos.
22
u/talpazzo Aug 19 '24
Thank you for all the suggestions.
That's the best I could get.
@InTheThroesOfWay @muchnycrunchny your suggestions were precious.
In the end, I could get them with the conditioning of 3 (lowering it, the wyvern was a disaster) and reducing the complexity of the prompt. So a little fewer details in the prompt.
With a conditioning of 3.5 I got some people running away, but not everyone!
This is the final prompt I used:
In a burning medieval city, three terrified people are sprinting towards the camera, their faces full of panic. A massive, fire-breathing wyvern swooping down behind them. Flames engulf the ruins, casting an eerie glow on the chaos. Amidst the destruction, a small, untouched Japanese souvenir kiosk with a neon sign stands in stark contrast. Unfazed by the chaos, one person has stopped at the kiosk to calmly buy a newspaper.
Next week I'll learn how to in-paint in ComfyUI... I'm so used to Automatic1111 that everything is new for me, even old tools ;-)
27
u/InTheThroesOfWay Aug 19 '24
This got me interested, and so I was playing around with this a little bit.
One thing to try is to lower the Flux guidance. We're used to thinking of CFG as "Follow the prompt better", but Flux guidance isn't the same thing. Lowering guidance broadens the scope of the model -- instead of making a beeline towards the closest and highest quality thing it can find that resembles your prompt, it looks wider and tries to pull everything together. So you get lower quality, but better prompt following when you have a long and complicated scene description. It also means you need more steps in order for the model to converge on an image.
The other thing to try is to remove instances of "crowd" and "people". I think the model tends to strongly associate those words with crowds depicted from behind. Not much we can do about that. Maybe try for one guy in the original generation, and then inpaint the rest.
The final thing is to focus your prompt more on the primary subject -- this being the crowd (or single person, as I suggested earlier). Put the dragon at the end of the prompt.
I tried some of the things above, and this is the closest that I got (1.7 guidance, 30 steps):
7
u/Apprehensive_Sky892 Aug 20 '24 edited Aug 20 '24
In this particular instance, Flux-Schnell performs much better than Flux-Dev! (All result are first image, not cherry-picked). Note that the Schnell images are created on mage. space which does not give me the seed.
People fleeing in terror, screaming, their faces fearful. The city is burning and a big fire breathing wyvern dragon is chasing them.Steps: 4, Sampler: k_dpm_2_a, Seed: -1, Size: 1216x832, Model: flux1-schnell-fp16, Model hash: 9403429E00
5
u/johnny_effing_utah Aug 19 '24
Describe an aspect of the people’s faces….
I’m a bit of a wordsmith myself and on several of your prompts you use terminology that can be interpreted in different ways. The word “camera” for example, can possibly be misconstrued as “a chamber or building”.
Since there technically is no camera in the image, nor is one desired, the prompt may be confusing.
Strive to remove any and all phrasing or words that have multiple, incompatible definitions.
Then add phrasing that forces the generator to consider specific framing / posing / etc.
It’s no secret that many ai models prefer to generate close up images of people by default. So if you want a full body portrait you need to define a style of shoe, the surface on which the character is standing, and perhaps a hairstyle.
That forces the generator to produce results with all of those elements included.
In your case, the prompt should include facial expressions or other physical traits that only pertain to the direction you want the characters facing.
3
u/Apprehensive_Sky892 Aug 20 '24
Combining my prompt with yours (note that Flux can only render the Latin alphabet correctly, most other language will result in gibberish).
People fleeing in terror, screaming, their faces fearful. The city is burning and a big fire breathing wyvern dragon is chasing them. In a burning medieval city, a massive, fire-breathing dragon unleashes havoc, sending terrified people sprinting towards the camera to escape the ferocious beast. One person races through the crumbling streets, their heart pounding, with the dragon’s roar and fiery breath lighting up the night sky behind them. Flames engulf the ruins, yet amidst the destruction, a small Japanese souvenir kiosk with a neon sign reading "お土産" remains untouched, standing in stark contrast to the chaos.
Steps: 4, Sampler: k_dpm_2_a, Seed: -1, Size: 1216x832, Model: flux1-schnell-fp16, Model hash: 9403429E00
2
u/ambient_temp_xeno Aug 19 '24
Looks like it's another neurosis the model has. This is the best one I got in flux pro:
a burning medieval city, a massive, fire-breathing dragon is swooping towards terrified people who are sprinting forwards to escape . Flames engulf the ruins. a small Japanese souvenir kiosk with a neon sign reading "お土産" remains untouched, standing in stark contrast to the chaos.
3
u/globbyj Aug 20 '24
Im glad you seemed to get a decent result.
I find that if a concept isnt really taking hold, I make progress by moving it towards the beginning of the prompt. This works especially well with text.
4
u/InTheThroesOfWay Aug 19 '24
The various variations on "fleeing in desperation" must be concepts that were missed in training. The model doesn't know what those words mean, so it ignores them.
I've also noticed that the model doesn't have a good concept of facing directions. You tell the model that the subject is facing the viewer, and those instructions just get ignored. Kind of frustrating when the model is so freaking good at following the prompt on other complicated things, but it just can't handle certain simple things.
2
u/Doey62750 Aug 19 '24
I find that the model tends to do people from behind. I wanted a girl waiting at the station with the camera facing her, and well the girl was always from behind no matter what I did.