Skip to content

[Bug]: AttributeError: 'NoneType' object has no attribute 'lowvram' #15584

@mertayd0

Description

@mertayd0

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

Can't select a model.

Steps to reproduce the problem

Install stable-diffusion
Install model to stable-diffusion-webui-master\models
Run webui-user.bat to start stable-diffusion.
switch models.
Bug.

What should have happened?

I should able to select a model.

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

sysinfo-2024-04-21-12-02.json

Console logs

Stable diffusion model failed to load changing setting sd_model_checkpoint to ohwxRVB2.ckpt: AttributeError Traceback (most recent call last): File "D:\Stable Diffusion\stable-diffusion-webui\modules\options.py", line 165, in set option.onchange() File "D:\Stable Diffusion\stable-diffusion-webui\modules\call_queue.py", line 13, in f res = func(*args, **kwargs) File "D:\Stable Diffusion\stable-diffusion-webui\modules\initialize_util.py", line 181, in <lambda> shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: sd_models.reload_model_weights()), call=False) File "D:\Stable Diffusion\stable-diffusion-webui\modules\sd_models.py", line 860, in reload_model_weights sd_model = reuse_model_from_already_loaded(sd_model, checkpoint_info, timer) File "D:\Stable Diffusion\stable-diffusion-webui\modules\sd_models.py", line 793, in reuse_model_from_already_loaded send_model_to_cpu(sd_model) File "D:\Stable Diffusion\stable-diffusion-webui\modules\sd_models.py", line 662, in send_model_to_cpu if m.lowvram: AttributeError: 'NoneType' object has no attribute 'lowvram'

Additional information

I re-installed the windows and webui but keep the old models, extensions in another disc. After re-installing the webui with no problem, I just copy the every single old models and extensions into the new folder. Now I am having an issue with selecting a model. Anyone have an idea to fix it? I recently upgrade my GPU from RTX 3060 to RTX 4060 ti and installed the drivers, cuda, python, git. (I tried to deactivate the extensions and installed new model but it still occurs.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-reportReport of a bug, yet to be confirmed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions