MrForExample / ComfyUI-3D-Pack

An extensive node suite that enables ComfyUI to process 3D inputs (Mesh & UV Texture, etc) using cutting edge algorithms (3DGS, NeRF, etc.)
MIT License
2.05k stars 199 forks source link

'NoneType' object has no attribute 'elements' #38

Open Nziner opened 6 months ago

Nziner commented 6 months ago

Hello again. All workflow works except for "Multi-View-Images_to_3DGS_to_3DMesh(DMTet and DiffRast).json".

Error:

Error occurred when executing [Comfy3D] Switch 3DGS Axis:

'NoneType' object has no attribute 'elements'

File "D:\Work\AI\StableDiffusion\ComfyUI_portable\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Work\AI\StableDiffusion\ComfyUI_portable\ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Work\AI\StableDiffusion\ComfyUI_portable\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Work\AI\StableDiffusion\ComfyUI_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 302, in switch_axis_and_scale
switched_gs_ply = switch_ply_axis_and_scale(gs_ply, target_axis, target_scale, coordinate_invert_count)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Work\AI\StableDiffusion\ComfyUI_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\mesh_processer\mesh_utils.py", line 428, in switch_ply_axis_and_scale
xyz, features_dc, features_extra, opacities, scales, rots = read_gs_ply(plydata)
^^^^^^^^^^^^^^^^^^^^
File "D:\Work\AI\StableDiffusion\ComfyUI_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\mesh_processer\mesh_utils.py", line 338, in read_gs_ply
xyz = np.stack((np.asarray(plydata.elements[0]["x"]),
^^^^^^^^^^^^^^^^

chrome_z6RfzaF2tr

Nziner commented 6 months ago

And a question. How did you generate those 120 images of Cammy? Through Using_Stack_Orbit_Camera_Poses_to_conditioning_StableZero123?

MrForExample commented 6 months ago

That workflow could be outdated, cool, I'll take a look before the next update 👍

And a question. How did you generate those 120 images of Cammy? Through Using_Stack_Orbit_Camera_Poses_to_conditioning_StableZero123?

I generated them using customed pipeline based on SD1.5, ControlNet, IP-Adapter, and multi-view renders from a 3D mesh

Blizaine commented 6 months ago

same error here. everything else seems to work. My images were created with the "Using_Stack_Orbit_Camera_Poses_to_conditioning_StableZero123" workflow.

MrForExample commented 6 months ago

same error here. everything else seems to work. My images were created with the "Using_Stack_Orbit_Camera_Poses_to_conditioning_StableZero123" workflow.

You can try to delete that Load3DMesh node under the 3DGS node, seems it couldn't find the mesh file

gseth commented 4 months ago

@MrForExample Hi,

When I load your set of images I get no Error, When I load my own set I get an error. What are the xact image requirements for this...? Any image size or number of images are required....?

image