mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2025-12-10 14:34:25 +08:00
Fix hunyuan refiner blownout colors at noise aug less than 0.25 (#9832)
This commit is contained in:
parent
fd2b820ec2
commit
e600520f8a
@ -1449,7 +1449,9 @@ class HunyuanImage21Refiner(HunyuanImage21):
|
|||||||
image = utils.resize_to_batch_size(image, noise.shape[0])
|
image = utils.resize_to_batch_size(image, noise.shape[0])
|
||||||
if noise_augmentation > 0:
|
if noise_augmentation > 0:
|
||||||
noise = torch.randn(image.shape, generator=torch.manual_seed(kwargs.get("seed", 0) - 10), dtype=image.dtype, device="cpu").to(image.device)
|
noise = torch.randn(image.shape, generator=torch.manual_seed(kwargs.get("seed", 0) - 10), dtype=image.dtype, device="cpu").to(image.device)
|
||||||
image = noise_augmentation * noise + (1.0 - noise_augmentation) * image
|
image = noise_augmentation * noise + min(1.0 - noise_augmentation, 0.75) * image
|
||||||
|
else:
|
||||||
|
image = 0.75 * image
|
||||||
return image
|
return image
|
||||||
|
|
||||||
def extra_conds(self, **kwargs):
|
def extra_conds(self, **kwargs):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user