Add remaining spatial split settings
This commit is contained in:
@@ -475,10 +475,16 @@ class H3LatentUpscaleParams:
|
||||
"tooltip": "Which tile wins the overlap band when stitching the spatial batches back together."}),
|
||||
"overlap_blend": (["linear", "smoothstep", "overwrite", "midpoint"], {"default": "linear",
|
||||
"tooltip": "How overlap bands are blended when the spatial batches are stitched back together."}),
|
||||
"chunk_length": ("INT", {"default": 136, "min": 17, "max": 100000, "step": 17,
|
||||
"tooltip": "Reserved for upstream split compatibility. 136 matches the original chunk-length default."}),
|
||||
"resize_conditioning": ("BOOLEAN", {"default": False,
|
||||
"tooltip": "Reserved for upstream split compatibility. Leave OFF unless you need the original fallback behavior."}),
|
||||
"anchor_strength": ("FLOAT", {"default": 0.999, "min": 0.0, "max": 1.0, "step": 0.01,
|
||||
"tooltip": "Reserved for upstream split compatibility. 0.999 matches the original anchor default."}),
|
||||
}
|
||||
}
|
||||
|
||||
def build(self, mode, model_name, method, width, height, device, precision, sampler_name, scheduler, steps, denoise, megapixels, tile_width, tile_height, overlap, fade_width, overlap_mode, overlap_blend):
|
||||
def build(self, mode, model_name, method, width, height, device, precision, sampler_name, scheduler, steps, denoise, megapixels, tile_width, tile_height, overlap, fade_width, overlap_mode, overlap_blend, chunk_length, resize_conditioning, anchor_strength):
|
||||
width = int(width)
|
||||
height = int(height)
|
||||
steps = int(steps)
|
||||
@@ -486,6 +492,8 @@ class H3LatentUpscaleParams:
|
||||
tile_height = int(tile_height)
|
||||
overlap = int(overlap)
|
||||
fade_width = int(fade_width)
|
||||
chunk_length = int(chunk_length)
|
||||
anchor_strength = float(anchor_strength)
|
||||
if mode == "off":
|
||||
return ({
|
||||
"mode": "off",
|
||||
@@ -503,6 +511,9 @@ class H3LatentUpscaleParams:
|
||||
"fade_width": fade_width,
|
||||
"overlap_mode": overlap_mode,
|
||||
"overlap_blend": overlap_blend,
|
||||
"chunk_length": chunk_length,
|
||||
"resize_conditioning": bool(resize_conditioning),
|
||||
"anchor_strength": anchor_strength,
|
||||
},)
|
||||
if width > 0:
|
||||
width = int(round(width / 32.0)) * 32
|
||||
@@ -528,6 +539,9 @@ class H3LatentUpscaleParams:
|
||||
"fade_width": fade_width,
|
||||
"overlap_mode": overlap_mode,
|
||||
"overlap_blend": overlap_blend,
|
||||
"chunk_length": chunk_length,
|
||||
"resize_conditioning": bool(resize_conditioning),
|
||||
"anchor_strength": anchor_strength,
|
||||
},)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user