Fix low vram mode issues (#1295)

- add ondemand back to img2img
- workaround memory leak for batch count
This commit is contained in:
jinchen62
2023-04-11 17:59:09 -07:00
committed by GitHub
parent f17915bedc
commit 428cfe8dae
6 changed files with 19 additions and 9 deletions

View File

@@ -32,11 +32,6 @@ def set_sd_status(value):
_sd_obj.status = value
def set_sd_ondemand(value):
global _sd_obj
_sd_obj.ondemand = value
def set_cfg_obj(value):
global _config_obj
_config_obj = value