mirror of
https://git.datalinker.icu/kijai/ComfyUI-Hunyuan3DWrapper.git
synced 2025-12-09 04:44:26 +08:00
Update nodes.py
This commit is contained in:
parent
aabfffb9a1
commit
0ea74dfe41
4
nodes.py
4
nodes.py
@ -383,10 +383,10 @@ class Hy3DSampleMultiView:
|
||||
elev] + {-20: 0, 0: 12, 20: 24, -90: 36, 90: 40}[elev] for azim, elev in
|
||||
zip(selected_camera_azims, selected_camera_elevs)]
|
||||
|
||||
normal_maps_np = (normal_maps * 255).clamp(0, 255).to(torch.uint8).cpu().numpy()
|
||||
normal_maps_np = (normal_maps * 255).to(torch.uint8).cpu().numpy()
|
||||
normal_maps_pil = [Image.fromarray(normal_map) for normal_map in normal_maps_np]
|
||||
|
||||
position_maps_np = (position_maps * 255).clamp(0, 255).to(torch.uint8).cpu().numpy()
|
||||
position_maps_np = (position_maps * 255).to(torch.uint8).cpu().numpy()
|
||||
position_maps_pil = [Image.fromarray(position_map) for position_map in position_maps_np]
|
||||
|
||||
control_images = normal_maps_pil + position_maps_pil
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user