mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-30 11:11:15 +00:00
Update initialization.py
This commit is contained in:
@@ -1,5 +1,18 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
def initialize_forge():
|
def initialize_forge():
|
||||||
|
bad_list = ['--lowvram', '--medvram', '--medvram-sdxl']
|
||||||
|
|
||||||
|
for bad in bad_list:
|
||||||
|
if bad in sys.argv:
|
||||||
|
print(f'Arg {bad} is removed in Forge.')
|
||||||
|
print(f'Now memory management is fully automatic and you do not need any command flags.')
|
||||||
|
print(f'Please just remove this flag.')
|
||||||
|
print(f'In extreme cases, if you want to force previous lowvram/medvram behaviors, '
|
||||||
|
f'please use --always-offload-from-vram')
|
||||||
|
exit(0)
|
||||||
|
|
||||||
from ldm_patched.modules import args_parser
|
from ldm_patched.modules import args_parser
|
||||||
|
|
||||||
args_parser.args, _ = args_parser.parser.parse_known_args()
|
args_parser.args, _ = args_parser.parser.parse_known_args()
|
||||||
|
|||||||
Reference in New Issue
Block a user