Commit History

  1. fix: prevent extra legs from garment reference bleeding into lower bodyTwo fixes for the 'three legs' artifact:1. Prompt: add explicit 'exactly two legs' constraint to upper-body prompt2. Crop: upper-body garments are cropped to top 75% before being used as the reference latent — hanging ties, drawstrings and tails in the bottom quarter were being read as limbs by the model

    0f1978d
  2. improve: richer garment description + stronger prompt + 16 steps + 2MP ref- describe_garment now detects sleeve type, neckline, and special features (tie/bow, buttons, ruffles, etc.) using CLIP zero-shot — gives the model a much more specific caption to work from- Prompts now explicitly instruct the model to preserve sleeve shape, neckline, silhouette, and decorative elements without simplifying- Steps: 12 → 16 (better detail at ~25% more inference time)- Clothing reference: 1.5 → 2.0 megapixels (more detail in the conditioning)

    e1b8d5e
  3. fix: remove CLIP from main process to fix ZeroGPU bad-fork RuntimeErrorZeroGPU uses fork() for workers. Any CUDA/PyTorch init in the parentprocess poisons the fork (_is_in_bad_fork). _preprocess_garment wascalling CLIPModel in the main Gradio process via clothing_input.change(),which initialised CUDA before the fork. Fix: remove that change() event.All CLIP calls (detect_specific_garment, describe_garment, classify_garment)are now inside _run_generate() which runs post-fork in the ZeroGPU worker.

    e3c5bff
  4. fix: remove top-level rembg import — onnxruntime was corrupting CUDA before ZeroGPU worker init

    be89fcc
  5. fix: patch HfFolder for huggingface_hub >= 0.24 compat with gradio 4.44

    66f5a43
  6. refactor: move CLIP inference outside @spaces.GPU to fix RuntimeError- All CLIP calls (detect_specific_garment, describe_garment, classify_garment) now run in _preprocess_garment() which is triggered by clothing_input.change() — completely outside @spaces.GPU, no GPU allocation needed for CPU inference- generate() now receives pre-computed garment info via gr.State (no CLIP inside GPU)- Added _run_generate() as the actual implementation; generate() wraps it with try/except that surfaces real error messages in the UI instead of bare RuntimeError- rembg still uses CPUExecutionProvider to avoid onnxruntime CUDA conflicts

    061f16e
  7. fix: force CLIP+rembg on CPU to prevent ZeroGPU RuntimeError⁠

    d3bb8b8
  8. feat: garment type dropdown with CLIP auto-detect

    d55fbec
  9. feat: auto contrast boost for low-contrast garment images

    540133c
  10. feat: increase steps to 12 for better fabric texture

    da84e5e
  11. feat: rembg background removal for product photos

    71dd775
  12. Merge branch 'main' of https://huggingface.co/spaces/SpaceNugget/virtual-try-on

    df9bd9d
  13. feat: generate model from text prompt; restore garment upload

    ddb78fd
  14. Upload yotams_clothes.jpeg

    Verified signature
    73edea8

  1. chnaged title

    5a95890
  2. fix: start ComfyUI inside @spaces.GPU (CUDA required at import time)

    6281ab9
  3. fix: remove audioop-lts (not needed on ZeroGPU Python 3.10/3.11)

    92717dc
  4. fix: remove jinja2 version pin (monkey-patch handles compat at runtime)

    4dc7e45
  5. fix: remove torch from requirements (ZeroGPU provides it)

    29e018f
  6. fix: start ComfyUI at startup (no GPU needed for server)

    48a7e92
  7. revert: back to ZeroGPU, duration=180s

    2eff359

  1. fix: use CSS injection for unlock (more reliable than style prop)

    fe2c4b1
  2. revert: remove mobile CSS (broke desktop)

    0a1b470
  3. feat: responsive layout for mobile

    4f2339b
  4. feat: client-side unlock, no server roundtrip

    28ff126
  5. reversed the last change

    66e90b7

  1. updated guidelinesabout pose keeping to the prompt

    378bf11
  2. added guidelines to the prompt

    a9166a0
  3. fix: make garment input display-only (interactive=False)

    2c72c0f
  4. fix: replace pyaudioop with audioop-lts (correct PyPI package for Python 3.13)

    0d3a32c
  5. fix: add pyaudioop for Python 3.13 compatibility (audioop removed from stdlib)

    5b71094
  6. feat: switch from ZeroGPU to T4 — remove spaces decorator, start ComfyUI at startup

    33f2aea
  7. Merge branch 'main' of https://huggingface.co/spaces/SpaceNugget/virtual-try-on

    98616ae
  8. feat: disable garment upload — presets only

    7c1cbd7
  9. Delete images/people/man_3.png

    Verified signature
    6144833
  10. Upload man_3.png

    Verified signature
    6c8ecdb
  11. Upload 24 files

    Verified signature
    d3216bd
  12. Delete images/garments

    Verified signature
    3eaa81f
  13. fix: improve product photo detection — use avg brightness + uniformity instead of skin tone heuristic

    c95d300
  14. revert: remove body composite blending

    e577016
  15. feat: composite original body region back onto result to preserve lower/upper body

    49cb5b9

  1. fix: bypass SAM3 segmentation for product photos (plain background garments)

    8a2b494
  2. feat: show detected garment type after generation for debugging

    fcf7332
  3. fix: clear ComfyUI cache + unique pixel per run to prevent stale node outputs

    295529e
  4. Upload 19 files

    Verified signature
    70e106a
  5. Delete images/garments

    Verified signature
    5edfe23
  6. edited prompt

    afcad90
  7. feat: add regenerate disclaimer

    d79a876
  8. feat: CLIP garment classifier — auto-detects upper/lower/full body and adjusts prompt

    9028915
  9. Upload 25 files⁠

    Verified signature
    5b1f8ef