muzishen / IMAGDressing

👔IMAGDressing👔: Interactive Modular Apparel Generation for Virtual Dressing. It enables customizable human image generation with flexible garment, pose, and scene control, ensuring high fidelity and garment consistency for virtual try-on.
https://imagdressing.github.io/
Apache License 2.0
1.04k stars 85 forks source link

FileNotFoundError: IMAGDressing-v1_512.pt #27

Closed llu43 closed 2 months ago

llu43 commented 3 months ago

I'm trying to use the IMAGDressing project but I'm encountering a FileNotFoundError for the file IMAGDressing-v1_512.pt. I couldn't find any information in the documentation about where to obtain this file.

Could you please provide guidance on where to download this file or how to generate it?

I also have another error: NameError: name 'LoraLoaderMixin' is not defined

Thank you!

llu43 commented 3 months ago

I found the file here: https://huggingface.co/feishen29/IMAGDressing but when I try to load it, I have this error: Traceback (most recent call last): File "/Workspace/Shared/data_science/GenAI/Nuria Llopart/IMAGDressing2/inference_IMAGdressing.py", line 154, in pipe, generator = prepare(args) ^^^^^^^^^^^^^ File "/Workspace/Shared/data_science/GenAI/Nuria Llopart/IMAGDressing2/inference_IMAGdressing.py", line 97, in prepare model_sd = torch.load(args.model_ckpt, map_location="cpu")["module"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/databricks/python/lib/python3.11/site-packages/torch/serialization.py", line 1005, in load with _open_zipfile_reader(opened_file) as opened_zipfile: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/databricks/python/lib/python3.11/site-packages/torch/serialization.py", line 457, in init super().init(torch._C.PyTorchFileReader(name_or_buffer)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

muzishen commented 3 months ago

Thank you for your attention, it seems that your downloaded weights are incomplete