Update nodes.py

This commit is contained in:
kijai 2025-03-19 10:47:30 +02:00
parent 2253869d04
commit b96bb5b6d8

View File

@ -1158,7 +1158,10 @@ class Hy3DGenerateMeshMultiView():
images.append(rgb)
image_tensors = torch.cat(images, 0).permute(0, 2, 3, 1).cpu().float()
mask_tensors = torch.cat(masks, 0).squeeze(1).cpu().float()
if masks:
mask_tensors = torch.cat(masks, 0).squeeze(1).cpu().float()
else:
mask_tensors = torch.zeros(image_tensors.shape[0], image_tensors.shape[1], image_tensors.shape[2]).cpu().float()
pipeline.to(offload_device)