Fixed typo 'medram' -> 'medvram' in webui.py

This commit is contained in:
hentailord85ez 2022-09-03 16:47:37 +01:00 committed by GitHub
parent 595c827bd3
commit e23a36b666
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,7 @@ shared.sd_model = load_model_from_config(sd_config, cmd_opts.ckpt)
shared.sd_model = (shared.sd_model if cmd_opts.no_half else shared.sd_model.half()) shared.sd_model = (shared.sd_model if cmd_opts.no_half else shared.sd_model.half())
if cmd_opts.lowvram or cmd_opts.medvram: if cmd_opts.lowvram or cmd_opts.medvram:
modules.lowvram.setup_for_low_vram(shared.sd_model, cmd_opts.medram) modules.lowvram.setup_for_low_vram(shared.sd_model, cmd_opts.medvram)
else: else:
shared.sd_model = shared.sd_model.to(shared.device) shared.sd_model = shared.sd_model.to(shared.device)