mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-25 10:48:11 +00:00
update mask blur
This commit is contained in:
@@ -36,7 +36,8 @@ class BasePipeline(torch.nn.Module):
|
|||||||
return video
|
return video
|
||||||
|
|
||||||
|
|
||||||
def merge_latents(self, value, latents, masks, scales, blur_kernel_size=3, blur_sigma=1.0):
|
def merge_latents(self, value, latents, masks, scales, blur_kernel_size=33, blur_sigma=10.0):
|
||||||
|
if len(latents) > 0:
|
||||||
blur = GaussianBlur(kernel_size=blur_kernel_size, sigma=blur_sigma)
|
blur = GaussianBlur(kernel_size=blur_kernel_size, sigma=blur_sigma)
|
||||||
height, width = value.shape[-2:]
|
height, width = value.shape[-2:]
|
||||||
weight = torch.ones_like(value)
|
weight = torch.ones_like(value)
|
||||||
|
|||||||
Reference in New Issue
Block a user