AttributeError: 'NoneType' object has no attribute 'pop'

#74
by lizhou1021 - opened

When I selected this model in the webui, I reported this error.

changing setting sd_model_checkpoint to mdjrny-v4.ckpt [550a5f9a4b]: AttributeError
Traceback (most recent call last):
  File "/home/lizhou/projestc/stable-diffusion-webui/modules/shared.py", line 597, in set
    self.data_labels[key].onchange()
  File "/home/lizhou/projestc/stable-diffusion-webui/modules/call_queue.py", line 15, in f
    res = func(*args, **kwargs)
  File "/home/lizhou/projestc/stable-diffusion-webui/webui.py", line 225, in <lambda>
    shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: modules.sd_models.reload_model_weights()), call=False)
  File "/home/lizhou/projestc/stable-diffusion-webui/modules/sd_models.py", line 537, in reload_model_weights
    state_dict = get_checkpoint_state_dict(checkpoint_info, timer)
  File "/home/lizhou/projestc/stable-diffusion-webui/modules/sd_models.py", line 271, in get_checkpoint_state_dict
    res = read_state_dict(checkpoint_info.filename)
  File "/home/lizhou/projestc/stable-diffusion-webui/modules/sd_models.py", line 257, in read_state_dict
    sd = get_state_dict_from_checkpoint(pl_sd)
  File "/home/lizhou/projestc/stable-diffusion-webui/modules/sd_models.py", line 206, in get_state_dict_from_checkpoint
    pl_sd = pl_sd.pop("state_dict", pl_sd)
AttributeError: 'NoneType' object has no attribute 'pop'

wait for the fix πŸ˜‘

having the same error

Sign up or log in to comment