mirror of
https://git.datalinker.icu/kijai/ComfyUI-Hunyuan3DWrapper.git
synced 2026-05-02 21:15:45 +08:00
fix input image range
This commit is contained in:
parent
7242e7e22e
commit
2286d0c0f7
1
nodes.py
1
nodes.py
@ -381,6 +381,7 @@ class Hy3DGenerateMesh:
|
|||||||
offload_device = mm.unet_offload_device()
|
offload_device = mm.unet_offload_device()
|
||||||
|
|
||||||
image = image.permute(0, 3, 1, 2).to(device)
|
image = image.permute(0, 3, 1, 2).to(device)
|
||||||
|
image = image * 2 - 1
|
||||||
|
|
||||||
if mask is not None:
|
if mask is not None:
|
||||||
mask = mask.unsqueeze(0).to(device)
|
mask = mask.unsqueeze(0).to(device)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user