Pixel2Mesh icon indicating copy to clipboard operation
Pixel2Mesh copied to clipboard

Question about GenerateData

Open UncleTom111 opened this issue 1 year ago • 1 comments

I used model.obj, which is from your folder "Pixel2Mesh/GenerateData/1a0bc9ab92c915167ae33d942430658c/".

Step1: I used pymeshlab and upsample.mlx to get the XYZ file. Step2: When I tried to run 2_generate_normal.py , the error was like below:


in generate_normal(pt_position, face_pts, face_axis) 60 continue 61 ---> 62 transform_verts = np.dot(pt_position - f_org, axis.transpose()) 63 vert_idx = np.where(np.abs(transform_verts[:,2]) < 6e-7)[0] 64

ValueError: operands could not be broadcast together with shapes (19817,6) (3,)

I don't know which step is wrong. Should I use Meshlabserver, which is discontinued, instead of pymeshlab?

UncleTom111 avatar Jul 17 '22 19:07 UncleTom111

I had a similiar issue and used the discontinued meshlabserver (Meshlab 2020.09). It solved the issue.

Michael-H1302 avatar Oct 19 '22 10:10 Michael-H1302