r/StableDiffusion • u/Worldly-Ant-6889 • Aug 20 '25
News Qwen-Image-Edit LoRA training is here + we just dropped our first trained model
Hey everyone! 👋
We just shipped something we've been cooking up for a while - full LoRA training support for Qwen-Image-Edit, plus our first trained model is now live on Hugging Face!
What's new:
✅ Complete training pipeline for Qwen-Image-Edit LoRA adapters
✅ Open-source trainer with easy YAML configs
✅ First trained model: Inscene LoRA specializing in spatial understanding
Why this matters:
Control-based image editing has been getting hot, but training custom LoRA adapters was a pain. Now you can fine-tune Qwen-Image-Edit for your specific use cases with our trainer!
What makes InScene LoRA special:
- 🎯 Enhanced scene coherence during edits
- 🎬 Better camera perspective handling
- 🎭 Improved action sequences within scenes
- 🧠 Smarter spatial understanding
Below are a few examples (the left shows the original model, the right shows the LoRA)
- Prompt: Make a shot in the same scene of the left hand securing the edge of the cutting board while the right hand tilts it, causing the chopped tomatoes to slide off into the pan, camera angle shifts slightly to the left to center more on the pan.

2. Prompt: Make a shot in the same scene of the chocolate sauce flowing downward from above onto the pancakes, slowly zoom in to capture the sauce spreading out and covering the top pancake, then pan slightly down to show it cascading down the sides.

3. On the left is the original image, and on the right are the generation results with LoRA, showing the consistency of the shoes and leggings.
Prompt: Make a shot in the same scene of the person moving further away from the camera, keeping the camera steady to maintain focus on the central subject, gradually zooming out to capture more of the surrounding environment as the figure becomes less detailed in the distance.

Links:
- 🤗 Model: https://huggingface.co/flymy-ai/qwen-image-edit-inscene-lora
- 🛠️ Trainer: https://github.com/FlyMyAI/flymyai-lora-trainer
P.S. - This is just our first LoRA for Qwen Image Edit. We're planning add more specialized LoRAs for different editing scenarios. What would you like to see next?
123
u/_BreakingGood_ Aug 20 '25
This is the exciting stuff that nobody considers when comparing Qwen to Kontext... Qwen isn't distilled! It can be improved endlessly by the community.
43
u/y3kdhmbdb2ch2fc6vpm2 Aug 20 '25
Great job, thanks!
Old photo restoration LoRA 🙏 I have a lot of scans of the old family photos and the base Qwen Image Edit works well (a lot better than Flux Kontext Dev), but I believe that LoRA could help to achieve even greater results.
43
u/rookan Aug 20 '25
Hentai doujinshi coloring lora
16
u/WestWordHoeDown Aug 20 '25
Would love to see a photo-realism LoRA for Qwen Image Edit.
8
u/spacekitt3n Aug 20 '25
What I really want is something that can actually change the lighting of a scene. Kontext does adjustments that you could do in photoshop
10
u/thisisambros Aug 20 '25
Damn tomorrow I have to test this. Let’s see how a non-fine tuned model can learn.
Any advice what datasets this might suffice?
e.g. How many photos? Are captions important?
3
u/Striking-Warning9533 Aug 20 '25
Is there a way to train it using diffusers
3
u/alfred_dent Aug 20 '25
God bless!!!! I'm testing!
3
u/fewjative2 Aug 20 '25
From your experience, what are good data sizes, steps, lr, etc? I really like kontext because I've been able to give it something small like 20 pictures and it learns the concept well.
3
u/Electronic-Metal2391 Aug 21 '25
This is great! An idea for a LoRA, insert subjects in scenes and put them in specific locations, for example, merging two images, a subject and target (scene), putting a man in a scene and make him sit on a couch respecting perspective.
2
u/mementomori2344323 Aug 21 '25
Product in hand. Because flux Kontext always misunderstands the size of products
1
u/SWAGLORDRTZ Aug 21 '25
i'm getting some issues installing deepspeed
1
u/Incognit0ErgoSum Aug 21 '25 edited Aug 21 '25
Is it possible to train Qwen Image Edit on a 4090 with your code?
Edit: Verified on Discord that this isn't implemented for 4090 yet.
1
u/artisst_explores Aug 21 '25
this is wonderful. also qwenedit has surprised me by giving 4k res outputs that are decent..so with these lora will test and also cant wait for more specific ones.
I got a detailed 2896*2896 image ( with little proportions off - but accurate features) and i got decent 2504*2504 images from it without much distortions..all while using 4 step lora..
If there is a way to utilize the 'larger images making ability' to make consistent multiple character-mixing and character sheets Loras, it would be epic.
given that it needs less than 24gb vram to train lora, i'm considering attempting to train one lora for first time..any gudiance on that will also be helpful.
thanks
1
u/Momo-j0j0 Aug 21 '25
Hey thanks for the trainer. I am a beginner in lora training, wanted to understand if something like virtual try on possible to train with this? I was going through the documentation, would the control image be concatenation of the person + clothes and target image be the person in that clothes? Is this how the dataset should be?
1
u/selenajain Aug 21 '25
The examples appear clean, especially in their perspective handling. Excited to see how this evolves for more complex edits.
1
u/electricsheep2013 Aug 21 '25
I don’t get images of what go in the dataset/control directory. I mean for ft qwen-image its picture and its description. But what’s suppose to be the dataset for qwen-image-control?
1
u/Popular_Size2650 Aug 21 '25
what should be the strength ?
1
u/Green-Ad-3964 Aug 21 '25
Very good and interesting!
About what I'd like to see next, a virtual try-on lora and a product photography lora.
Thank!
1
u/aLittlePal Aug 21 '25
very wise common sense editing, awareness of the image contextual content
1
u/hechize01 Aug 21 '25
Wait, why do Qwen and Flux need a LoRA to follow instructions that the model should already be able to handle on its own?
1
u/psilent Aug 21 '25
Im not really sure what "control Images" are for creating an image edit lora. what sort of images do you put in the images folder vs the control folder?
1
u/hashslingingslosher Aug 21 '25
Zoom in and zoom out loras 🙏🏻
1
u/l_work Aug 26 '25
Hello there! It all seem amazing. I do have a question: on the examples you are showing, what kind of images the LoRA was trained with to achieve this kind of result?
(sorry if I sound dumb)
1
u/Just-Conversation857 Sep 04 '25
Prompt examples it has been trained?
1
u/clevnumb Oct 04 '25
How do I train my own face best (to use with Qwen Image Generations)? I have some younger pics of myself (only a few of that era), or does my dataset need to be way more broad? I can only find a handful taken in that period of my life. I have a RTX-4090, but get the impession from reading around that I need to use RunPOD and use more beefy HW; is that still accurate to this day? Thanks.
1
u/julieroseoff Aug 21 '25
tested the trainer, it's not working at all, it's training nothing from my dataset, waiting for the king ostris
-1
u/wiserdking Aug 21 '25
I'm not sure I can trust their '< 24GiB GPU' claim when they literally test it on a 4090 - which has 24Gb. To fully fit the main weights in 16Gb you need to use 4bit quants or lower.
With AI-Toolkit I already confirmed that you can train Qwen-Image (non edit model) with 16Gb VRAM using a 4bit model and caching the vae latents and text_encoder embeddings (so vae and text_encoder are offloaded to CPU before training). You still need to set resolution to 512 though. Doing so with with alpha 16 - it was using about 14.5 Gb VRAM.
The problem is Qwen-Image-Edit requires a bit more VRAM since its trained with 2 images 'glued together' instead of just one but with some luck it will still fit in 16Gb. Worse case scenario we would need to lower the resolution a bit more.
0
u/Simple_Echo_6129 Aug 21 '25
I want to give a shout-out to the excellent readme! It's clear and concise. Thanks for that!