sjtuytc / segmentation-driven-pose

Reimplementation of segmentation-driven pose, add training code
GNU General Public License v3.0
50 stars 7 forks source link

ground-truth generation for ycb_dataset.py #2

Closed ll-II closed 4 years ago

ll-II commented 4 years ago

Hello,

I think there might be a problem with the synthetic data generation: ycb_dataset.py, function gen_synthetic, from line 147:

Screenshot 2019-11-09 at 14 43 55

In my case the class_mask was not correctly generated:

I used this code to generate the keypoint with the function 'gen_kp_gt'

I could fix the issue by changing l. 147 and l. 151 :

class_ids = meta['cls_indexes'][0]
class_mask = np.where(seg_label == cid)

sjtuytc commented 4 years ago

I'm confused, can you provide a visualization to explain why it's wrong?

sjtuytc commented 4 years ago

Feel free to reopen it if necessary.