Fix FASHN Virtual Try-On Silhouette Clipping and Blurred Chest Logos
Visual symptom: oversized hoodies, coats, or long skirts get chopped at the model’s original shirt/jeans outline, or printed chest graphics turn fuzzy on 864×1296 PDP zoom You run a flat-lay apparel photo through FASHN Virtual Try-On v1.6, and either the new oversized silhouette gets trimmed tightly to the model’s old t-shirt boundary, stray hems of the old clothing poke through, or intricate chest typography looks soft when zoomed on a Shopify product page.
Two separate pipeline defaults cause both defects: rigid garment segmentation masks clip wider silhouettes when segmentation_free is disabled or category is left ambiguous, and native 864×1296 output lacks pixel density for 2× e-commerce hover zoom unless the source garment is high-resolution and finished through a text-safe upscaler.
Copy-Paste Verified Fix
#!/usr/bin/env bash
set -euo pipefail
# Requires: FAL_KEY, curl, jq
MODEL_URL="https://cdn.example.com/model-open-stance-2x3.png"
GARMENT_URL="https://cdn.example.com/steamed-flatlay-white.png"
CATEGORY="tops" # tops | bottoms | one-pieces
# Step 1: Run FASHN v1.6 ($0.075) with segmentation_free + quality PNG
TRYON_URL=$(curl -sS -X POST "https://fal.run/fal-ai/fashn/tryon/v1.6" \
-H "Authorization: Key ${FAL_KEY}" \
-H "Content-Type: application/json" \
-d "{
\"model_image\": \"${MODEL_URL}\",
\"garment_image\": \"${GARMENT_URL}\",
\"category\": \"${CATEGORY}\",
\"garment_photo_type\": \"flat-lay\",
\"mode\": \"quality\",
\"segmentation_free\": true,
\"output_format\": \"png\",
\"seed\": 4201
}" | jq -r '.images[0].url')
echo "FASHN v1.6 864x1296 PNG: ${TRYON_URL}"
# Step 2: Upscale approved look 3x to 2592x3888 (~10MP, $0.08 Topaz <=24MP tier)
FINAL_URL=$(curl -sS -X POST "https://fal.run/fal-ai/topaz/upscale/image" \
-H "Authorization: Key ${FAL_KEY}" \
-H "Content-Type: application/json" \
-d "{
\"image_url\": \"${TRYON_URL}\",
\"model\": \"High Fidelity V2\",
\"upscale_factor\": 3,
\"face_enhancement\": true,
\"face_enhancement_strength\": 0.45,
\"output_format\": \"png\"
}" | jq -r '.image.url')
curl -sS -L "${FINAL_URL}" -o sku-pdp-master-2592x3888.png
echo "Saved zoom-ready PDP master: sku-pdp-master-2592x3888.png" Before vs. After (Broken Pattern vs. Verified Fix)
{
"model_image": "https://cdn.example.com/model-crossed-arms-tshirt.jpg",
"garment_image": "https://cdn.example.com/wrinkled-hoodie-on-wood-floor.jpg",
"category": "auto",
"mode": "performance",
"segmentation_free": false
} {
"model_image": "https://cdn.example.com/model-open-stance-studio-2x3.png",
"garment_image": "https://cdn.example.com/steamed-hoodie-flatlay-white.png",
"category": "tops",
"garment_photo_type": "flat-lay",
"mode": "quality",
"segmentation_free": true,
"output_format": "png",
"seed": 4201
} Why this works: Switching to an open-stance model plate, flat steamed garment photo, explicit category/garment_photo_type, quality mode, and segmentation_free: true eliminates silhouette clipping and gives Topaz Image API a clean PNG anchor for 2×–4× PDP enlargement.
Why This Failure Happens in Real Pipelines
Traditional virtual try-on models predict a binary mask around the model’s original clothing and paint the new garment exclusively inside that boundary. That works when swapping a fitted t-shirt for another fitted t-shirt, but immediately fails when placing a boxy puffer jacket, kimono sleeve, or floor-length dress onto a model wearing slim athleisure. FASHN v1.6 specifically introduces segmentation_free mode to bypass tight legacy masks so larger garments drape naturally over the underlying pose and background.
Garment source quality and input flags dictate fabric fidelity. If a flat-lay photo arrives folded, shadowed, or shot with deep wrinkles across a chest logo, the try-on diffusion pass guesses the obscured letters. Leaving garment_photo_type on auto when the garment sits on a textured wooden table or busy hanger can also trick the parser into carrying background clutter into the neckline. Explicitly setting garment_photo_type ("flat-lay" vs. "model") and exact category ("tops", "bottoms", or "one-pieces") removes both heuristics.
Finally, native FASHN v1.6 outputs at 864×1296 px (1.12 megapixels)—sharp enough for mobile collection grids, but too low-resolution for 2000px+ Shopify desktop zoom tiles or print lookbooks. Attempting to sharpen 864×1296 in basic CSS/bicubic scaling smears micro-stitching and chest typography. Pairing a clean FASHN quality-mode output ($0.075) with a single Topaz Image Upscale API pass ($0.08 up to 24MP using Text Refine or High Fidelity V2) produces crisp zoomable fabric weave and readable labels for $0.155 total per SKU.
Step-by-Step Resolution & Verification
- 01
Prep a steamed, evenly lit flat-lay garment image
Steam wrinkles away from printed graphics and collars, shoot straight overhead on neutral white or light gray, and crop tightly without busy table textures or hangers.
- 02
Select an open-posture 2:3 studio model plate
Use a clean 2:3 vertical model photo where arms hang slightly clear of the torso and hair does not drape across chest logos. Dress the base model in simple neutral fitted basics.
- 03
Set explicit category, garment_photo_type, quality mode, and segmentation_free: true
Never rely on auto masking for coats, boxy hoodies, pleated skirts, or dresses. Pass PNG output and a fixed seed so A/B refinements stay comparable.
- 04
Finish approved looks with Topaz Image API 3× upscale ($0.08)
Upscale only approved SKUs to 2592×3888 (~10MP, well inside the $0.08 ≤24MP tier) using High Fidelity V2 (or Text Refine for heavy graphic tees) with face_enhancement_strength at 0.45.
python3 -c "from PIL import Image; im=Image.open('sku-pdp-master-2592x3888.png'); print(im.size, im.mode)"
# Then inspect at 200% zoom:
# 1. Sleeve cuffs & bottom hem: zero ghost pixels of the model's old shirt/pants.
# 2. Chest print / embroidery: every letter matches the flat-lay reference.
# 3. Skin texture: face_enhancement_strength 0.45 preserves natural pores. (2592, 3888) RGB — clean continuous garment outline with zero old-hem bleed and sharp chest print edges. How to Prevent This Error From Recurring
Standardize 4 reusable brand model plates (front, 3/4, side, back)
Shooting or generating one locked set of clean neutral model plates in 2:3 aspect ratio eliminates 90% of occlusion glitches across a 50-SKU seasonal drop.
Match front flat-lays to front plates and back flat-lays to back plates
Virtual try-on cannot invent unseen rear prints; maintain paired SKU_front.png and SKU_back.png assets in your catalog bucket.
Inspect logos at 864×1296 BEFORE paying for upscaling or video animation
Topaz sharpens whatever pixels FASHN produced—if a tiny letter fused during try-on, re-roll with a cleaner flat-lay crop or new seed first ($0.075).
- Fix 65: Fix Runway Aleph 2 & Act-Two V2V Relight Flicker and Face Identity Drift
- Fix 66: Fix AI Book Cover Spine Misalignment and Amazon KDP Bleed Rejections
- Fix 68: Fix Pasted-On AI Product Cutouts, White Edge Halos & Floating Shadows
- Fix 69: Fix AI Virtual Staging Warped Windows, Altered Floors & MLS Rejections
Troubleshooting FAQs
- Why does the model’s old shirt sleeve still show under my new hoodie in FASHN v1.6?
- When segmentation_free is false, FASHN constrains generation tightly to the old clothing mask, leaving mismatched sleeve lengths or hems behind. Setting segmentation_free: true with explicit category ("tops" or "one-pieces") lets bulky outerwear and wide sleeves drape cleanly over the body.
- How do I keep tiny brand logos sharp on virtual try-on shots?
- Upload an unwrinkled, evenly lit high-resolution flat-lay photo (≥1500px), run FASHN v1.6 in quality mode with PNG output, and finish approved keepers with Topaz Image Upscale API (Text Refine or High Fidelity V2 at 3× for $0.08).
- Does quality mode cost more than performance mode on fal.ai FASHN v1.6?
- No. On fal.ai (fal-ai/fashn/tryon/v1.6), billing is a flat $0.075 per generated image across performance, balanced, and quality modes—use quality mode for final Shopify PDP catalog renders.
- Can I put a dress onto a model wearing jeans and a t-shirt?
- Yes, provided you set category: "one-pieces" and segmentation_free: true. For the cleanest hemline and leg proportions, keep one studio model plate dressed in simple fitted neutral basics.