mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
Fix bug when the weight is exactly one.
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
|||||||
version = '2.1.817'
|
version = '2.1.818'
|
||||||
|
|||||||
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
import math
|
import math
|
||||||
|
import numbers
|
||||||
import args_manager
|
import args_manager
|
||||||
import modules.flags
|
import modules.flags
|
||||||
import modules.sdxl_styles
|
import modules.sdxl_styles
|
||||||
@@ -162,7 +163,7 @@ default_refiner_switch = get_config_item_or_set_default(
|
|||||||
default_loras = get_config_item_or_set_default(
|
default_loras = get_config_item_or_set_default(
|
||||||
key='default_loras',
|
key='default_loras',
|
||||||
default_value=[['sd_xl_offset_example-lora_1.0.safetensors', 0.1]],
|
default_value=[['sd_xl_offset_example-lora_1.0.safetensors', 0.1]],
|
||||||
validator=lambda x: isinstance(x, list) and all(len(y) == 2 and isinstance(y[0], str) and isinstance(y[1], float) for y in x)
|
validator=lambda x: isinstance(x, list) and all(len(y) == 2 and isinstance(y[0], str) and isinstance(y[1], numbers.Number) for y in x)
|
||||||
)
|
)
|
||||||
default_cfg_scale = get_config_item_or_set_default(
|
default_cfg_scale = get_config_item_or_set_default(
|
||||||
key='default_cfg_scale',
|
key='default_cfg_scale',
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# 2.1.818
|
||||||
|
|
||||||
|
* Fix preset lora failed to load when the weight is exactly one.
|
||||||
|
|
||||||
# 2.1.817
|
# 2.1.817
|
||||||
|
|
||||||
* support "--theme dark" and "--theme light".
|
* support "--theme dark" and "--theme light".
|
||||||
|
|||||||
Reference in New Issue
Block a user