Generative Semantic Retouching

Last update: 09/30/2026

Getting Started

Structure-Aware Inpainting and Texture-Preserving Enhancement for High-Fidelity Fashion Imagery

This project proposes a modular AI pipeline to automate high-fidelity fashion retouching, bridging the gap between raw photography and professional e-commerce standards.


Progress & Tentative Schedule

Status: ✓ - completed, ⭘ - in progress, ⨯ - scheduled.

  • Classification
    • ✓ Data scraping (click to see detail)
    • ✓ Data exploration
    • ✓ Train base models
    • ✓ Model fine tune and compare
    • ✓ Organize code following the Python library standard
    • ✓ Connect to next steps - segmentation and measurement instruction
  • Segmentation
    • ✓ Find and apply pre-trained model
    • ✓ Organize code following the Python library standard
    • ✓ Connect to next step - landmark extraction
  • Measurement instruction
    • ✓ Read measurement instruction
    • ✓ Transfer instruction to machine readable format
    • ✓ Connect to next step - landmark extraction
  • Landmark extraction
    • ✓ Find and apply pre-trained model
    • ✓ Model fine tune and adjustment
    • ✓ Organize code following the Python library standard
  • Web interface demo
    • ✓ Application - tailor (the whole pipeline)
    • ✓ Garment measurement instruction generation
    • ✓ Garment image classification
    • ✓ Garment image segmentation
    • ✓ Garment landmark detection
    • ✓ Garment landmark adjustment
  • Documentation
    • ✓ MagicBox
    • ✓ Python API

Content

A formatting reference for section authors: the typography, code blocks, tables, icons, images and video markup available inside any <section>.


Typography

Documentation and examples for typography, headings, body text, lists, and more.

Headings

HeadingExample
<h1></h1>

h1. Heading

<h2></h2>

h2. Heading

<h3></h3>

h3. Heading

<h4></h4>

h4. Heading

<h5></h5>
h5. Heading
<h6></h6>
h6. Heading

Lead

Make a paragraph stand out by adding .lead

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid.

<p class="lead"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. </p>

Inline Text elements

You can use the mark tag to highlight text.

This line of text is meant to be treated as deleted text.

This line of text is meant to be treated as no longer accurate.

This line of text is meant to be treated as an addition to the document.

This line of text will render as underlined

This line of text is meant to be treated as fine print.

This line rendered as bold text.

This line rendered as italicized text.

<p>You can use the mark tag to <mark>highlight</mark> text.</p> <p><del>This line of text is meant to be treated as deleted text.</del></p> <p><s>This line of text is meant to be treated as no longer accurate.</s></p> <p><ins>This line of text is meant to be treated as an addition to the document.</ins></p> <p><u>This line of text will render as underlined</u></p> <p><small>This line of text is meant to be treated as fine print.</small></p> <p><strong>This line rendered as bold text.</strong></p> <p><em>This line rendered as italicized text.</em></p>

Code

Documentation and examples for displaying inline and multiline blocks of code

Inline code

Wrap inline snippets of code with <code>. Be sure to escape HTML angle brackets.

For example, <section> should be wrapped as inline.

For example, <code>&lt;section&gt;</code> should be wrapped as inline.

Code blocks

Use <pre>s for multiple lines of code. Once again, be sure to escape any angle brackets in the code for proper rendering. You may optionally add the .pre-scrollable class, which will set a max-height of 340px and provide a y-axis scrollbar.

For example:

<p>Sample text here...</p> <p>And another line of sample text here...</p>

Have to use something like:

<pre><code>&lt;p&gt;Sample text here...&lt;/p&gt; &lt;p&gt;And another line of sample text here...&lt;/p&gt; </pre></code>

Syntax highlighter

We use Highlight Js for syntax highlight code snippet.

You can refer more information here: How to use highlight.js


Table

Documentation and examples for opt-in styling of tables.

Docboard is based on Bootstrap 4, so you can easily use Bootstrap's table classes to style your table. Bootstrap Documentation

Bordered

<table class="table table-bordered"> ....... </table>
#FirstLastHandle
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter

Striped

<table class="table table-bordered table-striped"> ....... </table>
#FirstLastHandle
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter

NoteYou can refer more information in Bootstrap Documentation here: Bootstrap Documentation


Icons

Font Awesome icon sets are used in Docboard.

<i class="fas fa-mobile-alt"></i> <i class="fab fa-twitter"></i> <i class="fas fa-credit-card"></i> <i class="fab fa-facebook-f"></i>

NotePlease go to their official documentation pages for a full list of icons: Font Awesome


Image

Documentation and examples for opting images into responsive behavior and add lightweight styles to them—all via classes.

Responsive Images

Images in Bootstrap are made responsive with .img-fluid. max-width: 100%; and height: auto; are applied to the image so that it scales with the parent element.

Responsive image

<img src="/assets/img/logo/logo-banner-black.png" class="img-fluid" alt="Responsive image">

Image lightbox

Show image popup when click on image:

image

<a class="popup-img" href="/assets/img/logo/logo-banner-black.png"> <img src="/assets/img/logo/logo-banner-black.png" class="img-fluid img-thumbnail" alt="image"> </a>

Image Lightbox with Link

Show image popup when click on link: Click Here for Popup Image

<a class="popup-img" href="/assets/img/logo/logo-banner-black.png">Click Here for Popup Image</a>

Image lightbox with Button

Show image popup when click on button: Click Here for Popup Image

<a class="btn btn-primary popup-img" href="/assets/img/logo/logo-banner-black.png">Click Here for Popup Image</a>

Video

Create responsive video embeds based on the width of the parent by creating an intrinsic ratio that scales on any device.

Embedded Video

Wrap any embed like an <iframe> in a parent element with .embed-responsive and an aspect ratio. The .embed-responsive-item isn’t strictly required, but we encourage it.

<div class="embed-responsive embed-responsive-16by9"> <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/7e90gBu4pas" allowfullscreen></iframe> </div>

NotePlease go to official bootstrap documentation for a full information of embed video: Bootstrap Documentation

Popup with Video

Show Youtube and Vimeo video popup when click on link:

Open Popup YouTube Video

<a class="popup-youtube" href="http://www.youtube.com/watch?v=7e90gBu4pas">Open Popup YouTube Video </a>

Open Popup Vimeo video

<a class="popup-vimeo" href="https://vimeo.com/45830194">Open Popup Vimeo video</a>

Components

Ready-made building blocks for your sections: accordions, tabs, social icons and helper classes. Docboard is built on Bootstrap 4, so every Bootstrap component works as well – remember to write className instead of class in JSX: Bootstrap Documentation


Accordion

You can extend the default collapse behavior to create an accordion. To properly achieve the accordion style, be sure to use .accordion as a wrapper.

See the code below for more information.

<div class="accordion" id="accordionDefault"> <div class="card"> <div class="card-header" id="headingOne"> <h5 class="mb-0"> <a href="#" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">Accordion Title</a> </h5> </div> <div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordionDefault"> <div class="card-body">This is Accordion Content</div> </div> </div> <div class="card"> <div class="card-header" id="headingTwo"> <h5 class="mb-0"> <a href="#" class="collapsed" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">Accordion Title</a> </h5> </div> <div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionDefault"> <div class="card-body">This is Accordion Content</div> </div> </div> <div class="card"> <div class="card-header" id="headingThree"> <h5 class="mb-0"> <a href="#" class="collapsed" data-toggle="collapse" data-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">Accordion Title</a> </h5> </div> <div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#accordionDefault"> <div class="card-body">This is Accordion Content</div> </div> </div> </div>

Options:

Type ClassFeaturesCode Example
.accordion-alternateAlternate Minimal Style for the accordions.
<div class="accordion accordion-alternate" id="accordionDefault"> ....... </div>
.arrow-rightFor set arrow in right side in accordions
<div class="accordion arrow-right" id="accordionDefault"> ....... </div>

Tabs

Default Bootstrap Nav component combined with Docboard for unique tabs.

See the code below for more information.

<ul class="nav nav-tabs" id="myTab" role="tablist"> <li class="nav-item" role="presentation"> <a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">Home</a> </li> <li class="nav-item" role="presentation"> <a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false">Profile</a> </li> <li class="nav-item" role="presentation"> <a class="nav-link" id="contact-tab" data-toggle="tab" href="#contact" role="tab" aria-controls="contact" aria-selected="false">Contact</a> </li> </ul> <div class="tab-content my-3" id="myTabContent"> <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">This is Tab Content Home</div> <div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">This is Tab Content Profile</div> <div class="tab-pane fade" id="contact" role="tabpanel" aria-labelledby="contact-tab">This is Tab Content Contact</div> </div>

Options:

Type ClassFeaturesCode Example
Basic NavsBasic Navs Style for the Tabs
<ul class="nav " id="myTab" role="tablist"> ....... </ul>
.nav-separatorBasic Navs Style with Separator for the Tabs
<ul class="nav " id="myTab" role="tablist"> ....... </ul>
.nav-tabsTabs Navs Style for the Tabs. For example - above Preview Example.
<ul class="nav nav-tabs" id="myTab" role="tablist"> ....... </ul>
.nav-pillsPills Navs Style for the Tabs
<ul class="nav nav-pills" id="myTab" role="tablist"> ....... </ul>

Social Icon

Social links with different styles. See below code for more information.

<div class="d-flex flex-column"> <ul class="social-icons"> <li><a data-toggle="tooltip" href="http://www.facebook.com/" target="_blank" title="" data-original-title="Facebook"><i class="fab fa-facebook-f"></i></a></li> <li><a data-toggle="tooltip" href="http://www.twitter.com/" target="_blank" title="" data-original-title="Twitter"><i class="fab fa-twitter"></i></a></li> <li><a data-toggle="tooltip" href="http://www.google.com/" target="_blank" title="" data-original-title="Google"><i class="fab fa-google"></i></a></li> <li><a data-toggle="tooltip" href="http://www.linkedin.com/" target="_blank" title="" data-original-title="Linkedin"><i class="fab fa-linkedin-in"></i></a></li> <li><a data-toggle="tooltip" href="http://www.youtube.com/" target="_blank" title="" data-original-title="Youtube"><i class="fab fa-youtube"></i></a></li> <li><a data-toggle="tooltip" href="http://www.instagram.com/" target="_blank" title="" data-original-title="Instagram"><i class="fab fa-instagram"></i></a></li> </ul> </div>

Options:

Type ClassFeaturesCode Example
Default (Dark)Default Social Icon with Dark Color
<ul class="social-icons"> ....... </ul>
.social-icons-lightSocial Icon with Light Color
<ul class="social-icons social-icons-light"> ....... </ul>
.social-icons-mutedSocial Icon with Muted Color
<ul class="social-icons social-icons-muted"> ....... </ul>
.social-icons-smSocial Icon with Small Icon Size
<ul class="social-icons social-icons-sm"> ....... </ul>
.social-icons-lgSocial Icon with Large Icon Size
<ul class="social-icons social-icons-lg"> ....... </ul>

Helper Classes

We have created some really useful helper classes for you. Here are a few of them. also, You can refer other default bootstrap helper classes here: Bootstrap Documentation

Text Size:
  • .text-0 - Changes the Font size to 11px.
  • .text-1 - Changes the Font size to 12px.
  • .text-2 - Changes the Font size to 14px.
  • .text-3 - Changes the Font size to 16px.
  • .text-4 - Changes the Font size to 18px.
  • .text-5 - Changes the Font size to 21px.
  • .text-6 - Changes the Font size to 24px.
  • .text-7 - Changes the Font size to 28px.
  • .text-8 - Changes the Font size to 32px.
  • .text-9 - Changes the Font size to 36px.
  • .text-10 - Changes the Font size to 40px.
  • .text-11 - Changes the Font size to 44px.
  • .text-12 - Changes the Font size to 48px.
  • .text-13 - Changes the Font size to 52px.
  • .text-14 - Changes the Font size to 56px.
  • .text-15 - Changes the Font size to 60px.
  • .text-16 - Changes the Font size to 64px.
  • .text-17 - Changes the Font size to 72px.
  • .text-18 - Changes the Font size to 80px.
  • .text-19 - Changes the Font size to 84px.
  • .text-20 - Changes the Font size to 92px.
Font Weight:
  • .font-weight-100 - For font weight of 100.
  • .font-weight-200 - For font weight of 200.
  • .font-weight-300 - For font weight of 300.
  • .font-weight-400 - For font weight of 400.
  • .font-weight-500 - For font weight of 500.
  • .font-weight-600 - For font weight of 600.
  • .font-weight-700 - For font weight of 700.
  • .font-weight-800 - For font weight of 800.
  • .font-weight-900 - For font weight of 900.
Background Color:
  • .bg-transparent - For background color of transparent
  • .bg-light - For background color of light gray
  • .bg-light-1 - For background color of more light gray
  • .bg-light-2 - For background color of more light gray
  • .bg-light-3 - For background color of more light gray
  • .bg-light-4 - For background color of more light gray
  • .bg-dark - For background color of dark
  • .bg-dark-1 - For background color of dark gray
  • .bg-dark-2 - For background color of more dark gray
  • .bg-dark-3 - For background color of more dark gray
  • .bg-dark-4 - For background color of more dark gray
Box Shadow
  • .shadow-none - For No shadow to elements with box-shadow utilities.
  • .shadow-sm - For Small shadow to elements with box-shadow utilities.
  • .shadow - For Regular shadow to elements with box-shadow utilities.
  • .shadow-md - For medium light shadows to elements with box-shadow utilities.
  • .shadow-lg - For Larger shadows to elements with box-shadow utilities.
Opacity
  • .opacity-1 - For 10% opacity.
  • .opacity-2 - For 20% opacity.
  • .opacity-3 - For 30% opacity.
  • .opacity-4 - For 40% opacity.
  • .opacity-5 - For 50% opacity.
  • .opacity-6 - For 60% opacity.
  • .opacity-7 - For 70% opacity.
  • .opacity-8 - For 80% opacity.
  • .opacity-9 - For 90% opacity.
Border Radius
  • .rounded-top-0 - No Border Radius for top.
  • .rounded-bottom-0 - No Border Radius for bottom.
  • .rounded-left-0 - No Border Radius for left.
  • .rounded-right-0 - No Border Radius for right.
Borders, Sizing, Spacing (margin & padding) and also much more....
You can refer for use other default bootstrap helper classes here - https://getbootstrap.com/docs/4.4/utilities/

FAQ

Short answers to the questions that come up most often when setting up or writing a docboard.

Barely. A section file is HTML-like markup wrapped in a function. The only React-isms you need are className instead of class and {" "} when you want an explicit space between elements.
Not out of the box. The navigation generator parses .tsx files for the section id and heading. If you prefer Markdown, add an MDX loader and keep the same <section id> wrapper so the generator still finds it.
Nine times out of ten the manifest was not regenerated. Restart npm run dev or run npm run generate:docs. If that fails, check that the file has a <section id="…">, a default export, and lives directly in a group folder rather than a nested sub-folder.
Remove '/' from the public matcher in proxy.ts. Anonymous visitors are then redirected to the sign-in page – see Access Control.
Yes, in the Clerk dashboard. Use Restrictions to allowlist an email domain, or disable public sign-up entirely and invite members.
Overwrite public/assets/img/logo/logo_black.svg and public/assets/img/logo/logo_white.svg, keeping the file names. The header picks the file that matches the active theme – see Branding.
Yes. A section is a React component, so a server component can await fetch(…) and render the result. See Dashboard Recipes.
It follows the operating system preference on first visit, and the toggle in the header stores an explicit choice in localStorage afterwards.

Credits

GitData Docboard stands on the following open-source and third-party work.

ProjectUsed for
Next.js & ReactApplication framework and rendering.
ClerkAuthentication, user management and access control.
Bootstrap 4Grid, components and the scrollspy navigation.
Tailwind CSSUtility classes for custom layout tweaks.
Font AwesomeIcons throughout the interface.
highlight.jsSyntax highlighting in code blocks.
Magnific PopupImage and video lightboxes.
Noto SansLatin, Simplified and Traditional Chinese typefaces.
iDocsThe original one-page documentation template this theme is based on.