Atlas icon indicating copy to clipboard operation
Atlas copied to clipboard

Bad Type Name in sample1.ply

Open Fquico1999 opened this issue 3 years ago • 4 comments

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?

Fquico1999 avatar Sep 13 '20 04:09 Fquico1999

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 avatar Sep 14 '20 13:09 meder411

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

Hemantr05 avatar Oct 01 '20 17:10 Hemantr05

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 avatar Jun 21 '21 07:06 HaFred

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

HaFred avatar Jun 22 '21 04:06 HaFred