I'm testing main.py. It seems that the function write_obj_with_colors contains a bug. In particular the line:
s = 'v {:.4f} {:.4f} {:.4f} {} {} {}\n'.format(vertices[1, i], vertices[0, i], vertices[2, i], colors[i, 2],
colors[i, 1], colors[i, 0])
We are writing yxz to the *.obj file instead of xyz.
*.ply file in meshlab:

*.obj file with yxz in meshlab:

If we simply change the indices: format(vertices[1, i], vertices[0, i], vertices[2, i], ... we don't get the correct vertex colors though (see white shirt of obama)
*.obj file with xyz in meshlab:

Original image:

The 3 meshes don't seem to match in terms of the pose (and orientation). Is there a bug or anything I'm missing?
I'm testing
main.py. It seems that the functionwrite_obj_with_colorscontains a bug. In particular the line:We are writing yxz to the *.obj file instead of xyz.
*.ply file in meshlab:

*.obj file with yxz in meshlab:

If we simply change the indices:

format(vertices[1, i], vertices[0, i], vertices[2, i], ...we don't get the correct vertex colors though (see white shirt of obama)*.obj file with xyz in meshlab:
Original image:

The 3 meshes don't seem to match in terms of the pose (and orientation). Is there a bug or anything I'm missing?