NVlabs / neuralangelo

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

How to export mesh with color ! #116

Open Futurer90 opened 11 months ago

Futurer90 commented 11 months ago

I trained 500k iters, but the exported mesh has no color.

GPU :RTX 2060

export command : torchrun --nproc_per_node=${GPUS} projects/neuralangelo/scripts/extract_mesh.py --textured --config=${CONFIG} --checkpoint=${CHECKPOINT} --output_file=${OUTPUT_MESH} --resolution=${RESOLUTION} --block_res=${BLOCK_RES}

config.yaml file in drive.google.com is :config.yaml url

Trained pt file in drive.google.com is : pt file url

Open with Blender result :

3d

Can you tell me how to export a mesh with color?

Thanks

HanakoAA commented 11 months ago

Try add this --textured

mli0603 commented 11 months ago

The suggestion of @HanakoAA is correct.

Futurer90 commented 11 months ago

The command I used has been added --textured parameter ,But results is no color 。 @mli0603 @HanakoAA

mli0603 commented 11 months ago

Have you tried to use this script for visualization?

HanakoAA commented 11 months ago

I tried to use blender for visualization and I got the same result. You can try to use Meshlab to open your mesh ,it will be possible to get a mesh with color. like this: image

Futurer90 commented 11 months ago

Hi , @HanakoAA ,The result

a

open with Meshlab

Futurer90 commented 11 months ago

HI ,@mli0603 , Yes

Have you tried to use this script for visualization?

HI @mli0603 ,run this script ,the result is 2 ,Can you tell me how to adjust it?

mli0603 commented 11 months ago

Interesting. I have requested access to your files. Once I have access, I can take a look.

Futurer90 commented 11 months ago

@mli0603 Thanks ,File permissions have been released

mli0603 commented 11 months ago

Hi @Futurer90

It does look like your checkpoint failed to load the color network. The last layer weights of the rgb network are all zero. What checkpoint did you use?

Futurer90 commented 11 months ago

Hi ,@mli0603 ,I trained 500,000 times and used the last pt file to generate the mesh . Give me a suggestion, which checkpoint should I use? Thanks

mli0603 commented 11 months ago

Hi @Futurer90

Oh I mean which commit of the branch you are on. Not the command nor checkpoint.

Futurer90 commented 11 months ago

Hi @mli0603 I user master branch 。