T2I-Adapter-for-Diffusers icon indicating copy to clipboard operation
T2I-Adapter-for-Diffusers copied to clipboard

加载pth文件报错

Open yanchaoguo opened this issue 2 years ago • 1 comments

你好 使用下面方式读取权重时报错 adapter = T2IAdapter.from_config("../diffusers-t2i-adapter/models/config.json") adapter.load_state_dict(torch.load("../diffusers-t2i-adapter/models/t2iadapter_style_sd14v1.pth"))

RuntimeError: Error(s) in loading state_dict for T2IAdapter: Missing key(s) in state_dict: "body.0.block1.weight", "body.0.block1.bias", "body.0.block2.weight", "body.0.block2.bias", "body.1.block1.weight", "body.1.block1.bias", "body.1.block2.weight", "body.1.block2.bias", "body.2.block1.weight", "body.2.block1.bias", "body.2.block2.weight", "body.2.block2.bias", "bod

yanchaoguo avatar Apr 26 '23 04:04 yanchaoguo

请问你在哪里找到的stable_diffusion/pipeline_stable_diffusion_adapter.py文件呢?

diyiiyiii avatar Jun 25 '23 09:06 diyiiyiii