enable finetuning of precise style transfer with mad scientist node

This commit is contained in:
cubiq
2024-06-23 18:22:48 +02:00
parent 8049d7f8d3
commit 2ff4fc4820
+1 -1
View File
@@ -251,7 +251,7 @@ def ipadapter_execute(model,
# special weight types
if layer_weights is not None and layer_weights != '':
weight = { int(k): float(v)*weight for k, v in [x.split(":") for x in layer_weights.split(",")] }
weight_type = "linear"
weight_type = weight_type if weight_type == "style transfer precise" else "linear"
elif weight_type == "style transfer":
weight = { 6:weight } if is_sdxl else { 0:weight, 1:weight, 2:weight, 3:weight, 9:weight, 10:weight, 11:weight, 12:weight, 13:weight, 14:weight, 15:weight }
elif weight_type == "composition":