nywang16 / Pixel2Mesh

Pixel2Mesh: Generating 3D Mesh Models from Single RGB Images. In ECCV2018.
http://openaccess.thecvf.com/content_ECCV_2018/papers/Nanyang_Wang_Pixel2Mesh_Generating_3D_ECCV_2018_paper.pdf
Apache License 2.0
1.66k stars 295 forks source link

Question about GenerateData #107

Open UncleTom111 opened 2 years ago

UncleTom111 commented 2 years ago

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?

Michael-H1302 commented 2 years ago

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