DaLi-Jack/SSR-code

Get mesh_color.ply with no color in inference

Closed this issue · 2 comments

Hi, thank you so much for your wonderful work. But the colored mesh I got from the inference seems to have no color.

Specifically, I followed setup, data, and checkpoints in the repo. Then ran python inference.py --config configs/train_pix3d.yaml in the Export mesh with texture section. After running successfully, I was able to get the folder of each imgid_255, which contained mesh_color.ply and mesh_none_color.ply, but I found that mesh_color.ply did not have the results I expected. This was what I expected.
image

But in fact I checked it with blender and got this mesh whose view shading mode was rendering.

image

A specific example, the mesh_color.ply corresponding to 0384_255 in the chair is 6933KB, and the mesh_none_color.ply is 6278KB. What may be the reason for not getting colored mesh? Looking forward to your reply.

Hi! This is a problem with Blender’s display of .ply colors. You can follow these steps to display the color of .ply in Blender.
Step 1: add new material for the mesh
1

Step 2: add color attribute

Image 1
Image 1

Step 3: use shading mode

Image 1

The result:

5

Besides, you can use MeshLab to check the color of .ply, which is more convenient.
image

Thank you for your timely reply. My problem has been solved.