stable-diffusion-webui-amdgpu icon indicating copy to clipboard operation
stable-diffusion-webui-amdgpu copied to clipboard

[Bug]: using directml, wont load models,

Open fifskank opened this issue 10 months ago • 1 comments

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?

so i did another fresh install, now it is loading but i wont load any models, it load the webui but it crashes when loading model,

Steps to reproduce the problem

double click webui-user.bat

What should have happened?

i want to use the build with --use-directml, got it to load but crashes after trying to load a model, please any help is apreciated i can handle pretty well if someone helps me out troubleshooting this, thank you.

What browsers do you use to access the UI ?

No response

Sysinfo

sysinfo-2025-01-31-03-44.json

Console logs

venv "D:\SDXL_comp\stable-diffusion-webui-amdgpu\venv\Scripts\Python.exe"
D:\SDXL_comp\stable-diffusion-webui-amdgpu\venv\lib\site-packages\timm\models\layers\__init__.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers
  warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.layers", FutureWarning)
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
D:\SDXL_comp\stable-diffusion-webui-amdgpu\venv\lib\site-packages\pytorch_lightning\utilities\distributed.py:258: LightningDeprecationWarning: `pytorch_lightning.utilities.distributed.rank_zero_only` has been deprecated in v1.8.1 and will be removed in v2.0.0. You can import it from `pytorch_lightning.utilities` instead.
  rank_zero_deprecation(
Traceback (most recent call last):
  File "D:\SDXL_comp\stable-diffusion-webui-amdgpu\launch.py", line 48, in <module>
    main()
  File "D:\SDXL_comp\stable-diffusion-webui-amdgpu\launch.py", line 29, in main
    filename = launch_utils.dump_sysinfo()
  File "D:\SDXL_comp\stable-diffusion-webui-amdgpu\modules\launch_utils.py", line 728, in dump_sysinfo
    text = sysinfo.get()
  File "D:\SDXL_comp\stable-diffusion-webui-amdgpu\modules\sysinfo.py", line 46, in get
    res = get_dict()
  File "D:\SDXL_comp\stable-diffusion-webui-amdgpu\modules\sysinfo.py", line 119, in get_dict
    "Extensions": get_extensions(enabled=True, fallback_disabled_extensions=config.get('disabled_extensions', [])),
AttributeError: 'str' object has no attribute 'get'
Press any key to continue . . .

Additional information

No response

fifskank avatar Jan 31 '25 03:01 fifskank

Hey, whats your GPU? Also i see you only have 16gb of RAM. To load SDXL models you need to increase your Windows Pagefile. Set it to Custom for C and set 16000min and 24000max as values. Make sure its disabled for any other drive. Then restart the PC and try again.

CS1o avatar Feb 13 '25 19:02 CS1o