<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rajat kumar</title>
    <description>The latest articles on DEV Community by Rajat kumar (@rajat_kumar_886f5760ae172).</description>
    <link>https://dev.to/rajat_kumar_886f5760ae172</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4266297%2F9692670e-0346-4e2a-bb17-4be3b4302507.png</url>
      <title>DEV Community: Rajat kumar</title>
      <link>https://dev.to/rajat_kumar_886f5760ae172</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rajat_kumar_886f5760ae172"/>
    <language>en</language>
    <item>
      <title>Need help: Character consistency in 1-min+ multi-scene pipeline (Qwen-Image-Edit + Wan 2.2 I2V)</title>
      <dc:creator>Rajat kumar</dc:creator>
      <pubDate>Thu, 26 Nov 2026 08:02:11 +0000</pubDate>
      <link>https://dev.to/rajat_kumar_886f5760ae172/need-help-character-consistency-in-1-min-multi-scene-pipeline-qwen-image-edit-wan-22-i2v-1dj1</link>
      <guid>https://dev.to/rajat_kumar_886f5760ae172/need-help-character-consistency-in-1-min-multi-scene-pipeline-qwen-image-edit-wan-22-i2v-1dj1</guid>
      <description>&lt;p&gt;Hi everyone,&lt;/p&gt;

&lt;p&gt;I’m building an automated multi-scene story-to-video pipeline on a GPU server (ComfyUI + Python) and running into &lt;strong&gt;progressive character identity drift&lt;/strong&gt; on longer videos (~1 minute / 12+ scenes at 5s per clip), especially when 2 characters appear together or when camera angles/poses change.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;first scene looks consistent&lt;/strong&gt;, but as scenes progress, characters start drifting and changing appearance. I’d love feedback from people who have solved long-form consistency with &lt;strong&gt;Wan 2.2&lt;/strong&gt; and &lt;strong&gt;Qwen-Image-Edit&lt;/strong&gt;.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;#### Current Stack &amp;amp; Pipeline&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Location Plates / Fallback Compositions:&lt;/strong&gt; &lt;code&gt;Krea 2&lt;/code&gt; (&lt;code&gt;krea2_turbo_bf16&lt;/code&gt;, 6 steps, CFG 1.0) draws one empty establishing shot per &lt;code&gt;(location, time_of_day)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keyframe Generation:&lt;/strong&gt; &lt;code&gt;Qwen-Image-Edit-2511&lt;/code&gt; (&lt;code&gt;qwen_image_edit_2511_bf16&lt;/code&gt;, 40 steps, CFG 4.0, &lt;code&gt;euler/simple&lt;/code&gt;).

&lt;ul&gt;
&lt;li&gt;Takes up to 3 image inputs (&lt;code&gt;image1&lt;/code&gt; = base frame/plate/previous &lt;code&gt;last_frame&lt;/code&gt;, &lt;code&gt;image2&lt;/code&gt; &amp;amp; &lt;code&gt;image3&lt;/code&gt; = character turnaround sheet + face close-up).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Character LoRAs:&lt;/strong&gt; Trained with &lt;code&gt;ai-toolkit&lt;/code&gt; (&lt;code&gt;arch: qwen_image&lt;/code&gt;, &lt;code&gt;Qwen/Qwen-Image&lt;/code&gt;, rank 16, 2500 steps).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Group shots (2+ people):&lt;/strong&gt; Stacking two face LoRAs blended the faces, so the main keyframe pass runs with LoRAs off (&lt;code&gt;0.0&lt;/code&gt;), then a post-pass uses OpenCV YuNet + SFace to detect/match each face, crops around each head, redraws with &lt;strong&gt;only that character's LoRA&lt;/strong&gt; (&lt;code&gt;strength 0.8&lt;/code&gt;, &lt;code&gt;denoise 0.55&lt;/code&gt;), and blends it back with a soft oval mask.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Video Generation:&lt;/strong&gt; &lt;code&gt;Wan 2.2 I2V 14B (fp8_scaled)&lt;/code&gt; high-noise + low-noise experts with &lt;code&gt;LightX2V 4-step&lt;/code&gt; LoRAs (&lt;code&gt;steps: 4&lt;/code&gt;, &lt;code&gt;cfg: 1.0&lt;/code&gt;, &lt;code&gt;1280x720&lt;/code&gt;, &lt;code&gt;81 frames @ 16fps&lt;/code&gt; = 5s per scene).

&lt;ul&gt;
&lt;li&gt;Takes only &lt;strong&gt;1 input (&lt;code&gt;keyframe.png&lt;/code&gt;)&lt;/strong&gt; + positive &lt;code&gt;motion_prompt&lt;/code&gt; (negative prompt is ignored at CFG 1.0, so constraints are written positively into the prompt).&lt;/li&gt;
&lt;li&gt;Optional motion LoRAs (&lt;code&gt;wan22_14b_i2v&lt;/code&gt; high/low).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scene-to-Scene Chaining:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Consecutive scenes in the same location chain from the previous clip's &lt;code&gt;last_frame.png&lt;/code&gt; (checking the last 0.5s with YuNet to pick a frame where faces are visible).&lt;/li&gt;
&lt;li&gt;Denoise varies by transition: &lt;code&gt;0.30&lt;/code&gt; (crop-zoom), &lt;code&gt;0.35&lt;/code&gt; (hold same pose), &lt;code&gt;0.85&lt;/code&gt; (pose changed), &lt;code&gt;0.80&lt;/code&gt; (fresh location plate), with a forced re-anchor every 4 scenes.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;&lt;strong&gt;#### Where Consistency Still Breaks Down&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Mid-clip drift in Wan 2.2 I2V:&lt;/strong&gt; Wan 2.2 has no character LoRA or reference conditioning—only the single &lt;code&gt;keyframe.png&lt;/code&gt;. During 5s clips with head turns or movement, the face drifts by the end of the clip, and chaining from &lt;code&gt;last_frame.png&lt;/code&gt; compounds that drift into the next scene.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pose changes (&lt;code&gt;denoise 0.85&lt;/code&gt;):&lt;/strong&gt; When &lt;code&gt;pose_changed&lt;/code&gt; is true, Qwen-Image-Edit at &lt;code&gt;0.85&lt;/code&gt; denoise alters facial structure/lighting, especially in 2-character shots or wider framing where faces are smaller.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LoRA generalization:&lt;/strong&gt; My character LoRAs were trained on ~20 images with &lt;code&gt;ai-toolkit&lt;/code&gt; on &lt;code&gt;Qwen/Qwen-Image&lt;/code&gt; and applied to &lt;code&gt;Qwen-Image-Edit-2511&lt;/code&gt;. Some angles/expressions still drift away from the reference.&lt;/li&gt;
&lt;/ol&gt;




&lt;h4&gt;
  
  
  Questions for the Community
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Wan 2.2 Identity Preservation:&lt;/strong&gt; Are there better ways to lock character identity during Wan 2.2 video generation (e.g., &lt;strong&gt;Wan VACE / Phantom / R2V / first+last frame conditioning / Wan character LoRAs / post-video face swap or restoration&lt;/strong&gt;), or is &lt;code&gt;LightX2V 4-step&lt;/code&gt; at &lt;code&gt;CFG 1.0&lt;/code&gt; hurting consistency compared to full-step CFG &amp;gt; 1.0?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Qwen-Image-Edit Multi-Character Control:&lt;/strong&gt; Is there a cleaner way to handle 2+ characters in Qwen-Image-Edit without face blending or crop-and-paste seams (e.g., regional conditioning/attention masking)?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI Toolkit Training:&lt;/strong&gt; For &lt;code&gt;Qwen-Image-Edit-2511&lt;/code&gt;, what dataset size, resolution, step count, or &lt;code&gt;qwen_image&lt;/code&gt; vs &lt;code&gt;qwen_image_edit&lt;/code&gt; training config gives the best cross-angle consistency without overfitting?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Long-Video Architecture (60s+):&lt;/strong&gt; For 12+ scene stories, is it better to chain &lt;code&gt;last_frame.png&lt;/code&gt; across clips, or cut/re-anchor every shot from a location plate + reference sheet?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Any tips, workflows, or node recommendations would be hugely appreciated!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>automation</category>
      <category>machinelearning</category>
      <category>python</category>
    </item>
  </channel>
</rss>
