Tencent / HunyuanDiT

Hunyuan-DiT : A Powerful Multi-Resolution Diffusion Transformer with Fine-Grained Chinese Understanding
https://dit.hunyuan.tencent.com/
Other
3.25k stars 279 forks source link

diffusers run Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled error #144

Open lonngxiang opened 2 months ago

lonngxiang commented 2 months ago

ValueError: Cannot load <class 'diffusers.models.transformers.hunyuan_transformer_2d.HunyuanDiT2DModel'> from /ai/dit_dis/transformer because the following keys are missing: time_extra_emb.style_embedder.weight. Please make sure to pass low_cpu_mem_usage=False and device_map=None if you want to randomly initialize those weights or else make sure your checkpoint file is correct.

lonngxiang commented 2 months ago

image

neonhuang commented 2 months ago

我也遇到一样的问题

lonngxiang commented 1 month ago

期待官方回复解决

jonathanyin12 commented 1 month ago

Ran into this issue, solved by using the latest version of diffusers (0.30.0.dev0)

Can either do

git clone https://github.com/huggingface/diffusers
cd diffusers
python3 setup.py install

or use a pip installation pip install diffusers@git+https://github.com/huggingface/diffusers

lonngxiang commented 1 month ago

Ran into this issue, solved by using the latest version of diffusers (0.30.0.dev0)

Can either do

git clone https://github.com/huggingface/diffusers
cd diffusers
python3 setup.py install

or use a pip installation pip install diffusers@git+https://github.com/huggingface/diffusers

可以运行,就是占用显存运行大概需要15G上下