mirror of
https://git.datalinker.icu/kijai/ComfyUI-Hunyuan3DWrapper.git
synced 2026-01-23 20:54:31 +08:00
make mask do something
This commit is contained in:
parent
e43874b483
commit
7e234a017e
@ -73,6 +73,11 @@ class ImageEncoder(nn.Module):
|
||||
image = (image - low) / (high - low)
|
||||
|
||||
image = image.to(self.model.device, dtype=self.model.dtype)
|
||||
|
||||
if mask is not None:
|
||||
mask = mask.to(image)
|
||||
image = image * mask
|
||||
|
||||
inputs = self.transform(image)
|
||||
outputs = self.model(inputs)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user