mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-01-26 19:09:45 +00:00
Update initialization.py
This commit is contained in:
@@ -14,8 +14,12 @@ def initialize_forge():
|
|||||||
print('User disabled VRAM offload.')
|
print('User disabled VRAM offload.')
|
||||||
model_management.ALWAYS_VRAM_OFFLOAD = False
|
model_management.ALWAYS_VRAM_OFFLOAD = False
|
||||||
elif model_management.total_vram > 20 * 1024:
|
elif model_management.total_vram > 20 * 1024:
|
||||||
print('Automatically disable VRAM offload since user have more than 20GB VRAM.')
|
if args_parser.args.always_offload_from_vram:
|
||||||
model_management.ALWAYS_VRAM_OFFLOAD = False
|
print('User has more than 20GB VRAM, but forced offloading models from VRAM.')
|
||||||
|
model_management.ALWAYS_VRAM_OFFLOAD = True
|
||||||
|
else:
|
||||||
|
print('Automatically disable VRAM offload since user has more than 20GB VRAM.')
|
||||||
|
model_management.ALWAYS_VRAM_OFFLOAD = False
|
||||||
else:
|
else:
|
||||||
print('Always offload models from VRAM.')
|
print('Always offload models from VRAM.')
|
||||||
model_management.ALWAYS_VRAM_OFFLOAD = True
|
model_management.ALWAYS_VRAM_OFFLOAD = True
|
||||||
|
|||||||
Reference in New Issue
Block a user