lukasHoel / text2room

Text2Room generates textured 3D meshes from a given text prompt using 2D text-to-image models (ICCV2023).
https://lukashoel.github.io/text-to-room/
MIT License
1k stars 69 forks source link

Poisson reconstruction takes very long time #5

Closed jzhangbs closed 1 year ago

jzhangbs commented 1 year ago

Hi, thanks for releasing the code! I am trying to run the default example, and it successfully generates the per view intermediate results within reasonable time. But the pre-completion mesh generation already runs for >24h. Is that expected behavior? I suppose it is running generate_scene.py:L40 -> utils.py:L123 according to the output.

...
Writing PLY: [========================================] 100%                                                                                                                   
Image [9/9]: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 10/10 [01:01<00:00,  6.18s/it]
Image [9/9]: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 10/10 [01:40<00:00, 10.09s/it]
Image [9/9]: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 10/10 [00:44<00:00,  4.47s/it]
Image [9/9]: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 10/10 [01:41<00:00, 10.14s/it]
Image [9/9]: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 10/10 [00:44<00:00,  4.41s/it]
Image [9/9]:  90%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍            | 9/10 [00:39<00:04,  4.44s/itW
Writing PLY: [========================================] 100%                                                                                                                   
Image [9/9]: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 10/10 [01:58<00:00, 11.88s/it]
Writing PLY: [========================================] 100%
loaded output/living_room/full_trajectory/a_living_room_with_a_lit_furnace,_couch_/no_input_image_file/2023-03-28_07:46:47.504980Z/fused_mesh/after_generation.ply
computed normals
lukasHoel commented 1 year ago

Hey,

no the poisson reconstruction should not take that much time, was around 10-15 min on average on my PC.

jzhangbs commented 1 year ago

I tried with the same mesh (3M vertices) on meshlab GUI on my local machine and it finished properly within reasonable time. And I try depth=8 on the problematic machine and it also hung. So I guess it's about that particular machine. I am ok with the mesh with holes for visualization so I just disable the poisson reconstruction for now. Thanks for the help.