IDM-VTON local setup

#3
by SaiLochana - opened

Can we set this locally , if yes . i tried doing that using git repo https://github.com/yisol/IDM-VTON so i got an error like this
python3 gradio_demo/app.py
2024-05-09 12:02:35.808093: I external/local_tsl/tsl/cuda/cudart_stub.cc:32] Could not find cuda drivers on your machine, GPU will not be used.
2024-05-09 12:02:35.869747: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-05-09 12:02:37.402653: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Traceback (most recent call last):
File "/home/lenovo/Documents/hf/IDM-VTON/gradio_demo/app.py", line 11, in
from src.unet_hacked_garmnet import UNet2DConditionModel as UNet2DConditionModel_ref
File "/home/lenovo/Documents/hf/IDM-VTON/src/unet_hacked_garmnet.py", line 35, in
from diffusers.models.embeddings import (
ImportError: cannot import name 'PositionNet' from 'diffusers.models.embeddings' (/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/diffusers/models/embeddings.py)
can anyone solved this ??

use the below command (if you are implimenting on google colab) to remove above error. This error occured due to the diffusers version which was installed. I have installed the perticular version and the error was gone.

!pip uninstall diffusers
!pip install diffusers==0.25.1

Sign up or log in to comment