<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Identity Consistency | Yufei Liu's Homepages</title><link>https://liu-yufei.github.io/tags/identity-consistency/</link><atom:link href="https://liu-yufei.github.io/tags/identity-consistency/index.xml" rel="self" type="application/rss+xml"/><description>Identity Consistency</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Thu, 01 Oct 2026 00:00:00 +0000</lastBuildDate><image><url>https://liu-yufei.github.io/media/icon_hu17033853472409137288.png</url><title>Identity Consistency</title><link>https://liu-yufei.github.io/tags/identity-consistency/</link></image><item><title>FLUX.2-based Image Identity Consistency Enhancement</title><link>https://liu-yufei.github.io/project/flux2-identity-consistency/</link><pubDate>Thu, 01 Oct 2026 00:00:00 +0000</pubDate><guid>https://liu-yufei.github.io/project/flux2-identity-consistency/</guid><description>&lt;p>Developed during an algorithm internship with the face team at Meitu MT-Lab, this project addresses identity drift in AIGC portrait editing. The module takes an edited portrait and a user reference image as inputs, then refines identity while retaining the intended edit.&lt;/p>
&lt;p>I built the data pipeline for face detection, identity clustering, mask generation, canonical alignment, reference matching, and quality filtering. I also designed joint perceptual, identity, and contour objectives for multi-step FLUX.2 LoRA training and developed evaluation tools for identity similarity, facial contour change, and denoising trajectories.&lt;/p>
&lt;p>The resulting model improved reference identity similarity across internal test sets and was deployed in the telephoto portrait feature of AI Camera.&lt;/p>
&lt;style>
.flux-results { margin: 3rem auto 1rem; max-width: 1120px; }
.flux-results h2 { margin: 0 0 1.5rem; font-size: 1.75rem; }
.flux-case { padding: 1.75rem 0; border-bottom: 1px solid rgba(128, 128, 128, 0.28); }
.flux-case:last-child { border-bottom: 0; }
.flux-case-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.flux-case-title { margin: 0; font-size: 1.15rem; font-weight: 700; }
.flux-gain { color: #13866f; font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.flux-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.flux-image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; border-radius: 0.65rem; }
.flux-image-label { display: block; margin-top: 0.45rem; text-align: center; font-size: 0.92rem; font-weight: 650; }
.flux-sim { margin-top: 0.9rem; text-align: right; font-variant-numeric: tabular-nums; opacity: 0.78; }
.flux-summary { margin-top: 4rem; }
.flux-chart { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; align-items: end; margin-top: 2rem; }
.flux-chart-group { text-align: center; }
.flux-bars { height: 230px; display: flex; align-items: end; justify-content: center; gap: 0.8rem; border-bottom: 1px solid rgba(128, 128, 128, 0.4); }
.flux-bar { position: relative; width: min(36%, 72px); min-height: 2rem; border-radius: 0.45rem 0.45rem 0 0; }
.flux-bar.before { background: #8f278c; }
.flux-bar.after { background: #bc84b7; }
.flux-bar-value { position: absolute; top: -1.75rem; left: 50%; transform: translateX(-50%); font-weight: 700; font-variant-numeric: tabular-nums; }
.flux-group-name { margin: 0.8rem 0 0.25rem; font-weight: 700; }
.flux-group-gain { color: #13866f; font-size: 1.35rem; font-weight: 750; }
.flux-group-meta { margin-top: 0.35rem; font-size: 0.85rem; line-height: 1.55; opacity: 0.72; }
.flux-legend { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; font-size: 0.9rem; }
.flux-legend span::before { content: ""; display: inline-block; width: 0.8rem; height: 0.8rem; margin-right: 0.4rem; border-radius: 0.18rem; vertical-align: -0.05rem; }
.flux-legend .before::before { background: #8f278c; }
.flux-legend .after::before { background: #bc84b7; }
.flux-conclusion { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(128, 128, 128, 0.28); line-height: 1.8; }
@media (max-width: 700px) {
.flux-case-head { display: block; }
.flux-gain { display: block; margin-top: 0.35rem; }
.flux-images { gap: 0.5rem; }
.flux-image-label { font-size: 0.78rem; }
.flux-chart { grid-template-columns: 1fr; gap: 3rem; }
.flux-bars { height: 180px; gap: 0.35rem; }
.flux-bar { width: 38%; }
.flux-bar-value { font-size: 0.78rem; }
.flux-group-meta { font-size: 0.85rem; }
}
&lt;/style>
&lt;section class="flux-results" aria-labelledby="flux-qualitative-title">
&lt;h2 id="flux-qualitative-title">Qualitative Results&lt;/h2>
&lt;article class="flux-case">
&lt;div class="flux-case-head">
&lt;h3 class="flux-case-title">Frontal Face Reshaping × JJ Lin&lt;/h3>
&lt;span class="flux-gain">Identity Similarity &amp;#43;0.186&lt;/span>
&lt;/div>
&lt;div class="flux-images">
&lt;figure class="flux-image">&lt;img src="https://liu-yufei.github.io/project/flux2-identity-consistency/case1-input_hu16733012294050469293.webp" alt="Input image for Frontal Face Reshaping × JJ Lin">&lt;figcaption class="flux-image-label">Input&lt;/figcaption>&lt;/figure>
&lt;figure class="flux-image">&lt;img src="https://liu-yufei.github.io/project/flux2-identity-consistency/case1-reference_hu4679323974125261232.webp" alt="Reference image for Frontal Face Reshaping × JJ Lin">&lt;figcaption class="flux-image-label">Reference&lt;/figcaption>&lt;/figure>
&lt;figure class="flux-image">&lt;img src="https://liu-yufei.github.io/project/flux2-identity-consistency/case1-output_hu3685900372443741842.webp" alt="Refined output for Frontal Face Reshaping × JJ Lin">&lt;figcaption class="flux-image-label">Output&lt;/figcaption>&lt;/figure>
&lt;/div>
&lt;div class="flux-sim">Input–Reference 0.410　→　Output–Reference 0.596&lt;/div>
&lt;/article>
&lt;article class="flux-case">
&lt;div class="flux-case-head">
&lt;h3 class="flux-case-title">Half-Profile Face Reshaping × Jackson Yee&lt;/h3>
&lt;span class="flux-gain">Identity Similarity &amp;#43;0.298&lt;/span>
&lt;/div>
&lt;div class="flux-images">
&lt;figure class="flux-image">&lt;img src="https://liu-yufei.github.io/project/flux2-identity-consistency/case2-input_hu12950896630273560113.webp" alt="Input image for Half-Profile Face Reshaping × Jackson Yee">&lt;figcaption class="flux-image-label">Input&lt;/figcaption>&lt;/figure>
&lt;figure class="flux-image">&lt;img src="https://liu-yufei.github.io/project/flux2-identity-consistency/case2-reference_hu10496544986031870863.webp" alt="Reference image for Half-Profile Face Reshaping × Jackson Yee">&lt;figcaption class="flux-image-label">Reference&lt;/figcaption>&lt;/figure>
&lt;figure class="flux-image">&lt;img src="https://liu-yufei.github.io/project/flux2-identity-consistency/case2-output_hu11499135139916125719.webp" alt="Refined output for Half-Profile Face Reshaping × Jackson Yee">&lt;figcaption class="flux-image-label">Output&lt;/figcaption>&lt;/figure>
&lt;/div>
&lt;div class="flux-sim">Input–Reference 0.561　→　Output–Reference 0.859&lt;/div>
&lt;/article>
&lt;article class="flux-case">
&lt;div class="flux-case-head">
&lt;h3 class="flux-case-title">Strong Stage Lighting × G-Dragon&lt;/h3>
&lt;span class="flux-gain">Identity Similarity &amp;#43;0.389&lt;/span>
&lt;/div>
&lt;div class="flux-images">
&lt;figure class="flux-image">&lt;img src="https://liu-yufei.github.io/project/flux2-identity-consistency/case3-input_hu14981943814846579746.webp" alt="Input image for Strong Stage Lighting × G-Dragon">&lt;figcaption class="flux-image-label">Input&lt;/figcaption>&lt;/figure>
&lt;figure class="flux-image">&lt;img src="https://liu-yufei.github.io/project/flux2-identity-consistency/case3-reference_hu9276370965852099679.webp" alt="Reference image for Strong Stage Lighting × G-Dragon">&lt;figcaption class="flux-image-label">Reference&lt;/figcaption>&lt;/figure>
&lt;figure class="flux-image">&lt;img src="https://liu-yufei.github.io/project/flux2-identity-consistency/case3-output_hu10029804751481071616.webp" alt="Refined output for Strong Stage Lighting × G-Dragon">&lt;figcaption class="flux-image-label">Output&lt;/figcaption>&lt;/figure>
&lt;/div>
&lt;div class="flux-sim">Input–Reference 0.286　→　Output–Reference 0.675&lt;/div>
&lt;/article>
&lt;/section>
&lt;section class="flux-results flux-summary" aria-labelledby="flux-quantitative-title">
&lt;h2 id="flux-quantitative-title">Overall Evaluation&lt;/h2>
&lt;div class="flux-chart" role="img" aria-label="Average identity similarity before and after refinement on three test sets">
&lt;div class="flux-chart-group">
&lt;div class="flux-bars">&lt;div class="flux-bar before" style="height:50.75%">&lt;span class="flux-bar-value">0.406&lt;/span>&lt;/div>&lt;div class="flux-bar after" style="height:85%">&lt;span class="flux-bar-value">0.680&lt;/span>&lt;/div>&lt;/div>
&lt;div class="flux-group-name">Celeb-new&lt;/div>&lt;div class="flux-group-gain">+0.274&lt;/div>
&lt;div class="flux-group-meta">115 cases, 100.0% improved&lt;br>Median pose gap 1.8°, non-face MAE 0.060&lt;/div>
&lt;/div>
&lt;div class="flux-chart-group">
&lt;div class="flux-bars">&lt;div class="flux-bar before" style="height:34%">&lt;span class="flux-bar-value">0.272&lt;/span>&lt;/div>&lt;div class="flux-bar after" style="height:75%">&lt;span class="flux-bar-value">0.600&lt;/span>&lt;/div>&lt;/div>
&lt;div class="flux-group-name">Celeb-old&lt;/div>&lt;div class="flux-group-gain">+0.328&lt;/div>
&lt;div class="flux-group-meta">28 cases, 96.4% improved&lt;br>Median pose gap 1.4°, non-face MAE 0.043&lt;/div>
&lt;/div>
&lt;div class="flux-chart-group">
&lt;div class="flux-bars">&lt;div class="flux-bar before" style="height:42.25%">&lt;span class="flux-bar-value">0.338&lt;/span>&lt;/div>&lt;div class="flux-bar after" style="height:90.13%">&lt;span class="flux-bar-value">0.721&lt;/span>&lt;/div>&lt;/div>
&lt;div class="flux-group-name">Colleague&lt;/div>&lt;div class="flux-group-gain">+0.383&lt;/div>
&lt;div class="flux-group-meta">440 cases, 99.8% improved&lt;br>Median pose gap 3.1°, non-face MAE 0.227&lt;/div>
&lt;/div>
&lt;/div>
&lt;div class="flux-legend">&lt;span class="before">Input → Reference&lt;/span>&lt;span class="after">Output → Reference&lt;/span>&lt;/div>
&lt;p class="flux-conclusion">Identity similarity improves consistently across all three test sets, while pose changes and non-face-region differences remain limited.&lt;/p>
&lt;/section></description></item></channel></rss>