magicleap / Atlas

Atlas: End-to-End 3D Scene Reconstruction from Posed Images
Apache License 2.0
1.82k stars 223 forks source link

Bad Type Name in sample1.ply #17

Open Fquico1999 opened 4 years ago

Fquico1999 commented 4 years ago

Hi, when trying to visualize the sample1.ply file in both MeshLab or CloudCompare, given by both the colab notebook and running inference on my local machine, I get a Bad Type Name, which I've traced to being due to property int64 semseg.

When I try to replace it with property int semseg, it gives me bad vertex index in face.

What should I do?

Also, what is the best way to visualize the outputs?

meder411 commented 4 years ago

I had the same issue. The easiest solution I found if you're just trying to view the output is to just switch to write to an OBJ file.

Change this line to:

mesh_pred.export(os.path.join(save_path, '%s.obj' % scene))

(i.e. just replace ply with obj).

It seems like this might be a trimesh issue writing to PLYs?

Hemantr05 commented 4 years ago

I had the same issue. The easiest solution I found if you're just trying to view the output is to just switch to write to an OBJ file.

Change this line to:

mesh_pred.export(os.path.join(save_path, '%s.obj' % scene))

(i.e. just replace ply with obj).

It seems like this might be a trimesh issue writing to PLYs?

@meder411 you were right. change the extension .ply to .obj worked

HaFred commented 3 years ago

I had the same issue. The easiest solution I found if you're just trying to view the output is to just switch to write to an OBJ file. Change this line to:

mesh_pred.export(os.path.join(save_path, '%s.obj' % scene))

(i.e. just replace ply with obj). It seems like this might be a trimesh issue writing to PLYs?

@meder411 you were right. change the extension .ply to .obj worked

Hi @Fquico1999, did you get it work by .obj? I wonder which visualization app you use? I am using cloudcompare but it shows malformed file as below: image

HaFred commented 3 years ago

Solved by following https://github.com/magicleap/Atlas/pull/18.