It's doesn't work, I can't choose at in SD

#6
by Hokko - opened

It's doesn't work, I can't choose at in SD.
When I choose that model, it throws an error

Which version have you tried?

I just tested the v4 checkpoint and it's working as expected, did you use the trigger prompt anime pencil concept style?

I suffered it too. it should be like this.
:when try to load this model(v4)
-----> !!!! The file is most likely corrupted !!!! <-----
You can skip this check with --disable-safe-unpickle commandline argument, but that is not going to help you.

changing setting sd_model_checkpoint to anime-pencil-diffusion-v4.ckpt: AttributeError
Traceback (most recent call last):
File "D:\tools\stable diffusion\stable-diffusion-webui\modules\shared.py", line 549, in set
self.data_labels[key].onchange()
File "D:\tools\stable diffusion\stable-diffusion-webui\modules\call_queue.py", line 15, in f
res = func(*args, **kwargs)
File "D:\tools\stable diffusion\stable-diffusion-webui\webui.py", line 120, in
shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: modules.sd_models.reload_model_weights()))
File "D:\tools\stable diffusion\stable-diffusion-webui\modules\sd_models.py", line 458, in reload_model_weights
state_dict = get_checkpoint_state_dict(checkpoint_info, timer)
File "D:\tools\stable diffusion\stable-diffusion-webui\modules\sd_models.py", line 232, in get_checkpoint_state_dict
res = read_state_dict(checkpoint_info.filename)
File "D:\tools\stable diffusion\stable-diffusion-webui\modules\sd_models.py", line 218, in read_state_dict
sd = get_state_dict_from_checkpoint(pl_sd)
File "D:\tools\stable diffusion\stable-diffusion-webui\modules\sd_models.py", line 191, in get_state_dict_from_checkpoint
pl_sd = pl_sd.pop("state_dict", pl_sd)
AttributeError: 'NoneType' object has no attribute 'pop'

Which tool are you using to load the model? Webui? If yes, do you have an updated version?

I was using the latest version of webui.
the problem was solved when I switched to .safetensor model, but I still don't know why .ckpt wouldn't work.

Weird since the safetensor is just the ckpt converted...

yehiaserag changed discussion status to closed

Sign up or log in to comment