Demo for this model on Spaces

#1
by multimodalart - opened

Hi @e-n-v-y 🤗

I'm Apolinario, from the open-source team at Hugging Face. Congrats and thanks for open-sourcing e-n-v-y/Qwen-Image-2.1-Fix-v2.0 on the Hub! We were excited about this work and built with an agent an interactive demo app of it on Hugging Face Spaces, running on a free ZeroGPU infrastructure.

Here's a link to the demo: https://huggingface.co/spaces/hugging-apps/qwen-image-21-fix-lora

We would love to transfer this demo to you or your organization. Would you like this demo to live under your own account or organization? If so just let me know here which username to transfer to, and we'll transfer the Space over to you, we hope it can give your work more visibility, discoverability and allows folks to try it out.

(If you have any questions or just want to chat more about this, you can find me on Twitter, LinkedIn or apolinario @ huggingface.co)

Cheers,

Poli

Hi!

Thanks for doing this! I'm noticing that for some reason the generations are coming out really dark, or really light.

Thanks for flagging this, @e-n-v-y ! You were right, the exposure was off. It's fixed now: https://huggingface.co/spaces/hugging-apps/qwen-image-21-fix-lora

What was wrong: The LoRA itself was loaded correctly (same alpha/rank scaling and gate/up split as ComfyUI, bf16). The problem was in how the demo ran CFG 3.5 with your negative prompt. Diffusers' Qwen-Image-2.1 pipeline does plain true-CFG with no renormalization. Combined with only 20 Euler steps, the guided prediction overshot and whole images drifted very dark or blown-out light. This also happened on the base model without the LoRA.

Fix:

  • The CFG output is now rescaled per token to the conditional prediction's norm, the same recipe the original Qwen-Image pipeline uses.
  • The default is now 40 Euler steps, the same number of model evaluations as your workflow's 2nd-order res_2m sampler at 20 steps.

Your card prompts now come out with exposure close to your comparison images. Let me know if anything still looks off!

Sign up or log in to comment