Home Creators Posts Import Register Favorites Logout

Downloads

Content

IDM-VTON virtual try-on installers that put any clothing on anyone immediately; the post is deprecated and points to the new IDM-VTON app post.

Note: this is an older post kept for reference. The current, maintained version is IDM-VTON Virtual Try-On App: Windows, Cloud & Free Kaggle Installers.

1-click installers for Windows, RunPod, Massed Compute and a free Kaggle notebook (V16, updated December 2024) with upper body, lower body and dress auto masks, plus FP8, FP4 and CPU offloading for 8 GB GPUs.

new app here : https://www.patreon.com/posts/122718239

new app : https://www.patreon.com/posts/122718239

new version : https://www.patreon.com/posts/122718239

this post is deprecated

-

-

-

--

-

-

--

-

-

-

--

-

-

-

-

-

-

-

--

-

Patreon exclusive posts index to find our scripts easily, Patreon scripts updates history to see which updates arrived to which scripts and amazing Patreon special generative scripts list that you can use in any of your task.

Join discord to get help, chat, discuss and also tell me your discord username to get your special rank : SECourses Discord

Please also Star, Watch and Fork our Stable Diffusion & Generative AI  GitHub repository and join our Reddit subreddit and follow me on LinkedIn (my real profile)

=======

  • IDM-VTON: Improving Diffusion Models for Authentic Virtual Try-on in the Wild

  • The model is extremely flexible and robust so you can make very funny images :)

  • Full how to use and install tutorial published : https://youtu.be/m4pcIeAVQD0

Latest installer zip file

23 December 2024 Update

  • Windows, RunPod, Massed Compute installers updated and fixed

  • Kaggle notebook updated and fixed

  • All installers and notebook now will download models ultra fast - so faster install and initialize first run

Windows Requirements

  • Python 3.10, FFmpeg, CUDA 12.4, C++ tools, cuDNN 8.9 and Git

  • If it doesn't work make sure to follow below tutorial step by step and install everything exactly as shown in this below tutorial

  • https://youtu.be/-NjNy7afOQ0

  • More up-to-date info about CUDA 12.4 and C++ tools

  • To install on Windows just run Windows_Install.bat

  • To start on Windows just run Windows_Start_VTON_app.bat

  • To update on Windows just run Windows_Update.bat

General Instructions for Cloud

  • Please register for RunPod at: https://runpod.io?ref=1aka98lq

  • Please register for Massed Compute (RECOMMENDED CLOUD) using the following link I appreciate that a lot:

  • https://vm.massedcompute.com/signup?linkId=lp_034338&sourceId=secourses&tenantId=massed-compute

    • We have a special coupon for L40, A6000 and A6000 ALT config : SECourses

    • A6000 and A6000 ALT config will be 31 cents per hour with our coupon

    • L40 (RECOMMENDED GPU) will be 49 cents per hour with our coupon - recommended since it has over 2x disk compared to A6000 and faster

  • For Runpod follow : Runpod_Instructions_READ.txt

  • For Massed Compute follow : Massed_Compute_Instructions_READ.txt

Extra Usage Info

  • When first time running it will download some models into Hugging Face cache folder

  • If your input image resolution and clothing resolution are not same you should enable auto crop resize which is enabled by default

  • Every generated image is saved automatically in outputs folder

  • Look how to use VTON.png to see how to use

12 May 2024 Update

  • 3 Auto mask categories added : upper_body, lower_body and dresses

  • If you had V6 installed just run Windows_Update .bat file and it should work

  • Example picture : elon musk in a dress.png

3 May 2024 Update

30 April 2024 Update

  • Randomize Seed added

  • Missing library bug fixed for RunPod and Massed Compute

28 April 2024 Update

  • Updated to V5

  • Full how to use and install tutorial published : https://youtu.be/m4pcIeAVQD0

  • Please upvote this reddit thread and leave a good reply if you can :

  • Please do a fresh reinstall - models won't be downloaded again

  • Kaggle free notebook is now working - please read the Kaggle instructions in the notebook

  • Now supports CPU offloading and also FP8 and FP4

  • With newest improvements, you can use VTON even on 8 GB GPUs very well

  • Fastest high VRAM options are 1+1 and lowest VRAM options are 2+3

  • VRAM usages are as below

27 April 2024 Update

  • Updated to V4

  • Currently we are working on FP8 version + CPU offloading to reduce VRAM usage significantly

  • Thus a working free Kaggle notebook will be hopefully possible 

  • Just double click and run Windows_Update .bat file to update. No need to reinstall

  • Number of images to generate feature added. This is super useful since each seed makes huge difference and thus you can get amazing pictures with generating more images at once with different seeds

  • It will start using your entered seed and increment it by 1 for every image you generate with number of images to generate

  • When saving image files, the seed will be appended to the name of the file now

  • Workflows and examples posted on Reddit please also consider to upvote. Link below

  • https://www.reddit.com/r/StableDiffusion/comments/1ce2iax/idmvton_virtual_tryon_is_just_another_level/

Related posts

All posts in this topic: AI Image Generation and Editing Apps · New to SECourses? Start Here: Best and Most Popular SECourses Posts

Files

Comments

peter realis

Hello, thank you for the great script!

SECourses

you are welcome. the initial cloning will take a while since it clones about 1 GB models from Hugging Face

puk

It Works, but the input window is always black.

Nacho Sueiro

Hi there! After running the installation script on Massed compute and trying to run "python3 app_VTON.py --share True" i get the following warning and error The config attributes {'decay': 0.9999, 'inv_gamma': 1.0, 'min_decay': 0.0, 'optimization_step': 37000, 'power': 0.6666666666666666, 'update_after_step': 0, 'use_ema_warmup': False} were passed to UNet2DConditionModel, but are not expected and will be ignored. Please verify your config.json configuration file. Some weights of the model checkpoint were not used when initializing UNet2DConditionModel: ['add_embedding.linear_1.bias, add_embedding.linear_1.weight, add_embedding.linear_2.bias, add_embedding.linear_2.weight'] Traceback (most recent call last): File "/home/Ubuntu/apps/virtual_try_on_v2/IDM-VTON/app_VTON.py", line 118, in parsing_model = Parsing(0) File "/home/Ubuntu/apps/virtual_try_on_v2/IDM-VTON/preprocess/humanparsing/run_parsing.py", line 20, in __init__ self.session = ort.InferenceSession(os.path.join(Path(__file__).absolute().parents[2].absolute(), 'ckpt/humanparsing/parsing_atr.onnx'), File "/home/Ubuntu/apps/virtual_try_on_v2/IDM-VTON/venv/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in __init__ self._create_inference_session(providers, provider_options, disabled_optimizers) File "/home/Ubuntu/apps/virtual_try_on_v2/IDM-VTON/venv/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 452, in _create_inference_session sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model) onnxruntime.capi.onnxruntime_pybind11_state.InvalidProtobuf: [ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from /home/Ubuntu/apps/virtual_try_on_v2/IDM-VTON/ckpt/humanparsing/parsing_atr.onnx failed:Protobuf parsing failed. Any idea on how to fix it? Thanks in advance!

SECourses

you must be not accurately uploading input image. did you see the image shared in the post to show how to upload image?

SECourses

also can you edit your image and save as. like use photoshop or paint .net or anything to save as png

SECourses

fixed with v3 and verified thanks a lot for reporting

Dmitry

Hello, do you know any AI that removes people and leaves clothes?

Dmitry

A small note after the test. If you want to replace the pants, turn off the auto mask. Otherwise, the mask will only define the top of the clothes

SECourses

i think i had seen something like this but cant remember right now.

Diogo Andrade

I deleted my comments so as not to get in your way. The error was my fault. I noticed that there was an invalid path to the "Python" in the system variables. I fixed this and reinstalled as you guided me and everything worked correctly. Thank you very much for the help and for your work!

鸣 陈

Loading pipeline components...: 100%|████████████████████████████████████████████████████| 8/8 [00:02<00:00, 2.85it/s] Traceback (most recent call last): File "D:\1\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\gradio\queueing.py", line 527, in process_events response = await route_utils.call_process_api( File "D:\1\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\gradio\route_utils.py", line 270, in call_process_api output = await app.get_blocks().process_api( File "D:\1\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\gradio\blocks.py", line 1847, in process_api result = await self.call_function( File "D:\1\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\gradio\blocks.py", line 1433, in call_function prediction = await anyio.to_thread.run_sync( File "D:\1\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "D:\1\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2144, in run_sync_in_worker_thread return await future File "D:\1\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 851, in run result = context.run(func, *args) File "D:\1\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\gradio\utils.py", line 788, in wrapper response = f(*args, **kwargs) File "D:\1\virtual_try_on_v6\IDM-VTON\app_VTON.py", line 123, in start_tryon parsing_model = Parsing(0) File "D:\1\virtual_try_on_v6\IDM-VTON\preprocess\humanparsing\run_parsing.py", line 20, in __init__ self.session = ort.InferenceSession(os.path.join(Path(__file__).absolute().parents[2].absolute(), 'ckpt/humanparsing/parsing_atr.onnx'), File "D:\1\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 419, in __init__ self._create_inference_session(providers, provider_options, disabled_optimizers) File "D:\1\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 452, in _create_inference_session sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model) onnxruntime.capi.onnxruntime_pybind11_state.NoSuchFile: [ONNXRuntimeError] : 3 : NO_SUCHFILE : Load model from D:\1\virtual_try_on_v6\IDM-VTON\ckpt/humanparsing/parsing_atr.onnx failed:Load model D:\1\virtual_try_on_v6\IDM-VTON\ckpt/humanparsing/parsing_atr.onnx failed. File doesn't exist I don't know what my problem is. Could you please take a look?

SECourses

that means you didn't have git large. so it failed to clone the onnx files. please install git large as shown in tutorial video : 2:57 How to download Git Large (Git LFS) to clone VTON repo accurately https://youtu.be/m4pcIeAVQD0

鸣 陈

Still not possible, I'm here discord Stable-diffusion on Stable-diffusion sent you a picture. Please take a look.

SECourses

replied you back lets continue there

鸣 陈

discord Sent you

Min Xu

ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor how to resolve this problem?

SECourses

hello. please tell me your python version and your gpu

Min Xu

Python 3.10.11 , gpu is nvidia geforce rtx 4070 super. thank you!!!!!

SECourses

to the readers you need to be connected to the internet while installing. make sure it is working. Min Xu problem was internet

Ammar Salem

When it finish installing iset images from the examples and click on Try-on but nothing is happining! what am I missing?

SECourses

edit input image and hit again. where do you use windows runpod kaggle massed compute? did you watch both of the tutorials?

jonathan sanchez

hello friend, I want to know if you can enable a field for custom mask or do you think it will not improve the results?

SECourses

you can draw a mask on input image and it improves. did you try?

jonathan sanchez

yes yes of course, but I had thought it would be faster to create a mask in photoshop and retouch it inside photoshop and then upload it, as there are some photos that require some complex masks, but thanks anyway for the answer. By the way, how does the layer thing work?

SECourses

sadly i dont know layer yet. have you tried? i feel you about custom mask input. I asked Gradio developers to bring in full screen mode. i dont know how hard it would be to add our own mask :D

jonathan sanchez

I haven't tried Layer yet, but as soon as I do, I'll leave a comment about it. Thanks again for the responses!

TheAIGirlsAgency (edited)

Comment edits

2026-09-10 11:00 The config attributes {'decay': 0.9999, 'inv_gamma': 1.0, 'min_decay': 0.0, 'optimization_step': 37000, 'power': 0.6666666666666666, 'update_after_step': 0, 'use_ema_warmup': False} were passed to UNet2DConditionModel, but are not expected and will be ignored. Please verify your config.json configuration file. image_encoder/config.json: 100% Python 3.10.6 Windows 10 / Python
2024-05-07 01:42

TheAIGirlsAgency (edited)

Comment edits

2026-09-10 11:00 Hope you can help me out, now I get this error KeyError: 'vhx5vpi6bq'
2024-05-07 02:11

SECourses

ok i need these 2. please make a fresh install and send me all cmd output. also please send me all cmd output of your first run. you can email me both : monstermmorpg@gmail.com i will also do a fresh install now to test. also install python 3.10.11 it works better than 3.10.6 for everything

SECourses

make sure your python version is 3.10.11 and installed c++ tools. also config attributes message not important.

Lưu Bá Tài

Running on local URL: http://127.0.0.1:7860 To create a public link, set `share=True` in `launch()`. IMPORTANT: You are using gradio version 4.28.2, however version 4.29.0 is available, please upgrade. -------- ERROR: Exception in ASGI application Traceback (most recent call last): File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\uvicorn\protocols\http\httptools_impl.py", line 411, in run_asgi result = await app( # type: ignore[func-returns-value] File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 69, in __call__ return await self.app(scope, receive, send) File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\fastapi\applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\starlette\applications.py", line 123, in __call__ await self.middleware_stack(scope, receive, send) File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\starlette\middleware\errors.py", line 186, in __call__ raise exc File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\starlette\middleware\errors.py", line 164, in __call__ await self.app(scope, receive, _send) File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\gradio\route_utils.py", line 707, in __call__ await self.app(scope, receive, send) File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\starlette\middleware\exceptions.py", line 65, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 64, in wrapped_app raise exc File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app await app(scope, receive, sender) File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 756, in __call__ await self.middleware_stack(scope, receive, send) File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 776, in app await route.handle(scope, receive, send) File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 297, in handle await self.app(scope, receive, send) File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 77, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 64, in wrapped_app raise exc File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app await app(scope, receive, sender) File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 75, in app await response(scope, receive, send) File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\starlette\responses.py", line 352, in __call__ await send( File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 50, in sender await send(message) File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 50, in sender await send(message) File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\starlette\middleware\errors.py", line 161, in _send await send(message) File "D:\AI\virtual_try_on_v6\IDM-VTON\venv\lib\site-packages\uvicorn\protocols\http\httptools_impl.py", line 549, in send raise RuntimeError("Response content shorter than Content-Length")

Lưu Bá Tài

Currently I'm having this error, please help me fix it, thank you very much

SECourses

use google chrome. also do you see generated image in outputs folder? looks to me like related to your computer and browser - https error

Lưu Bá Tài

return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking) torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 26.00 MiB. GPU 0 has a total capacity of 11.76 GiB of which 22.88 MiB is free. Process 2019 has 104.12 MiB memory in use. Including non-PyTorch memory, this process has 11.06 GiB memory in use. Of the allocated memory 10.54 GiB is allocated by PyTorch, and 429.29 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables) I run on ubuntu 22.04.3 and got this error, do you know why?

SECourses

well you used more vram. start with --load_mode 4bit and --lowvram

Lưu Bá Tài

I'm Run V7 in Ubuntu get error: subset = pose['bodies']['subset'][0][:18] IndexError: list index out of range

SECourses

yes examples are broken. please upload your own images should work. i am gonna check example thing now

SECourses

also please provide more info because i just tested application and it works

Lưu Bá Tài

(venv) vittoza@vittoza:~/ai/virtual_try_on_v8/IDM-VTON$ cd IDM-VTON source venv/bin/activate export PYTHONWARNINGS=ignore python3 app_VTON.py --load_mode 8bit --share True bash: cd: IDM-VTON: No such file or directory Running on local URL: http://127.0.0.1:7860 Running on public URL: https://857e1182c0709a2b61.gradio.live This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces) The config attributes {'decay': 0.9999, 'inv_gamma': 1.0, 'min_decay': 0.0, 'optimization_step': 37000, 'power': 0.6666666666666666, 'update_after_step': 0, 'use_ema_warmup': False} were passed to UNet2DConditionModel, but are not expected and will be ignored. Please verify your config.json configuration file. Some weights of the model checkpoint were not used when initializing UNet2DConditionModel: ['add_embedding.linear_1.bias, add_embedding.linear_1.weight, add_embedding.linear_2.bias, add_embedding.linear_2.weight'] Loading pipeline components...: 100%|█████████████| 8/8 [00:01<00:00, 5.32it/s] Traceback (most recent call last): File "/home/vittoza/ai/virtual_try_on_v8/IDM-VTON/venv/lib/python3.10/site-packages/gradio/queueing.py", line 528, in process_events response = await route_utils.call_process_api( File "/home/vittoza/ai/virtual_try_on_v8/IDM-VTON/venv/lib/python3.10/site-packages/gradio/route_utils.py", line 270, in call_process_api output = await app.get_blocks().process_api( File "/home/vittoza/ai/virtual_try_on_v8/IDM-VTON/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1908, in process_api result = await self.call_function( File "/home/vittoza/ai/virtual_try_on_v8/IDM-VTON/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1485, in call_function prediction = await anyio.to_thread.run_sync( File "/home/vittoza/ai/virtual_try_on_v8/IDM-VTON/venv/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "/home/vittoza/ai/virtual_try_on_v8/IDM-VTON/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread return await future File "/home/vittoza/ai/virtual_try_on_v8/IDM-VTON/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 851, in run result = context.run(func, *args) File "/home/vittoza/ai/virtual_try_on_v8/IDM-VTON/venv/lib/python3.10/site-packages/gradio/utils.py", line 808, in wrapper response = f(*args, **kwargs) File "/home/vittoza/ai/virtual_try_on_v8/IDM-VTON/app_VTON.py", line 159, in start_tryon keypoints = openpose_model(human_img.resize((384,512))) File "/home/vittoza/ai/virtual_try_on_v8/IDM-VTON/preprocess/openpose/run_openpose.py", line 51, in __call__ subset = pose['bodies']['subset'][0][:18] IndexError: list index out of range

Lưu Bá Tài

I choose a picture with only pants, I choose the lower_body option, it will make an error.

SECourses

in that case please mask manually

SECourses

i can't see message please reply from Discord

weilong guo

when i use load_mode 4bit ,get error : Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/gradio/queueing.py", line 528, in process_events response = await route_utils.call_process_api( File "/usr/local/lib/python3.10/dist-packages/gradio/route_utils.py", line 270, in call_process_api output = await app.get_blocks().process_api( File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1908, in process_api result = await self.call_function( File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1485, in call_function prediction = await anyio.to_thread.run_sync( File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 807, in run result = context.run(func, *args) File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 808, in wrapper response = f(*args, **kwargs) File "/export/App/training_platform/PinoModel/yisol/idm-server/app_VTON.py", line 239, in start_tryon ) = pipe.encode_prompt( File "/export/App/training_platform/PinoModel/yisol/idm-server/src/tryon_pipeline.py", line 634, in encode_prompt prompt_embeds = text_encoder(text_input_ids.to(device), output_hidden_states=True) File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1541, in _call_impl return forward_call(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/accelerate/hooks.py", line 165, in new_forward output = module._old_forward(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/transformers/models/clip/modeling_clip.py", line 804, in forward return self.text_model( File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1541, in _call_impl return forward_call(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/transformers/models/clip/modeling_clip.py", line 709, in forward encoder_outputs = self.encoder( File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1541, in _call_impl return forward_call(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/transformers/models/clip/modeling_clip.py", line 636, in forward layer_outputs = encoder_layer( File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1541, in _call_impl return forward_call(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/transformers/models/clip/modeling_clip.py", line 378, in forward hidden_states, attn_weights = self.self_attn( File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1541, in _call_impl return forward_call(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/transformers/models/clip/modeling_clip.py", line 267, in forward query_states = self.q_proj(hidden_states) * self.scale File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1541, in _call_impl return forward_call(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/bitsandbytes/nn/modules.py", line 256, in forward out = bnb.matmul_4bit(x, self.weight.t(), bias=bias, quant_state=self.weight.quant_state) File "/usr/local/lib/python3.10/dist-packages/bitsandbytes/autograd/_functions.py", line 577, in matmul_4bit return MatMul4Bit.apply(A, B, out, bias, quant_state) File "/usr/local/lib/python3.10/dist-packages/torch/autograd/function.py", line 598, in apply return super().apply(*args, **kwargs) # type: ignore[misc] File "/usr/local/lib/python3.10/dist-packages/bitsandbytes/autograd/_functions.py", line 516, in forward output = torch.nn.functional.linear(A, F.dequantize_4bit(B, quant_state).to(A.dtype).t(), bias) RuntimeError: mat1 and mat2 shapes cannot be multiplied (77x768 and 1x294912)

SECourses

Did you try 8 and 16 bit? Different resolution images?

SECourses

I suspect that it is because of your bitsandbytes version. Please activate venv and install 0.43.0. You used massed compute installer?

SECourses

yes it sounds like something went wrong during installation. so tell me your python version. also make a fresh install, don't close cmd, select all, copy, save in a txt file and email me : monstermmorpg@gmail.com

KARL EVEN

Hey, I wanted to reach out because I ran into a bit of an issue. I had your script running perfectly on RunPod with version v8, but when I tried to set up version v9 on a new RunPod instance, I got this error: ----- Traceback (most recent call last): File "/workspace/IDM-VTON/app_VTON.py", line 5, in from src.unet_hacked_garmnet import UNet2DConditionModel as UNet2DConditionModel_ref File "/workspace/IDM-VTON/src/unet_hacked_garmnet.py", line 35, in from diffusers.models.embeddings import ( ImportError: cannot import name 'PositionNet' from 'diffusers.models.embeddings' (/workspace/IDM-VTON/venv/lib/python3.10/site-packages/diffusers/models/embeddings.py) ----- I think this may be caused by the v9 version using newer diffusers, but I cannot fix it? Could you kindly give me some suggestions or consider updating the script?

SECourses

testing right now to fix if broken thanks for letting me know

SECourses

fixed. you can either do fresh install or activate venv and pip install diffusers==0.25.1

KARL EVEN

Thank you! It works well now!

SECourses

awesome. i am also doing a fresh install again to be sure

faraway zheng

hi, I got the error below: ================================= File "/root/autodl-tmp/IDM-VTON2/preprocess/openpose/run_openpose.py", line 48, in __call__ pose, detected_map = self.preprocessor(input_image, hand_and_face=False) File "/root/autodl-tmp/IDM-VTON2/preprocess/openpose/annotator/openpose/__init__.py", line 72, in __call__ candidate, subset = self.body_estimation(oriImg) File "/root/autodl-tmp/IDM-VTON2/preprocess/openpose/annotator/openpose/body.py", line 63, in __call__ heatmap = util.smart_resize_k(heatmap, fx=stride, fy=stride) File "/root/autodl-tmp/IDM-VTON2/preprocess/openpose/annotator/openpose/util.py", line 35, in smart_resize_k return np.stack([smart_resize_k(x[:, :, i], fx, fy) for i in range(Co)], axis=2) File "/root/autodl-tmp/IDM-VTON2/preprocess/openpose/annotator/openpose/util.py", line 35, in return np.stack([smart_resize_k(x[:, :, i], fx, fy) for i in range(Co)], axis=2) File "/root/autodl-tmp/IDM-VTON2/preprocess/openpose/annotator/openpose/util.py", line 33, in smart_resize_k return cv2.resize(x, (int(Wt), int(Ht)), interpolation=cv2.INTER_AREA if k < 1 else cv2.INTER_LANCZOS4) cv2.error: OpenCV(4.7.0) :-1: error: (-5:Bad argument) in function 'resize' > Overload resolution failed: > - src data type = 23 is not supported > - Expected Ptr for argument 'src' =========================================== I fixed this error by modifying the body.py from: --------------------------------------------------------------------------- heatmap = util.smart_resize_k(heatmap, fx=stride, fy=stride) --------------------------------------------------------------------------- to: --------------------------------------------------------------------------- heatmap = util.smart_resize_k(heatmap.astype(np.float32), fx=stride, fy=stride) --------------------------------------------------------------------------- it does work for me, but I don't know why I got this error

SECourses

Interesting. I tested on massed compute didn't have such error. It is also Ubuntu

Misha Mei

Traceback (most recent call last): File "C:\IDMVTON\IDM-VTON\app_VTON.py", line 4, in from src.tryon_pipeline import StableDiffusionXLInpaintPipeline as TryonPipeline File "C:\IDMVTON\IDM-VTON\src\tryon_pipeline.py", line 29, in from diffusers.image_processor import PipelineImageInput, VaeImageProcessor ModuleNotFoundError: No module named 'diffusers' How do I fix this? It shows when I run windows_start_VTON_app

SECourses

what is your python version? your cuda version? c++ tools installed? your is installation error. can you also reinstall and send me all cmd logs? i am going to make a fresh install to test and verify script not broken now

SECourses

hello do this and it will be fixed. restart computer and install into a fresh folder. like c:/vton_Ai. but if you do this before even better. enter inside your temp folder and delete everything : C:\Users\YourUsername\AppData\Local\Temp

anseltrust

Merhaba Furkan, öğretici video gerçekten harika, 8GB VRAM ile kullanabildiğimizi gördüğümde denemek istedim. Ama Windows_Install.bat dosyasını çalıştırdığımda devamlı bazı hatalar alıyorum; WARNING. For this auto installer to work you need to have installed Python 3.10.11 or 3.10.13 and C++ tools follow this tutorial : https://youtu.be/-NjNy7afOQ0 Requirement already satisfied: requests in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (2.32.3) Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from requests) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from requests) (3.7) Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from requests) (2.2.2) Requirement already satisfied: certifi>=2017.4.17 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from requests) (2024.6.2) Requirement already satisfied: tqdm in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (4.66.4) Requirement already satisfied: colorama in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from tqdm) (0.4.6) Git LFS initialized. fatal: destination path 'IDM-VTON' already exists and is not an empty directory. Python launcher is available. Generating Python 3.10 VENV No suitable Python runtime found Pass --list (-0) to see all detected environments on your machine or set environment variable PYLAUNCHER_ALLOW_INSTALL to use winget or open the Microsoft Store to the requested version. Sistem belirtilen yolu bulamıyor. Requirement already satisfied: tqdm in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (4.66.4) Requirement already satisfied: colorama in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from tqdm) (0.4.6) Collecting numpy==1.24.4 (from -r requirements.txt (line 1)) Using cached numpy-1.24.4.tar.gz (10.9 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [33 lines of output] Traceback (most recent call last): File "C:\Users\MSI-NB\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in main() File "C:\Users\MSI-NB\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\MSI-NB\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 112, in get_requires_for_build_wheel backend = _build_backend() ^^^^^^^^^^^^^^^^ File "C:\Users\MSI-NB\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 77, in _build_backend obj = import_module(mod_path) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\MSI-NB\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1310, in _find_and_load_unlocked File "", line 488, in _call_with_frames_removed File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "", line 995, in exec_module File "", line 488, in _call_with_frames_removed File "C:\Users\MSI-NB\AppData\Local\Temp\pip-build-env-v_1ij25r\overlay\Lib\site-packages\setuptools\__init__.py", line 16, in import setuptools.version File "C:\Users\MSI-NB\AppData\Local\Temp\pip-build-env-v_1ij25r\overlay\Lib\site-packages\setuptools\version.py", line 1, in import pkg_resources File "C:\Users\MSI-NB\AppData\Local\Temp\pip-build-env-v_1ij25r\overlay\Lib\site-packages\pkg_resources\__init__.py", line 2172, in register_finder(pkgutil.ImpImporter, find_on_path) ^^^^^^^^^^^^^^^^^^^ AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. installing requirements Looking in indexes: https://download.pytorch.org/whl/cu121 Requirement already satisfied: torch==2.2.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (2.2.0+cu121) Requirement already satisfied: torchvision in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (0.17.0+cu121) Collecting torchvision Using cached https://download.pytorch.org/whl/cu121/torchvision-0.18.1%2Bcu121-cp312-cp312-win_amd64.whl (5.7 MB) Requirement already satisfied: torchaudio in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (2.2.0+cu121) Collecting torchaudio Using cached https://download.pytorch.org/whl/cu121/torchaudio-2.3.1%2Bcu121-cp312-cp312-win_amd64.whl (4.1 MB) Requirement already satisfied: filelock in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from torch==2.2.0) (3.15.4) Requirement already satisfied: typing-extensions>=4.8.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from torch==2.2.0) (4.12.2) Requirement already satisfied: sympy in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from torch==2.2.0) (1.12) Requirement already satisfied: networkx in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from torch==2.2.0) (3.2.1) Requirement already satisfied: jinja2 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from torch==2.2.0) (3.1.3) Requirement already satisfied: fsspec in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from torch==2.2.0) (2024.6.1) Requirement already satisfied: numpy in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from torchvision) (1.26.4) INFO: pip is looking at multiple versions of torchvision to determine which version is compatible with other requirements. This could take a while. Collecting torchvision Using cached https://download.pytorch.org/whl/cu121/torchvision-0.18.0%2Bcu121-cp312-cp312-win_amd64.whl (5.7 MB) Using cached https://download.pytorch.org/whl/cu121/torchvision-0.17.2%2Bcu121-cp312-cp312-win_amd64.whl (5.7 MB) Using cached https://download.pytorch.org/whl/cu121/torchvision-0.17.1%2Bcu121-cp312-cp312-win_amd64.whl (5.7 MB) Requirement already satisfied: requests in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from torchvision) (2.32.3) Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from torchvision) (10.4.0) INFO: pip is looking at multiple versions of torchaudio to determine which version is compatible with other requirements. This could take a while. Collecting torchaudio Using cached https://download.pytorch.org/whl/cu121/torchaudio-2.3.0%2Bcu121-cp312-cp312-win_amd64.whl (4.1 MB) Using cached https://download.pytorch.org/whl/cu121/torchaudio-2.2.2%2Bcu121-cp312-cp312-win_amd64.whl (4.0 MB) Using cached https://download.pytorch.org/whl/cu121/torchaudio-2.2.1%2Bcu121-cp312-cp312-win_amd64.whl (4.0 MB) Requirement already satisfied: MarkupSafe>=2.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from jinja2->torch==2.2.0) (2.1.5) Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from requests->torchvision) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from requests->torchvision) (3.7) Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from requests->torchvision) (2.2.2) Requirement already satisfied: certifi>=2017.4.17 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from requests->torchvision) (2024.6.2) Requirement already satisfied: mpmath>=0.19 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from sympy->torch==2.2.0) (1.3.0) ERROR: triton-2.1.0-cp310-cp310-win_amd64.whl is not a supported wheel on this platform. Collecting xformers==0.0.24 Using cached xformers-0.0.24.tar.gz (3.9 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [20 lines of output] Traceback (most recent call last): File "C:\Users\MSI-NB\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in main() File "C:\Users\MSI-NB\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\MSI-NB\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\MSI-NB\AppData\Local\Temp\pip-build-env-pj8wheej\overlay\Lib\site-packages\setuptools\build_meta.py", line 327, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\MSI-NB\AppData\Local\Temp\pip-build-env-pj8wheej\overlay\Lib\site-packages\setuptools\build_meta.py", line 297, in _get_build_requires self.run_setup() File "C:\Users\MSI-NB\AppData\Local\Temp\pip-build-env-pj8wheej\overlay\Lib\site-packages\setuptools\build_meta.py", line 497, in run_setup super().run_setup(setup_script=setup_script) File "C:\Users\MSI-NB\AppData\Local\Temp\pip-build-env-pj8wheej\overlay\Lib\site-packages\setuptools\build_meta.py", line 313, in run_setup exec(code, locals()) File "", line 23, in ModuleNotFoundError: No module named 'torch' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. Requirement already satisfied: bitsandbytes==0.43.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (0.43.0) Requirement already satisfied: torch in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from bitsandbytes==0.43.0) (2.2.0+cu121) Requirement already satisfied: numpy in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from bitsandbytes==0.43.0) (1.26.4) Requirement already satisfied: filelock in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from torch->bitsandbytes==0.43.0) (3.15.4) Requirement already satisfied: typing-extensions>=4.8.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from torch->bitsandbytes==0.43.0) (4.12.2) Requirement already satisfied: sympy in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from torch->bitsandbytes==0.43.0) (1.12) Requirement already satisfied: networkx in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from torch->bitsandbytes==0.43.0) (3.2.1) Requirement already satisfied: jinja2 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from torch->bitsandbytes==0.43.0) (3.1.3) Requirement already satisfied: fsspec in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from torch->bitsandbytes==0.43.0) (2024.6.1) Requirement already satisfied: MarkupSafe>=2.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from jinja2->torch->bitsandbytes==0.43.0) (2.1.5) Requirement already satisfied: mpmath>=0.19 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from sympy->torch->bitsandbytes==0.43.0) (1.3.0) Requirement already satisfied: gradio in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (4.38.1) Requirement already satisfied: aiofiles<24.0,>=22.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (23.2.1) Requirement already satisfied: altair<6.0,>=5.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (5.3.0) Requirement already satisfied: fastapi in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (0.111.1) Requirement already satisfied: ffmpy in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (0.3.2) Requirement already satisfied: gradio-client==1.1.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (1.1.0) Requirement already satisfied: httpx>=0.24.1 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (0.27.0) Requirement already satisfied: huggingface-hub>=0.19.3 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (0.23.4) Requirement already satisfied: importlib-resources<7.0,>=1.3 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (6.4.0) Requirement already satisfied: jinja2<4.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (3.1.3) Requirement already satisfied: markupsafe~=2.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (2.1.5) Requirement already satisfied: matplotlib~=3.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (3.9.1) Requirement already satisfied: numpy<3.0,>=1.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (1.26.4) Requirement already satisfied: orjson~=3.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (3.10.6) Requirement already satisfied: packaging in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (24.1) Requirement already satisfied: pandas<3.0,>=1.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (2.2.2) Requirement already satisfied: pillow<11.0,>=8.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (10.4.0) Requirement already satisfied: pydantic>=2.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (2.8.2) Requirement already satisfied: pydub in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (0.25.1) Requirement already satisfied: python-multipart>=0.0.9 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (0.0.9) Requirement already satisfied: pyyaml<7.0,>=5.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (6.0.1) Requirement already satisfied: ruff>=0.2.2 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (0.5.2) Requirement already satisfied: semantic-version~=2.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (2.10.0) Requirement already satisfied: tomlkit==0.12.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (0.12.0) Requirement already satisfied: typer<1.0,>=0.12 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (0.12.3) Requirement already satisfied: typing-extensions~=4.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (4.12.2) Requirement already satisfied: urllib3~=2.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (2.2.2) Requirement already satisfied: uvicorn>=0.14.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio) (0.30.1) Requirement already satisfied: fsspec in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio-client==1.1.0->gradio) (2024.6.1) Requirement already satisfied: websockets<12.0,>=10.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from gradio-client==1.1.0->gradio) (11.0.3) Requirement already satisfied: jsonschema>=3.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from altair<6.0,>=5.0->gradio) (4.23.0) Requirement already satisfied: toolz in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from altair<6.0,>=5.0->gradio) (0.12.1) Requirement already satisfied: anyio in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from httpx>=0.24.1->gradio) (4.4.0) Requirement already satisfied: certifi in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from httpx>=0.24.1->gradio) (2024.6.2) Requirement already satisfied: httpcore==1.* in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from httpx>=0.24.1->gradio) (1.0.5) Requirement already satisfied: idna in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from httpx>=0.24.1->gradio) (3.7) Requirement already satisfied: sniffio in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from httpx>=0.24.1->gradio) (1.3.1) Requirement already satisfied: h11<0.15,>=0.13 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from httpcore==1.*->httpx>=0.24.1->gradio) (0.14.0) Requirement already satisfied: filelock in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from huggingface-hub>=0.19.3->gradio) (3.15.4) Requirement already satisfied: requests in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from huggingface-hub>=0.19.3->gradio) (2.32.3) Requirement already satisfied: tqdm>=4.42.1 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from huggingface-hub>=0.19.3->gradio) (4.66.4) Requirement already satisfied: contourpy>=1.0.1 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from matplotlib~=3.0->gradio) (1.2.1) Requirement already satisfied: cycler>=0.10 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from matplotlib~=3.0->gradio) (0.12.1) Requirement already satisfied: fonttools>=4.22.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from matplotlib~=3.0->gradio) (4.53.1) Requirement already satisfied: kiwisolver>=1.3.1 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from matplotlib~=3.0->gradio) (1.4.5) Requirement already satisfied: pyparsing>=2.3.1 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from matplotlib~=3.0->gradio) (3.1.2) Requirement already satisfied: python-dateutil>=2.7 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from matplotlib~=3.0->gradio) (2.9.0.post0) Requirement already satisfied: pytz>=2020.1 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from pandas<3.0,>=1.0->gradio) (2024.1) Requirement already satisfied: tzdata>=2022.7 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from pandas<3.0,>=1.0->gradio) (2024.1) Requirement already satisfied: annotated-types>=0.4.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from pydantic>=2.0->gradio) (0.7.0) Requirement already satisfied: pydantic-core==2.20.1 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from pydantic>=2.0->gradio) (2.20.1) Requirement already satisfied: click>=8.0.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from typer<1.0,>=0.12->gradio) (8.1.7) Requirement already satisfied: shellingham>=1.3.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from typer<1.0,>=0.12->gradio) (1.5.4) Requirement already satisfied: rich>=10.11.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from typer<1.0,>=0.12->gradio) (13.7.1) Requirement already satisfied: starlette<0.38.0,>=0.37.2 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from fastapi->gradio) (0.37.2) Requirement already satisfied: fastapi-cli>=0.0.2 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from fastapi->gradio) (0.0.4) Requirement already satisfied: email_validator>=2.0.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from fastapi->gradio) (2.2.0) Requirement already satisfied: colorama in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from click>=8.0.0->typer<1.0,>=0.12->gradio) (0.4.6) Requirement already satisfied: dnspython>=2.0.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from email_validator>=2.0.0->fastapi->gradio) (2.6.1) Requirement already satisfied: attrs>=22.2.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=5.0->gradio) (23.2.0) Requirement already satisfied: jsonschema-specifications>=2023.03.6 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=5.0->gradio) (2023.12.1) Requirement already satisfied: referencing>=0.28.4 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=5.0->gradio) (0.35.1) Requirement already satisfied: rpds-py>=0.7.1 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=5.0->gradio) (0.19.0) Requirement already satisfied: six>=1.5 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio) (1.16.0) Requirement already satisfied: markdown-it-py>=2.2.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio) (3.0.0) Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio) (2.18.0) Requirement already satisfied: httptools>=0.5.0 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from uvicorn[standard]>=0.12.0->fastapi->gradio) (0.6.1) Requirement already satisfied: python-dotenv>=0.13 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from uvicorn[standard]>=0.12.0->fastapi->gradio) (1.0.1) Requirement already satisfied: watchfiles>=0.13 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from uvicorn[standard]>=0.12.0->fastapi->gradio) (0.22.0) Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from requests->huggingface-hub>=0.19.3->gradio) (3.3.2) Requirement already satisfied: mdurl~=0.1 in c:\users\msi-nb\appdata\local\programs\python\python312\lib\site-packages (from markdown-it-py>=2.2.0->rich>=10.11.0->typer<1.0,>=0.12->gradio) (0.1.2) Virtual environment made and installed properly Yardımcı olursan sevinirim.

anseltrust

Teşekkür ederim, tüm problem python sürümünden ibaretmiş.

SECourses

evet python sürümü çok önemli

Việt Shin

Hello, i started app but get timeout no output Pls check how to resove. I dont see config.json file and where downloaded model locate Thank The config attributes {'decay': 0.9999, 'inv_gamma': 1.0, 'min_decay': 0.0, 'optimization_step': 37000, 'power': 0.6666666666666666, 'update_after_step': 0, 'use_ema_warmup': False} were passed to UNet2DConditionModel, but are not expected and will be ignored. Please verify your config.json configuration file. Press any key to continue . . .

SECourses

i need full installation logs and error logs. please send them to me as email : monstermmorpg@gmail.com

Việt Shin

Thanks for response. I install without error, do i have press install to get logs. After get log i will send you. I have another question : if i finishs down model to .cache folder, can i move to other folder? how can i change setting for path of model?

SECourses

how to get install logs shown here : https://youtu.be/FPtpNrmuwXk 5:02 How to verify installation was completed accurately and how to save installation logs how to change hugging face cache folder : https://youtu.be/ZiUXf_idIR4?si=n6sqgKP6uPKiDzWh 3:59 Where Hugging Face models are downloaded by default and how to change this default cache folder 5:44 How to return back to using default Hugging Face cache folder

Mattheus Chediak (edited)

Comment edits

2026-09-10 11:00 hi, i didnt find the linux/gradio/runpod version tho, can someone give me some support =)
2024-07-26 11:45

SECourses

dowload and extract zip file. inside it you will find

SECourses

inside virtual_try_on_v11.zip attachment file

roshan

getting error, PLEASE HELP Modify this file and add --share if you want Gradio share Options VRAM usages are as below. Fastest is FP16 and no cpu offloading (1+1) 1+1 = 16.5 GB, 1+2 = 12 GB , 1+3 = 10 GB, 2+1 = 15 GB, 2+2 = 10.3 GB , 2+3 = 8.2 GB Please select an option: 1. Default - Faster but higher VRAM 2. Enable CPU Offloading - Reduces VRAM but slightly slower same quality Enter your choice (1-2): 1 Please select an option: 1. Default Precision - Higher quality higher VRAM 2. FP8 Precision - Slightly lower quality medium VRAM 3. FP4 Precision - More slightly lower quality lower VRAM Enter your choice (1-3): 1 The config attributes {'decay': 0.9999, 'inv_gamma': 1.0, 'min_decay': 0.0, 'optimization_step': 37000, 'power': 0.6666666666666666, 'update_after_step': 0, 'use_ema_warmup': False} were passed to UNet2DConditionModel, but are not expected and will be ignored. Please verify your config.json configuration file. vae/config.json: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 659/659 [00:00<00:00, 3.53MB/s] diffusion_pytorch_model.safetensors: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████| 335M/335M [00:11<00:00, 29.0MB/s] Some weights of the model checkpoint were not used when initializing UNet2DConditionModel: ['add_embedding.linear_1.bias, add_embedding.linear_1.weight, add_embedding.linear_2.bias, add_embedding.linear_2.weight'] Traceback (most recent call last): File "/home/roshan.warrier/llm-development/virtual-tryon/idmvton/IDM-VTON/app_VTON.py", line 136, in openpose_model = OpenPose(0) File "/home/roshan.warrier/llm-development/virtual-tryon/idmvton/IDM-VTON/preprocess/openpose/run_openpose.py", line 33, in __init__ self.preprocessor = OpenposeDetector() File "/home/roshan.warrier/llm-development/virtual-tryon/idmvton/IDM-VTON/preprocess/openpose/annotator/openpose/__init__.py", line 63, in __init__ self.body_estimation = Body(body_modelpath) File "/home/roshan.warrier/llm-development/virtual-tryon/idmvton/IDM-VTON/preprocess/openpose/annotator/openpose/body.py", line 26, in __init__ model_dict = util.transfer(self.model, torch.load(model_path)) File "/home/roshan.warrier/llm-development/virtual-tryon/idmvton/IDM-VTON/venv/lib/python3.10/site-packages/torch/serialization.py", line 1040, in load return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args) File "/home/roshan.warrier/llm-development/virtual-tryon/idmvton/IDM-VTON/venv/lib/python3.10/site-packages/torch/serialization.py", line 1258, in _legacy_load magic_number = pickle_module.load(f, **pickle_load_args) _pickle.UnpicklingError: invalid load key, 'v'.

SECourses

hello. this error indicates your model downloading were failed during initial install. also you installed this on your local pc linux pc?

pis (edited)

Comment edits

2026-09-10 11:00 Hello, I tried to use the notebook in Kaggle but several errors appear when executing the cells, apparently it is not updated, could you please check the notebook, I would appreciate it
2024-08-06 02:52

SECourses

testing right now will let you know

SECourses

you were right. i just updated the zip file download latest one and use thank you

SECourses

Hello looks like installation had issue. I will try and fix and let you know hopefully if broken. Sometimes pods can be broken as well.

Amna Khawaja

hi i wanted to ask whether v12 includes both tops and bottoms options ? i am currenlty in installation process

SECourses

it is latest version currently yes

vijay kumaran

Hello - Getting the following error. Please help ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/Documents/MyTP/easy-diffusion/installer_files/env/lib/python3.8/sitepackages/huggingface_hub/init.py)

SECourses

hello. this was because of huggingface_hub. i just updated the requirements. please reinstall it should fix it. you can delete venv and reinstall or just make a fresh reinstall

Лариса Петрова

Please select an option: 1. Default - Faster but higher VRAM 2. Enable CPU Offloading - Reduces VRAM but slightly slower same quality Enter your choice (1-2): 2 Please select an option: 1. Default Precision - Higher quality higher VRAM 2. FP8 Precision - Slightly lower quality medium VRAM 3. FP4 Precision - More slightly lower quality lower VRAM Enter your choice (1-3): 2 Traceback (most recent call last): File "E:\CLOTH\IDM-VTON\app_VTON.py", line 1, in import gradio as gr File "E:\CLOTH\IDM-VTON\venv\lib\site-packages\gradio\__init__.py", line 3, in import gradio._simple_templates File "E:\CLOTH\IDM-VTON\venv\lib\site-packages\gradio\_simple_templates\__init__.py", line 1, in from .simpledropdown import SimpleDropdown File "E:\CLOTH\IDM-VTON\venv\lib\site-packages\gradio\_simple_templates\simpledropdown.py", line 7, in from gradio.components.base import Component, FormComponent File "E:\CLOTH\IDM-VTON\venv\lib\site-packages\gradio\components\__init__.py", line 1, in from gradio.components.annotated_image import AnnotatedImage File "E:\CLOTH\IDM-VTON\venv\lib\site-packages\gradio\components\annotated_image.py", line 14, in from gradio import processing_utils, utils File "E:\CLOTH\IDM-VTON\venv\lib\site-packages\gradio\processing_utils.py", line 30, in from gradio import utils, wasm_utils File "E:\CLOTH\IDM-VTON\venv\lib\site-packages\gradio\utils.py", line 57, in import orjson File "E:\CLOTH\IDM-VTON\venv\lib\site-packages\orjson\__init__.py", line 3, in from .orjson import * ModuleNotFoundError: No module named 'orjson.orjson' Press any key to continue . . .

Лариса Петрова

It didn't work out. File "E:\CLOTH\IDM-VTON\venv\lib\site-packages\diffusers\utils\hub_utils.py", line 353, in _get_model_file raise EnvironmentError( OSError: Can't load the model for 'yisol/IDM-VTON'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'yisol/IDM-VTON' is the correct path to a directory containing a file named diffusion_pytorch_model.bin

SECourses

sadly i don't know how can it be done or can be done at all. also masked image shouldnt add any additional timing you mean like calculation of some other perhaps embeddings etc?

BigVI

Hi Dr. Furkan, thank you for this, it is working well, except for the masking interface. When I load a 768x1024px image, the masking interface disappears and the auto-masking isn't great, usually it will mask too much. Can this be fixed in a new version?

SECourses

I agree with that. IDM vton working on next version could be fixed perhaps

BigVI

I'm not opposed to drawing my own mask, but the masking tool disappears after I select an image that's 768x1024px, on 1:1 images it does show the masking tool below the image, is there a way to edit the code and extend the iframe so the masking tool stays visible?

SECourses

i am not really expert of this but can you send me example images of how it is now and how it should be? i will ask gradio team

vijay kumaran

Do you have any material for retraining the IDM-VTON?

SECourses

ok so the masking tool bar has to be 1024x768 right? i think i can make it will test now

BigVI

Yes, I think if the frame is extended vertically beyond 1024px, like 1280px then it will show

BigVI

Thank you so much for spending time on this, let's hope someone fixes it in a future update

SECourses

you are welcome i am waiting answer

K. H.

hi, thank you so much for your work! Is there any way to import a mask from an editor like photoshop?

SECourses

sadly i dont know atm but i may check later

Alexander Pereira

Hi Furkan, this is great, thanks! One issue I am experiencing with Gradio though, is that when I upload my 'human' image, it covers the masking tools interface entirely. I am using Chrome Version 131.0.6778.69 (Official Build) (64-bit). This issue remains when I zoom in or out with the browser. My images are prepared to be 768x1024. I'm not sure what I can do to be able to use manual masking due to this issue. Do you have any advice for me to resolve this? https://videoshare.nextlevelbros.com/conversations/1e90a54b-6b45-5e98-833c-484ad04b1d40

SECourses

true i have reported this issue . let me check if fixed or not so i can apply

SECourses

just fixed for you please use : Windows_Update.bat

Alexander Pereira

There are no words to express how awesome you are ✊ Many thanks for the immediate fix🙏

SECourses

you are welcome. actually i wanted to auto crop into 768x1024 but it had failed in past :D

NP

SECourses

sadly to make amd work you need extra stuff and i dont know what since i dont own amd gpu. but i have installers for cloud i recommend massed compute

SECourses

please check the authors github repository but as long as you dont provide as SaaS i dont think they would care

Robert Morton

Hi Furkan I am currently having this issue with VTON after following all directions accurately. The process gets stuck on transformers, is this an issue with huggingface? File "H:\AI Stuff\Virtual Try On\IDM-VTON\venv\lib\site-packages\peft\peft_model.py", line 37, in from transformers import Cache, DynamicCache, EncoderDecoderCache, PreTrainedModel ImportError: cannot import name 'EncoderDecoderCache' from 'transformers' (H:\AI Stuff\Virtual Try On\IDM-VTON\venv\lib\site-packages\transformers\__init__.py) I have reinstalled it twice but getting the same issue

SECourses

error fixed with v15. but dont install into space char having folders. install like into h:\ai_stuff\vton

Kumar sachin Singh

i am getting a lot of error while running the kaggle notebook any solution?

Arek Wawrzyniak

hi! I have this error: The config attributes {'decay': 0.9999, 'inv_gamma': 1.0, 'min_decay': 0.0, 'optimization_step': 37000, 'power': 0.6666666666666666, 'update_after_step': 0, 'use_ema_warmup': False} were passed to UNet2DConditionModel, but are not expected and will be ignored. Please verify your config.json configuration file. diffusion_pytorch_model.safetensors: 22%|███████████████▎ | 2.31G/10.3G [02:13<07:41, 17.3MB/s] Traceback (most recent call last): File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\huggingface_hub\file_download.py", line 515, in http_get hf_transfer.download( Exception: Error while removing corrupted file: Proces nie może uzyskać dostępu do pliku, ponieważ jest on używany przez inny proces. (os error 32) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\queueing.py", line 625, in process_events response = await route_utils.call_process_api( File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\route_utils.py", line 322, in call_process_api output = await app.get_blocks().process_api( File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\blocks.py", line 2051, in process_api result = await self.call_function( File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\blocks.py", line 1598, in call_function prediction = await anyio.to_thread.run_sync( # type: ignore File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2461, in run_sync_in_worker_thread return await future File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 962, in run result = context.run(func, *args) File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\utils.py", line 883, in wrapper response = f(*args, **kwargs) File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\app_VTON.py", line 85, in start_tryon UNet_Encoder = UNet2DConditionModel_ref.from_pretrained( File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\huggingface_hub\utils\_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\diffusers\models\modeling_utils.py", line 758, in from_pretrained model_file = _get_model_file( File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\huggingface_hub\utils\_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\diffusers\utils\hub_utils.py", line 308, in _get_model_file model_file = hf_hub_download( File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\huggingface_hub\utils\_deprecation.py", line 101, in inner_f return f(*args, **kwargs) File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\huggingface_hub\utils\_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\huggingface_hub\file_download.py", line 1232, in hf_hub_download return _hf_hub_download_to_cache_dir( File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\huggingface_hub\file_download.py", line 1381, in _hf_hub_download_to_cache_dir _download_to_tmp_and_move( File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\huggingface_hub\file_download.py", line 1915, in _download_to_tmp_and_move http_get( File "E:\___SECourses\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\huggingface_hub\file_download.py", line 526, in http_get raise RuntimeError( RuntimeError: An error occurred while downloading using `hf_transfer`. Consider disabling HF_HUB_ENABLE_HF_TRANSFER for better error handling. How to disable hf transfer? Thanks

SECourses

edit the bat file and remove this line : set HF_HUB_ENABLE_HF_TRANSFER=1

Suleman Ali

Hey Furkan I followed the winodows tutorial and run the code in choice of cpu offloading. the overall logs are below Modify this file and add --share if you want Gradio share Options VRAM usages are as below. Fastest is FP16 and no cpu offloading (1+1) 1+1 = 16.5 GB, 1+2 = 12 GB , 1+3 = 10 GB, 2+1 = 15 GB, 2+2 = 10.3 GB , 2+3 = 8.2 GB Please select an option: 1. Default - Faster but higher VRAM 2. Enable CPU Offloading - Reduces VRAM but slightly slower same quality Enter your choice (1-2): 2 Please select an option: 1. Default Precision - Higher quality higher VRAM 2. FP8 Precision - Slightly lower quality medium VRAM 3. FP4 Precision - More slightly lower quality lower VRAM Enter your choice (1-3): 2 INFO: Could not find files for the given pattern(s). * Running on local URL: http://127.0.0.1:7860 To create a public link, set `share=True` in `launch()`. The config attributes {'decay': 0.9999, 'inv_gamma': 1.0, 'min_decay': 0.0, 'optimization_step': 37000, 'power': 0.6666666666666666, 'update_after_step': 0, 'use_ema_warmup': False} were passed to UNet2DConditionModel, but are not expected and will be ignored. Please verify your config.json configuration file. config.json: 100%|████████████████████████████████████████████████████████████████████████████| 631/631 [00:00

SECourses

it looks like worked what is the error?

Christian Hijar

Hello Furkan. The manual mask doesn't work. Is there a way to repair?

Nam Lê Hoàng

Hi, I am trying to run the first cell and I received this error message: Cell: !yes | apt-get update --allow-releaseinfo-change !yes | apt install libgoogle-perftools-dev !git clone https://github.com/FurkanGozukara/IDM-VTON %cd IDM-VTON Error Message: After this operation, 9,822 kB of additional disk space will be used. Ign:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libunwind-dev amd64 1.3.2-2build2.13m Ign:2 http://archive.ubuntu.com/ubuntu jammy/main amd64 libgoogle-perftools-dev amd64 2.9.1-0ubuntu33m Ign:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libunwind-dev amd64 1.3.2-2build2.133m Ign:2 http://archive.ubuntu.com/ubuntu jammy/main amd64 libgoogle-perftools-dev amd64 2.9.1-0ubuntu33m Ign:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libunwind-dev amd64 1.3.2-2build2.133m Ign:2 http://archive.ubuntu.com/ubuntu jammy/main amd64 libgoogle-perftools-dev amd64 2.9.1-0ubuntu33m Err:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libunwind-dev amd64 1.3.2-2build2.133m Temporary failure resolving 'archive.ubuntu.com' Err:2 http://archive.ubuntu.com/ubuntu jammy/main amd64 libgoogle-perftools-dev amd64 2.9.1-0ubuntu33m Temporary failure resolving 'archive.ubuntu.com' E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libu/libunwind/libunwind-dev_1.3.2-2build2.1_amd64.deb Temporary failure resolving 'archive.ubuntu.com' E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/google-perftools/libgoogle-perftools-dev_2.9.1-0ubuntu3_amd64.deb Temporary failure resolving 'archive.ubuntu.com' E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? yes: standard output: Broken pipe Cloning into 'IDM-VTON'... fatal: unable to access 'https://github.com/FurkanGozukara/IDM-VTON/': Could not resolve host: github.com [Errno 2] No such file or directory: 'IDM-VTON' /kaggle/working What is the problem here ? How can I fix the problem ? Thank you!

SECourses

stop your session and start again. before doing that select T4 GPU and make internet on

Muhammad Umar Jan

hi sir Furkan i got these errors by running the "Windows_Start_VTON_app.bat" INFO: Could not find files for the given pattern(s). * Running on local URL: http://127.0.0.1:7860 ERROR: Exception in ASGI application Traceback (most recent call last): File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi result = await app( # type: ignore[func-returns-value] File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\fastapi\applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\applications.py", line 112, in __call__ await self.middleware_stack(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\middleware\errors.py", line 187, in __call__ raise exc File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\middleware\errors.py", line 165, in __call__ await self.app(scope, receive, _send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\route_utils.py", line 789, in __call__ await self.app(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 714, in __call__ await self.middleware_stack(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 734, in app await route.handle(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 288, in handle await self.app(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 73, in app response = await f(request) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\fastapi\routing.py", line 301, in app raw_response = await run_endpoint_function( File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\fastapi\routing.py", line 214, in run_endpoint_function return await run_in_threadpool(dependant.call, **values) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool return await anyio.to_thread.run_sync(func) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2470, in run_sync_in_worker_thread return await future File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 967, in run result = context.run(func, *args) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\routes.py", line 555, in main gradio_api_info = api_info(request) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\routes.py", line 585, in api_info api_info = utils.safe_deepcopy(app.get_blocks().get_api_info()) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\blocks.py", line 2932, in get_api_info python_type = client_utils.json_schema_to_python_type(info) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 931, in json_schema_to_python_type type_ = _json_schema_to_python_type(schema, schema.get("$defs")) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 985, in _json_schema_to_python_type des = [ File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 986, in f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 998, in _json_schema_to_python_type desc = " | ".join([_json_schema_to_python_type(i, defs) for i in schema[type_]]) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 998, in desc = " | ".join([_json_schema_to_python_type(i, defs) for i in schema[type_]]) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 946, in _json_schema_to_python_type return _json_schema_to_python_type(defs[schema["$ref"].split("/")[-1]], defs) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 985, in _json_schema_to_python_type des = [ File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 986, in f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 993, in _json_schema_to_python_type f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}" File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 939, in _json_schema_to_python_type type_ = get_type(schema) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 898, in get_type if "const" in schema: TypeError: argument of type 'bool' is not iterable ERROR: Exception in ASGI application Traceback (most recent call last): File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi result = await app( # type: ignore[func-returns-value] File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\fastapi\applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\applications.py", line 112, in __call__ await self.middleware_stack(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\middleware\errors.py", line 187, in __call__ raise exc File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\middleware\errors.py", line 165, in __call__ await self.app(scope, receive, _send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\route_utils.py", line 789, in __call__ await self.app(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 714, in __call__ await self.middleware_stack(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 734, in app await route.handle(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 288, in handle await self.app(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 73, in app response = await f(request) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\fastapi\routing.py", line 301, in app raw_response = await run_endpoint_function( File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\fastapi\routing.py", line 214, in run_endpoint_function return await run_in_threadpool(dependant.call, **values) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool return await anyio.to_thread.run_sync(func) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2470, in run_sync_in_worker_thread return await future File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 967, in run result = context.run(func, *args) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\routes.py", line 555, in main gradio_api_info = api_info(request) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\routes.py", line 585, in api_info api_info = utils.safe_deepcopy(app.get_blocks().get_api_info()) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\blocks.py", line 2932, in get_api_info python_type = client_utils.json_schema_to_python_type(info) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 931, in json_schema_to_python_type type_ = _json_schema_to_python_type(schema, schema.get("$defs")) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 985, in _json_schema_to_python_type des = [ File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 986, in f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 998, in _json_schema_to_python_type desc = " | ".join([_json_schema_to_python_type(i, defs) for i in schema[type_]]) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 998, in desc = " | ".join([_json_schema_to_python_type(i, defs) for i in schema[type_]]) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 946, in _json_schema_to_python_type return _json_schema_to_python_type(defs[schema["$ref"].split("/")[-1]], defs) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 985, in _json_schema_to_python_type des = [ File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 986, in f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 993, in _json_schema_to_python_type f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}" File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 939, in _json_schema_to_python_type type_ = get_type(schema) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 898, in get_type if "const" in schema: TypeError: argument of type 'bool' is not iterable ERROR: Exception in ASGI application Traceback (most recent call last): File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi result = await app( # type: ignore[func-returns-value] File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\fastapi\applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\applications.py", line 112, in __call__ await self.middleware_stack(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\middleware\errors.py", line 187, in __call__ raise exc File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\middleware\errors.py", line 165, in __call__ await self.app(scope, receive, _send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\route_utils.py", line 789, in __call__ await self.app(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 714, in __call__ await self.middleware_stack(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 734, in app await route.handle(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 288, in handle await self.app(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 73, in app response = await f(request) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\fastapi\routing.py", line 301, in app raw_response = await run_endpoint_function( File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\fastapi\routing.py", line 214, in run_endpoint_function return await run_in_threadpool(dependant.call, **values) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool return await anyio.to_thread.run_sync(func) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2470, in run_sync_in_worker_thread return await future File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 967, in run result = context.run(func, *args) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\routes.py", line 555, in main gradio_api_info = api_info(request) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\routes.py", line 585, in api_info api_info = utils.safe_deepcopy(app.get_blocks().get_api_info()) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\blocks.py", line 2932, in get_api_info python_type = client_utils.json_schema_to_python_type(info) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 931, in json_schema_to_python_type type_ = _json_schema_to_python_type(schema, schema.get("$defs")) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 985, in _json_schema_to_python_type des = [ File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 986, in f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 998, in _json_schema_to_python_type desc = " | ".join([_json_schema_to_python_type(i, defs) for i in schema[type_]]) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 998, in desc = " | ".join([_json_schema_to_python_type(i, defs) for i in schema[type_]]) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 946, in _json_schema_to_python_type return _json_schema_to_python_type(defs[schema["$ref"].split("/")[-1]], defs) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 985, in _json_schema_to_python_type des = [ File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 986, in f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 993, in _json_schema_to_python_type f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}" File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 939, in _json_schema_to_python_type type_ = get_type(schema) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 898, in get_type if "const" in schema: TypeError: argument of type 'bool' is not iterable ERROR: Exception in ASGI application Traceback (most recent call last): File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi result = await app( # type: ignore[func-returns-value] File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\fastapi\applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\applications.py", line 112, in __call__ await self.middleware_stack(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\middleware\errors.py", line 187, in __call__ raise exc File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\middleware\errors.py", line 165, in __call__ await self.app(scope, receive, _send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\route_utils.py", line 789, in __call__ await self.app(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 714, in __call__ await self.middleware_stack(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 734, in app await route.handle(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 288, in handle await self.app(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 73, in app response = await f(request) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\fastapi\routing.py", line 301, in app raw_response = await run_endpoint_function( File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\fastapi\routing.py", line 214, in run_endpoint_function return await run_in_threadpool(dependant.call, **values) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool return await anyio.to_thread.run_sync(func) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2470, in run_sync_in_worker_thread return await future File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 967, in run result = context.run(func, *args) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\routes.py", line 555, in main gradio_api_info = api_info(request) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\routes.py", line 585, in api_info api_info = utils.safe_deepcopy(app.get_blocks().get_api_info()) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\blocks.py", line 2932, in get_api_info python_type = client_utils.json_schema_to_python_type(info) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 931, in json_schema_to_python_type type_ = _json_schema_to_python_type(schema, schema.get("$defs")) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 985, in _json_schema_to_python_type des = [ File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 986, in f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 998, in _json_schema_to_python_type desc = " | ".join([_json_schema_to_python_type(i, defs) for i in schema[type_]]) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 998, in desc = " | ".join([_json_schema_to_python_type(i, defs) for i in schema[type_]]) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 946, in _json_schema_to_python_type return _json_schema_to_python_type(defs[schema["$ref"].split("/")[-1]], defs) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 985, in _json_schema_to_python_type des = [ File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 986, in f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 993, in _json_schema_to_python_type f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}" File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 939, in _json_schema_to_python_type type_ = get_type(schema) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 898, in get_type if "const" in schema: TypeError: argument of type 'bool' is not iterable ERROR: Exception in ASGI application Traceback (most recent call last): File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi result = await app( # type: ignore[func-returns-value] File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\fastapi\applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\applications.py", line 112, in __call__ await self.middleware_stack(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\middleware\errors.py", line 187, in __call__ raise exc File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\middleware\errors.py", line 165, in __call__ await self.app(scope, receive, _send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\route_utils.py", line 789, in __call__ await self.app(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 714, in __call__ await self.middleware_stack(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 734, in app await route.handle(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 288, in handle await self.app(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 73, in app response = await f(request) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\fastapi\routing.py", line 301, in app raw_response = await run_endpoint_function( File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\fastapi\routing.py", line 214, in run_endpoint_function return await run_in_threadpool(dependant.call, **values) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool return await anyio.to_thread.run_sync(func) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2470, in run_sync_in_worker_thread return await future File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 967, in run result = context.run(func, *args) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\routes.py", line 555, in main gradio_api_info = api_info(request) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\routes.py", line 585, in api_info api_info = utils.safe_deepcopy(app.get_blocks().get_api_info()) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\blocks.py", line 2932, in get_api_info python_type = client_utils.json_schema_to_python_type(info) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 931, in json_schema_to_python_type type_ = _json_schema_to_python_type(schema, schema.get("$defs")) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 985, in _json_schema_to_python_type des = [ File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 986, in f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 998, in _json_schema_to_python_type desc = " | ".join([_json_schema_to_python_type(i, defs) for i in schema[type_]]) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 998, in desc = " | ".join([_json_schema_to_python_type(i, defs) for i in schema[type_]]) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 946, in _json_schema_to_python_type return _json_schema_to_python_type(defs[schema["$ref"].split("/")[-1]], defs) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 985, in _json_schema_to_python_type des = [ File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 986, in f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 993, in _json_schema_to_python_type f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}" File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 939, in _json_schema_to_python_type type_ = get_type(schema) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 898, in get_type if "const" in schema: TypeError: argument of type 'bool' is not iterable ERROR: Exception in ASGI application Traceback (most recent call last): File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi result = await app( # type: ignore[func-returns-value] File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\fastapi\applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\applications.py", line 112, in __call__ await self.middleware_stack(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\middleware\errors.py", line 187, in __call__ raise exc File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\middleware\errors.py", line 165, in __call__ await self.app(scope, receive, _send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\route_utils.py", line 789, in __call__ await self.app(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 714, in __call__ await self.middleware_stack(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 734, in app await route.handle(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 288, in handle await self.app(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\routing.py", line 73, in app response = await f(request) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\fastapi\routing.py", line 301, in app raw_response = await run_endpoint_function( File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\fastapi\routing.py", line 214, in run_endpoint_function return await run_in_threadpool(dependant.call, **values) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\starlette\concurrency.py", line 37, in run_in_threadpool return await anyio.to_thread.run_sync(func) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2470, in run_sync_in_worker_thread return await future File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 967, in run result = context.run(func, *args) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\routes.py", line 555, in main gradio_api_info = api_info(request) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\routes.py", line 585, in api_info api_info = utils.safe_deepcopy(app.get_blocks().get_api_info()) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\blocks.py", line 2932, in get_api_info python_type = client_utils.json_schema_to_python_type(info) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 931, in json_schema_to_python_type type_ = _json_schema_to_python_type(schema, schema.get("$defs")) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 985, in _json_schema_to_python_type des = [ File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 986, in f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 998, in _json_schema_to_python_type desc = " | ".join([_json_schema_to_python_type(i, defs) for i in schema[type_]]) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 998, in desc = " | ".join([_json_schema_to_python_type(i, defs) for i in schema[type_]]) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 946, in _json_schema_to_python_type return _json_schema_to_python_type(defs[schema["$ref"].split("/")[-1]], defs) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 985, in _json_schema_to_python_type des = [ File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 986, in f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 993, in _json_schema_to_python_type f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}" File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 939, in _json_schema_to_python_type type_ = get_type(schema) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio_client\utils.py", line 898, in get_type if "const" in schema: TypeError: argument of type 'bool' is not iterable Traceback (most recent call last): File "E:\virtual_try_on_v16\IDM-VTON\app_VTON.py", line 423, in image_blocks.launch(inbrowser=True, share=args.share) File "E:\virtual_try_on_v16\IDM-VTON\venv\lib\site-packages\gradio\blocks.py", line 2627, in launch raise ValueError( ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost. Press any key to continue . . .