bharat-b7 / LoopReg

91 stars 10 forks source link

'spread_SMPL_function.py' error #9

Closed Luciano07 closed 3 years ago

Luciano07 commented 3 years ago

Hi, I'm trying to use 'spread_SMPL_function.py' to spread smpl in voxel grid, and save it in *.pkl files. I changed paths to pkl smpl models and run, but it fails before save 'posedirs.pkl'. Here is my output: Screenshot from 2021-03-23 16-58-27 After that i tried to uncomment line 79:

assert closest_points == barycentric_interpolation(smpl_mesh.v[vert_ids], bary_coords)

and seems like is something wrong in interpolation: Screenshot from 2021-03-23 17-01-32 Is there something i can do to solve it? I'm using Ubuntu 18.04, python 3.6.9 and pytorch 1.4.0

Thanks for share your work!

Luciano07 commented 3 years ago

I think is memory limitation error, I'll try with a better hardware.

bharat-b7 commented 3 years ago

You can reduce the size of the cube from 64^3 to 32^3 and see if that solves the memory problem.

Luciano07 commented 3 years ago

Thanks! with 'res=32' it works.