这个模型是放在model里面出错。

#5
by bobwang2010 - opened

你好,这个模型是直接放在model目录里么?还需要加哪些文件。我是直接尝试放进model里,但是无法正常识别。我有SD1.5.WD1.2,WD1.3等等的包,都能正常识别。

To create a public link, set share=True in launch().
Loading weights [e2e75020] from E:\AI\stable-diffusion-webui\models\Stable-diffusion\Taiyi-Stable-Diffusion-1B-Chinese-v0.1.ckpt
Traceback (most recent call last):
File "E:\AI\stable-diffusion-webui\bob\lib\site-packages\gradio\routes.py", line 275, in run_predict
output = await app.blocks.process_api(
File "E:\AI\stable-diffusion-webui\bob\lib\site-packages\gradio\blocks.py", line 787, in process_api
result = await self.call_function(fn_index, inputs, iterator)
File "E:\AI\stable-diffusion-webui\bob\lib\site-packages\gradio\blocks.py", line 694, in call_function
prediction = await anyio.to_thread.run_sync(
File "E:\AI\stable-diffusion-webui\bob\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "E:\AI\stable-diffusion-webui\bob\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "E:\AI\stable-diffusion-webui\bob\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "E:\AI\stable-diffusion-webui\modules\ui.py", line 1716, in
fn=lambda value, k=k: run_settings_single(value, key=k),
File "E:\AI\stable-diffusion-webui\modules\ui.py", line 1563, in run_settings_single
opts.data_labels[key].onchange()
File "E:\AI\stable-diffusion-webui\webui.py", line 40, in f
res = func(*args, **kwargs)
File "E:\AI\stable-diffusion-webui\webui.py", line 91, in
shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: modules.sd_models.reload_model_weights(shared.sd_model)))
File "E:\AI\stable-diffusion-webui\modules\sd_models.py", line 268, in reload_model_weights
load_model_weights(sd_model, checkpoint_info)
File "E:\AI\stable-diffusion-webui\modules\sd_models.py", line 173, in load_model_weights
missing, extra = model.load_state_dict(sd, strict=False)
File "E:\AI\stable-diffusion-webui\bob\lib\site-packages\torch\nn\modules\module.py", line 1604, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for LatentDiffusion:
size mismatch for cond_stage_model.transformer.text_model.embeddings.position_ids: copying a param with shape torch.Size([1, 512]) from checkpoint, the shape in current model is torch.Size([1, 77]).

Fengshenbang-LM org

If you have problem with webui, you can refer to https://github.com/IDEA-CCNL/stable-diffusion-webui/blob/master/README.md.

Fengshenbang-LM org

请升级最新的stable diffusion webui包,然后参考

https://github.com/IDEA-CCNL/stable-diffusion-webui-taiyi-scripts/

让stable diffusion webui支持taiyi diffusion模型

wuxiaojun changed discussion status to closed

Sign up or log in to comment