Human Grasp Generation for Rigid and Deformable Objects with Decomposed VQ-VAE