enable finetuning of precise style transfer with mad scientist node
This commit is contained in:
+1
-1
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user