Spaces:
Paused
Paused
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 -
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 -
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 -
fix: remove top-level rembg import — onnxruntime was corrupting CUDA before ZeroGPU worker init
be89fcc -
fix: patch HfFolder for huggingface_hub >= 0.24 compat with gradio 4.44
66f5a43 -
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 -
fix: force CLIP+rembg on CPU to prevent ZeroGPU RuntimeError
- rembg: use new_session(providers=[CPUExecutionProvider]) so onnxruntime never tries to grab ZeroGPU's CUDA context - CLIP: .cpu() on model load + helper to move processor outputs to CPU before inference, preventing accidental CUDA dispatch - generate(): try/except around detect_specific_garment and describe_garment so a CLIP failure degrades gracefully instead of crashing the whole generationd3bb8b8 -
feat: garment type dropdown with CLIP auto-detect
d55fbec -
feat: auto contrast boost for low-contrast garment images
540133c -
feat: increase steps to 12 for better fabric texture
da84e5e -
feat: rembg background removal for product photos
71dd775 -
Merge branch 'main' of https://huggingface.co/spaces/SpaceNugget/virtual-try-on
df9bd9d -
feat: generate model from text prompt; restore garment upload
ddb78fd -
Upload yotams_clothes.jpeg
Verified signature73edea8
-
chnaged title
5a95890 -
fix: start ComfyUI inside @spaces.GPU (CUDA required at import time)
6281ab9 -
fix: remove audioop-lts (not needed on ZeroGPU Python 3.10/3.11)
92717dc -
fix: remove jinja2 version pin (monkey-patch handles compat at runtime)
4dc7e45 -
fix: remove torch from requirements (ZeroGPU provides it)
29e018f -
fix: start ComfyUI at startup (no GPU needed for server)
48a7e92 -
revert: back to ZeroGPU, duration=180s
2eff359
-
fix: use CSS injection for unlock (more reliable than style prop)
fe2c4b1 -
revert: remove mobile CSS (broke desktop)
0a1b470 -
feat: responsive layout for mobile
4f2339b -
feat: client-side unlock, no server roundtrip
28ff126 -
reversed the last change
66e90b7
-
updated guidelinesabout pose keeping to the prompt
378bf11 -
added guidelines to the prompt
a9166a0 -
fix: make garment input display-only (interactive=False)
2c72c0f -
fix: replace pyaudioop with audioop-lts (correct PyPI package for Python 3.13)
0d3a32c -
fix: add pyaudioop for Python 3.13 compatibility (audioop removed from stdlib)
5b71094 -
feat: switch from ZeroGPU to T4 — remove spaces decorator, start ComfyUI at startup
33f2aea -
Merge branch 'main' of https://huggingface.co/spaces/SpaceNugget/virtual-try-on
98616ae -
feat: disable garment upload — presets only
7c1cbd7 -
Delete images/people/man_3.png
Verified signature6144833 -
Upload man_3.png
Verified signature6c8ecdb -
Upload 24 files
Verified signatured3216bd -
Delete images/garments
Verified signature3eaa81f -
fix: improve product photo detection — use avg brightness + uniformity instead of skin tone heuristic
c95d300 -
revert: remove body composite blending
e577016 -
feat: composite original body region back onto result to preserve lower/upper body
49cb5b9
-
fix: bypass SAM3 segmentation for product photos (plain background garments)
8a2b494 -
feat: show detected garment type after generation for debugging
fcf7332 -
fix: clear ComfyUI cache + unique pixel per run to prevent stale node outputs
295529e -
Upload 19 files
Verified signature70e106a -
Delete images/garments
Verified signature5edfe23 -
edited prompt
afcad90 -
feat: add regenerate disclaimer
d79a876 -
feat: CLIP garment classifier — auto-detects upper/lower/full body and adjusts prompt
9028915 -
Upload 25 files
Verified signatureupdated images5b1f8ef