mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-08 21:30:50 +08:00
.
This commit is contained in:
parent
21bc67d7db
commit
4d7012ecda
@ -298,7 +298,7 @@ class SeedVR2InputProcessing(io.ComfyNode):
|
|||||||
b, t, c, h, w = images.shape
|
b, t, c, h, w = images.shape
|
||||||
images = images.reshape(b * t, c, h, w)
|
images = images.reshape(b * t, c, h, w)
|
||||||
|
|
||||||
max_area = ((resolution_height * resolution_width)** 0.5) ** 2
|
#max_area = ((resolution_height * resolution_width)** 0.5) ** 2
|
||||||
clip = Lambda(lambda x: torch.clamp(x, 0.0, 1.0))
|
clip = Lambda(lambda x: torch.clamp(x, 0.0, 1.0))
|
||||||
normalize = Normalize(0.5, 0.5)
|
normalize = Normalize(0.5, 0.5)
|
||||||
#images = area_resize(images, max_area)
|
#images = area_resize(images, max_area)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user