NVlabs / neuralangelo

Official implementation of "Neuralangelo: High-Fidelity Neural Surface Reconstruction" (CVPR 2023)
https://research.nvidia.com/labs/dir/neuralangelo/
Other
4.26k stars 382 forks source link

Strange Mesh Output #129

Open SWWdz opened 9 months ago

SWWdz commented 9 months ago

I run the code in stu_scan24, but I get a strange mesh out. It is in a sphere shell. Can you give me some advice? Thank you! image

mli0603 commented 9 months ago

Hi @SWWdz

The DTU scenes only observe the objects from one side and have a background that is almost all white, which results in ambiguous surroundings. We use object masks provided by the dataset to remove these background regions following prior work. After removing the background, you will see the targeted object.

SWWdz commented 9 months ago

Thanks for your reply! Can you tell me how to remove these background regions with object masks? Or can you give me some instructions?

mli0603 commented 9 months ago

Hi @SWWdz

You can refer to prior work's provided functionalities here

SWWdz commented 9 months ago

OK! Thank you!

zhj1013 commented 7 months ago

OK! Thank you!

Hi @SWWdz I'm sorry to bother you, but how did you solve this problem in the end?

joshpwrk commented 7 months ago

+1

Quirlight commented 1 month ago

I just figured it out:

1) (optional) I adjusted the bounding sphere to something a little bit smaller, like 0.95: https://github.com/NVlabs/neuralangelo/blob/94390b64683c067c620d9e075224ccfe582647d0/projects/neuralangelo/utils/mesh.py#L137

2) For the cleanup I used this script: https://gist.github.com/Totoro97/43664cfc28110a469d88a158af040014#file-clean_mesh-py

After step 1: image After step 2: image

Nevermind the bad mesh quality, it was a fast training with little hashgrid values. Hope this helps the next person stumbling upon this post :)