Framework Integration
NOT AN ISSUE
Just wondering - do you think it is possible to integrate something like threestudio or dreamgaussian with ComfyUI?
Of course my friend, actually part of my code for bake the texture on the the 3D mesh is improved from dreamgaussian
But regards threestudio, most of algorithm inside of it took forever to run even on a above average PC, according to the original design philosophy of ComfyUI, my plan for now is only bring the best algorithm with acceptable runtime cost into this project.
Please keep in mind this is project is still a working progress, so far there is only one algorithm which bake the rendered multi-view images into the UV texture of a 3D mesh, and I only manage to make it work inside Miniconda/Conda environment with cuda 11.8 and corresponding torch version.
Thanks for your attention to this project, to be frankly I didn't expect this half working thing to get any attention this soon, but I'll do my best to bring the this 3D AI Tools for everyone :)
Thanks @MrForExample - I have actually set up both threestusio and dreamgaussian and been trying to explore how to create API calls between environments for use with comfyui since the base image required for 3D generation is superior if controlled with workflows instead of simple prompts -
Would love to collaborate on this with you but tbh I have no clue where to start!
the base image required for 3D generation is superior if controlled with workflows instead of simple prompts
You speak my mind :)
Since the main benefit of using UI workflows is modularity, so my plan is to get the core modules done first, i.e. the most commonly used algorithms (e.g. 3DGS, Nerf, DMTet, differentiable rendering, and those SDS/VSD optimization etc.) and linkage nodes like load & save common 3D file (e.g. obj, fbx, ply, glb) and some common mesh processor.
If you want collaborate that's great! you could start by look into Nerf, SDS/VSD optimization in threestudio or kaolin and other ComfyUI addons, my plan for the rest of the day is to bring a improved version of 3DGS into the project. Also I'll update the readme after I make sure everything works, so pls give me some time 😁
Feel free to DM me on twitter or reddit if you have any questions that you think I may know the answer :) Cheers 👍
Hey - can you please confirm if the workflows enable just 3d-to-3d or also text-to-3d?
Also, I have figured out a very basic and simple workflow to enable high resolution stablezero123 generations, if you like you can check out the attached image, file work
flow embedded :)
Hey - can you please confirm if the workflows enable just 3d-to-3d or also text-to-3d? Also, I have figured out a very basic and simple workflow to enable high resolution stablezero123 generations, if you like you can check out the attached image, file work
flow embedded :)
Nice work friend. I just updated the package, now the example workflow Triplane_Gaussian_Transformers_to_3DGS.json supports single image to 3DGS, and you can later use DMTet node to convert it into 3D Mesh, however to bake the render of the 3DGS onto the texture, currently you have to generate the rendered images first then use Bake Multi-View images into UVTexture node. I will make it simpler in the near future. Cheers 👍
So I finally got around to setting up the 3D-Pack and wow! I am so happy I was patient! Gaussian Splatting is working phenomenolly, but I did face an issue with the suggested Cammy workflow - the mesh was not nearly as good as what you have shown in the Readme -
Please suggest what parameters I could play around with for getting the same quality! I am using the default suggested workflow for this :)
On another note, getting this error with my own files as input (24 images) -
ERROR:root:!!! Exception during processing !!! ERROR:root:Traceback (most recent call last): File "E:\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\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 "E:\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 283, in switch_axis_and_scale switched_gs_ply = switch_ply_axis_and_scale(gs_ply, target_axis, target_scale, coordinate_invert_count) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\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 "E:\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"]), ^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'elements'
Small update: Figured out that the bug was because of the number of images only I also figured if the number of images is the same, but different poses as compared to the Cammy example, the splat will have a bad composition and likewise the mesh wouldn't be too great either. I fixed a Workflow to generate 120 views for a text-to-3d pipeline which seems to work but still need to fine tune the parameters for the mesh generation and gaussian splat so it is possible to get consistent results without having to change the hyperparameters around too much!
Would love some guidance on the matter, will share some results soon!
Additional Request: You have shared nodes to save 3DGS and 3D Mesh, could you also please provide a node to save the Point Cloud? Asking so I can check how the 3DGS to Point Cloud node works prior to the 3D Mesh Generation :)
I have exactly the same problem with the mesh generation... by the way i did try 3 version of Cuda before making it work , we need to use this one : https://developer.nvidia.com/cuda-12-1-0-download-archive
Hi, friends, you guys can try the newest 3DGS to Mesh Conversion Algorithm node: Convert_3DGS_to_Mesh_with_NeRF_and_Marching_Cubes
It works much better
Perfect thanks
Le ven. 9 févr. 2024 à 11:56, Mr. For Example @.***> a écrit :
Hi, friends, you guys can try the newest 3DGS to Mesh Conversion Algorithm node: Convert_3DGS_to_Mesh_with_NeRF_and_Marching_Cubes It works much better
— Reply to this email directly, view it on GitHub https://github.com/MrForExample/ComfyUI-3D-Pack/issues/2#issuecomment-1935709663, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALD6WVAQBMX2OXUJL5DV4ATYSX6F3AVCNFSM6AAAAABBQBDTYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZVG4YDSNRWGM . You are receiving this because you commented.Message ID: @.***>
Hi, friends, you guys can try the newest 3DGS to Mesh Conversion Algorithm node:
Convert_3DGS_to_Mesh_with_NeRF_and_Marching_CubesIt works much better
Can you explain in detail how to handle this?
flow embedded :)