facebookresearch / MCC

Multiview Compressive Coding for 3D Reconstruction
Other
631 stars 48 forks source link

Inference successed: How to visualize the new 3D reconstructed model to distinguish it with "demo/quest2.obj". #17

Open zhanxiaopan opened 1 year ago

zhanxiaopan commented 1 year ago

Thanks so much for this inspiring work! When I execute the cmd below to do inference as you recommended, and there is a new file "demo/output.html" generated. But could you help to describe how can I visualize the new 3D reconstructed model to distinguish it with "demo/quest2.obj".

python demo.py --image demo/quest2.jpg --point_cloud demo/quest2.obj --seg demo/quest2_seg.png \

--checkpoint [path to model checkpoint]

chaoyuaw commented 1 year ago

Hi @zhanxiaopan, Thanks for asking!

I'm not 100% sure if I understand your question correctly, but to visualize the result, you can open the html file in a browser, and a plotly plot showing the reconstructed result will be displayed.

(Did I answer your question?)

zhanxiaopan commented 1 year ago

Hi @chaoyuaw, Thanks for your prompt reply! With your guidance, I can finally visualize the result. The 3D reconstruction inference result is really amazing. However, for the presentation effect, we'd better save the 3D reconstruction result with the format of point cloud(suffix is '.obj' or '.ply') and visualize it with the linux tool 'meshlab'. Cause when I drag the view to see the 3D reconstruction result in a browser, it looks unsmoothly. The desktop performance is 24 cores CPU, Ubuntu20.04, RTX3090 card, Ubuntu built-in Firefox browser. Thanks again for you help!