GrabNet icon indicating copy to clipboard operation
GrabNet copied to clipboard

How to get the bps.npz

Open anindita127 opened this issue 2 years ago • 2 comments

Hi,

Very nice work! I wanted to ask how you created the bps.npz file that we download? Also, you have used the rhand_weight.npy file. Did you get it by pre-processing the GRAB dataset?

anindita127 avatar Oct 27 '21 13:10 anindita127

Hi @anindita127, thanks for your interest.

We use this repo to get the bps.npz points. In the README file it explains how to generate random or grid points in a sphere (cube or cylinder as well).

Yes, we get the rhand_weights.npy by getting all contacts between the hand and the objects in the GRAB dataset, and then normalize them to be between 0 and 1. This basically gives you which vertices on the hand are more important for grasping.

I hope this helps.

otaheri avatar Oct 27 '21 13:10 otaheri

Hi @otaheri thanks for the quick reply. An additional question is how did you create the grabnet_splitname.npz files? They have some extra arguments which I don't find after pre-processing the GRAB dataset (e.g. rhand_data.pt file that is created from https://github.com/otaheri/GRAB/blob/master/grab/grab_preprocessing.py )

anindita127 avatar Oct 27 '21 15:10 anindita127