运行报错

#2
by loong - opened
pipe = HunyuanDiTPipeline.from_pretrained("/ai/dit_dis", torch_dtype=torch.float16)
pipe.to("cuda:1")

alueError: 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.

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.

Solved by "pip install git+https://github.com/huggingface/diffusers.git"

Windows ComfyUI,how to use?

Sign up or log in to comment