# Virtual Try-On doesn't appear to work

**URL:** <https://discuss.huggingface.co/t/virtual-try-on-doesnt-appear-to-work/151913>\
**Category:** Beginners\
**Created:** [April 23, 2025, 8:40am UTC](https://discuss.huggingface.co/t/virtual-try-on-doesnt-appear-to-work/151913 "2025-04-23T08:40:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThomasYale](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@ThomasYale](https://discuss.huggingface.co/u/ThomasYale)\
**Post date:** [April 23, 2025, 8:40am UTC](https://discuss.huggingface.co/t/virtual-try-on-doesnt-appear-to-work/151913/1 "2025-04-23T08:40:08Z")

</div>

Hello. I’m using the IDM-VTON Virtual Try-On with a consistent human and dress image. Even with using a green screen with the dress image, and clearly marking masking the area in the human image where the dress should appear, the only result is an unexplained error. This even occurs with default settings and using examples. Is it offline or am I using it wrong?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [April 23, 2025, 10:33am UTC](https://discuss.huggingface.co/t/virtual-try-on-doesnt-appear-to-work/151913/2 "2025-04-23T10:33:45Z")

</div>

It seems that the CUDA version of Zero GPU has changed and is no longer compatible with older versions of PyTorch. The following fix worked.

 ![vtonfix](https://us1.discourse-cdn.com/hellohellohello/original/3X/1/7/17bace757aaab8d34c6f056b3b29b578c1f239fd.jpeg)

> **[IDM VTON - a Hugging Face Space by John6666](https://huggingface.co/spaces/John6666/IDM-VTON)**
>
> High-fidelity Virtual Try-on

```auto
#requirements.txt
#torch==2.0.1
torch==2.4.0
torchvision>=0.15.2
torchaudio>=2.0.2
huggingface_hub==0.25.2
pydantic==2.10.6

```

---

<div class="post-metadata">

**Author:** ![ThomasYale](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@ThomasYale](https://discuss.huggingface.co/u/ThomasYale)\
**Post date:** [April 23, 2025, 6:12pm UTC](https://discuss.huggingface.co/t/virtual-try-on-doesnt-appear-to-work/151913/3 "2025-04-23T18:12:57Z")

</div>

Okay, great, I’ll try it again after work. Thanks.

---

<div class="post-metadata">

**Author:** ![ThomasYale](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@ThomasYale](https://discuss.huggingface.co/u/ThomasYale)\
**Post date:** [April 24, 2025, 7:07am UTC](https://discuss.huggingface.co/t/virtual-try-on-doesnt-appear-to-work/151913/4 "2025-04-24T07:07:07Z")

</div>

I’ve tried it again and it still encounters errors, so I’m guessing that it’s been superseded by one for which you provided the link with the fix. Still, when I click on that link, it generates an error too, specifically " runtime error ## Memory limit exceeded (16Gi)".

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/9/c/9c5c213b887c7c34fa62f6fa042c7094f4d9b798.png)

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [April 24, 2025, 7:44am UTC](https://discuss.huggingface.co/t/virtual-try-on-doesnt-appear-to-work/151913/5 "2025-04-24T07:44:02Z")

</div>

Um, the space is quite heavy, so it won’t work unless you copy it to the Zero GPU space.

---

<div class="post-metadata">

**Author:** ![ThomasYale](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@ThomasYale](https://discuss.huggingface.co/u/ThomasYale)\
**Post date:** [April 24, 2025, 3:17pm UTC](https://discuss.huggingface.co/t/virtual-try-on-doesnt-appear-to-work/151913/6 "2025-04-24T15:17:16Z")

</div>

You mean there are too many users using it at the same time? Also, where do I find the Zero GPU space if not via the link you provided? By “space” do you mean webpage?

---

<div class="post-metadata">

**Author:** ![ThomasYale](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@ThomasYale](https://discuss.huggingface.co/u/ThomasYale)\
**Post date:** [April 24, 2025, 3:24pm UTC](https://discuss.huggingface.co/t/virtual-try-on-doesnt-appear-to-work/151913/7 "2025-04-24T15:24:06Z")

</div>

Also, copy what to there exactly?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [April 25, 2025, 3:01am UTC](https://discuss.huggingface.co/t/virtual-try-on-doesnt-appear-to-work/151913/8 "2025-04-25T03:01:37Z")

</div>

It’s like this. I’m not a staff member or anything special, so I can fix the code myself, but I can’t provide paid space for free…

> [@Quota exceed error](https://discuss.huggingface.co/t/quota-exceed-error/150796/10):
>
> Hmm… It’s something like this.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [September 23, 2025, 12:37am UTC](https://discuss.huggingface.co/t/virtual-try-on-doesnt-appear-to-work/151913/9 "2025-09-23T00:37:52Z")

</div>

[Gradio 5 version is here](https://huggingface.co/spaces/John6666/IDM-VTON-GRADIO5).
