Closed nitinmukesh closed 7 months ago
Sorry, needed to download the models
您好,我也遇到这个相同问题了,想问下在哪里下载模型呀?
您好,我也遇到相同的问题,请问您是咋样解决的啊?
It looks like the sha1 checksum is not the same
For who has same problem; download all the models from OOTDiffusion.
added) densepose model came from vid2densepose
@samsara-ku I downloaded the models from the location you've provided but still get the same error:
(idm) root@ubuntu:/home/IDM-VTON# python gradio_demo/app.py
/root/miniconda3/envs/idm/lib/python3.10/site-packages/huggingface_hub/file_download.py:1150: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
warnings.warn(
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/IDM-VTON/gradio_demo/app.py", line 95, in <module>
parsing_model = Parsing(0)
File "/home/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 "/root/miniconda3/envs/idm/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 "/root/miniconda3/envs/idm/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/IDM-VTON/ckpt/humanparsing/parsing_atr.onnx failed:Protobuf parsing failed.
Here is the file tree at /ckpt
:
.
├── densepose
│ └── model_final_162be9.pkl
├── humanparsing
│ ├── exp-schp-201908261155-lip.pth
│ ├── exp-schp-201908301523-atr.pth
│ ├── parsing_atr.onnx
│ └── parsing_lip.onnx
├── image_encoder
├── ip_adapter
└── openpose
└── ckpts
└── body_pose_model.pth
And here are the sha256 sums:
02aead67b765229259f8309e19c45e7e3994bc36122001032c12160e0be7d43a ./humanparsing/exp-schp-201908301523-atr.pth
49b2acae17dd1fffcfe4c8c7689b0cfd7ae7d73460219da68005f0d0807b6499 ./humanparsing/exp-schp-201908261155-lip.pth
b8a7382001b16e453bad95ca9dbc68ae8f2b839b304cf90eaf5c27fbdb4dae91 ./densepose/model_final_162be9.pkl
d14e9b77d55c87dfdb4c3ea0d6fc05be2d9defc49030dc86aded06abcb855653 ./openpose/ckpts/body_pose_model.pth
e953475b1378e1d0566f8ad8de20077ce8610ae23fb2b5f8bfe57104aca8e911 ./openpose/.DS_Store
ee89ec53434fcf4c7cb189ff1588f391b8958cda75090e29b330a9e1411be89c ./humanparsing/parsing_atr.onnx
fb71093030b61205347b712f82ace42ede5cd4a006a737fe92f0f6b06e23984d ./humanparsing/parsing_lip.onnx
@NatanFreeman Sorry for late replying due to our national holiday.
First, my current working directory is little bit different with you. (some files are missing)
.
├── densepose
│ └── model_final_162be9.pkl
├── humanparsing
│ ├── parsing_atr.onnx
│ └── parsing_lip.onnx
├── image_encoder
├── ip_adapter
└── openpose
└── ckpts
└── body_pose_model.pth
Here is my sha256 sums:
b8a7382001b16e453bad95ca9dbc68ae8f2b839b304cf90eaf5c27fbdb4dae91 ./model_final_162be9.pkl
25a948c16078b0f08e236bda51a385d855ef4c153598947c28c0d47ed94bb746 ./body_pose_model.pth
04c7d1d070d0e0ae943d86b18cb5aaaea9e278d97462e9cfb270cbbe4cd977f4 ./parsing_atr.onnx
8436e1dae96e2601c373d1ace29c8f0978b16357d9038c17a8ba756cca376dbc ./parsing_lip.onnx
It is clearly different with your and my body_pose_model.pth
, parsing_atr.onnx
, and parsing_lip.onnx
sha256sum.
ADDED) I tried to re-download all the checkpoints in the above link to check about sha256sum, and I cannot find any problem with that. Could you try again?
I tried again and got the same error:
/root/miniconda3/envs/idm/lib/python3.10/site-packages/huggingface_hub/file_download.py:1150: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
warnings.warn(
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/IDM-VTON/gradio_demo/app.py", line 95, in <module>
parsing_model = Parsing(0)
File "/home/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 "/root/miniconda3/envs/idm/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 "/root/miniconda3/envs/idm/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/IDM-VTON/ckpt/humanparsing/parsing_atr.onnx failed:Protobuf parsing failed.
I also tried removing the extra files but it made no difference. I am running this on Ubuntu WSL2 and I have an NVIDIA GPU. Are there any log files or additional information which may be usefull?
I'm already told you that there is difference between sha256sum your and mine. Did you download files from below link, right?
parsing_atr.onnx: https://huggingface.co/levihsu/OOTDiffusion/resolve/main/checkpoints/humanparsing/parsing_atr.onnx?download=true parsing_lip.onnx: https://huggingface.co/levihsu/OOTDiffusion/resolve/main/checkpoints/humanparsing/parsing_lip.onnx?download=true body_pose_model.pth: https://huggingface.co/levihsu/OOTDiffusion/resolve/main/checkpoints/openpose/ckpts/body_pose_model.pth?download=true
@samsara-ku downloading the weights from those links fixed that issue. Thank you for your patience!
Any suggestions please.
I noticed it is only using RAM and not VRAM, not sure why?
(venv) C:\tut\IDM-VTON>pip list