Commit History

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

SpaceNugget commited on

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

SpaceNugget commited on

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

SpaceNugget commited on

fix: remove top-level rembg import β€” onnxruntime was corrupting CUDA before ZeroGPU worker init
be89fcc

SpaceNugget commited on

fix: patch HfFolder for huggingface_hub >= 0.24 compat with gradio 4.44
66f5a43

SpaceNugget commited on

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

SpaceNugget commited on

fix: force CLIP+rembg on CPU to prevent ZeroGPU RuntimeError
d3bb8b8

SpaceNugget commited on

feat: garment type dropdown with CLIP auto-detect
d55fbec

SpaceNugget commited on

feat: auto contrast boost for low-contrast garment images
540133c

SpaceNugget commited on

feat: increase steps to 12 for better fabric texture
da84e5e

SpaceNugget commited on

feat: rembg background removal for product photos
71dd775

SpaceNugget commited on

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

SpaceNugget commited on

feat: generate model from text prompt; restore garment upload
ddb78fd

SpaceNugget commited on

Upload yotams_clothes.jpeg
73edea8
verified

SpaceNugget commited on

fix: start ComfyUI inside @spaces.GPU (CUDA required at import time)
6281ab9

SpaceNugget commited on

fix: remove audioop-lts (not needed on ZeroGPU Python 3.10/3.11)
92717dc

SpaceNugget commited on

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

SpaceNugget commited on

fix: remove torch from requirements (ZeroGPU provides it)
29e018f

SpaceNugget commited on

fix: start ComfyUI at startup (no GPU needed for server)
48a7e92

SpaceNugget commited on

revert: back to ZeroGPU, duration=180s
2eff359

SpaceNugget commited on

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

SpaceNugget commited on

revert: remove mobile CSS (broke desktop)
0a1b470

SpaceNugget commited on

feat: responsive layout for mobile
4f2339b

SpaceNugget commited on

feat: client-side unlock, no server roundtrip
28ff126

SpaceNugget commited on

reversed the last change
66e90b7

SpaceNugget commited on

updated guidelinesabout pose keeping to the prompt
378bf11

SpaceNugget commited on

added guidelines to the prompt
a9166a0

SpaceNugget commited on

fix: make garment input display-only (interactive=False)
2c72c0f

SpaceNugget commited on

fix: replace pyaudioop with audioop-lts (correct PyPI package for Python 3.13)
0d3a32c

SpaceNugget commited on

fix: add pyaudioop for Python 3.13 compatibility (audioop removed from stdlib)
5b71094

SpaceNugget commited on

feat: switch from ZeroGPU to T4 β€” remove spaces decorator, start ComfyUI at startup
33f2aea

SpaceNugget commited on

Merge branch 'main' of https://huggingface.co/spaces/SpaceNugget/virtual-try-on
98616ae

SpaceNugget commited on

feat: disable garment upload β€” presets only
7c1cbd7

SpaceNugget commited on

Delete images/people/man_3.png
6144833
verified

SpaceNugget commited on

Upload man_3.png
6c8ecdb
verified

SpaceNugget commited on

Upload 24 files
d3216bd
verified

SpaceNugget commited on

Delete images/garments
3eaa81f
verified

SpaceNugget commited on

fix: improve product photo detection β€” use avg brightness + uniformity instead of skin tone heuristic
c95d300

SpaceNugget commited on

revert: remove body composite blending
e577016

SpaceNugget commited on

feat: composite original body region back onto result to preserve lower/upper body
49cb5b9

SpaceNugget commited on

fix: bypass SAM3 segmentation for product photos (plain background garments)
8a2b494

SpaceNugget commited on

feat: show detected garment type after generation for debugging
fcf7332

SpaceNugget commited on

fix: clear ComfyUI cache + unique pixel per run to prevent stale node outputs
295529e

SpaceNugget commited on

Upload 19 files
70e106a
verified

SpaceNugget commited on

Delete images/garments
5edfe23
verified

SpaceNugget commited on

feat: add regenerate disclaimer
d79a876

SpaceNugget commited on

feat: CLIP garment classifier β€” auto-detects upper/lower/full body and adjusts prompt
9028915

SpaceNugget commited on

Upload 25 files
5b1f8ef
verified

SpaceNugget commited on