From 6816923653b6bec542c9a0687508688dd0df9b17 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 30 Oct 2023 16:14:46 +0800 Subject: [PATCH] Fix preset realistic load model error --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 143b0b9..f540002 100644 --- a/main.py +++ b/main.py @@ -268,6 +268,8 @@ def prepare_environments(args) -> bool: parameters.default_lora_weight = preset_json['default_lora_weight'] parameters.default_cfg_scale = preset_json['default_cfg_scale'] parameters.default_prompt_negative = preset_json['default_prompt_negative'] + if parameters.default_refiner_model_name == '': + parameters.default_refiner_model_name = 'None' import fooocusapi.worker as worker worker.task_queue.queue_size = args.queue_size