Stable Diffusion出现错误: AttributeError: ‘NoneType‘ object has no attribute ‘keys‘

Stable Diffusion出现错误: AttributeError: ‘NoneType’ object has no attribute ‘keys’

1 Cause of error

The style migration model of the ControlNet plug-in of Stable Diffusion needs to download a 1.6G file in the background of the launcher when it is used for the first time, but the downloaded file may be incomplete due to network reasons, and then an AttributeError will appear when we load it again : 'NoneType' object has no attribute 'keys' error.

2 solutions

Go to Stable Diffusion's ControlNet preprocessor file to delete the incomplete model file, and then reload it.
insert image description here
Delete the above pytorch_model.bin file , and then reopen the launcher to load normally.

Guess you like

Origin blog.csdn.net/weixin_57038791/article/details/130610312