GanHand: estimating the pose of a hand to enable human-like robot manipulation

10 Jul, 2020

author avatar
GanHand: estimating the pose of a hand to enable human-like robot manipulation

First-of-its-kind architecture that, based on a single image, predicts how a robot can pick up objects from within any scene, could revolutionize applications in AR/VR and robotics

Article written by Gregory Rogez.

Estimating details from an image or video about the pose and shape of a human hand, including the kinematic configuration of the fingers, is a popular research topic in computer vision. Increased interest in hand-pose-estimation algorithms has been fuelled by the growing number of applications—from video games to augmented and virtual reality (AR and VR) — that use this technology to enable the manipulation of virtual objects and interaction with virtual scenes. The success of recent VR (e.g. the Oculus Rift) and AR (e.g. HoloLens) devices was made possible thanks to these types of algorithms.

The pose of hands during object manipulation is more challenging to estimate than simpler interactions. This is because, when viewed from a single angle, hands are often partially hidden behind the object that they’re manipulating, especially when the object is large. Such estimation must therefore consider not only the pose and shape of the hands, but also the contact points that the hands are making with the object and possibly even the forces that are applied during manipulation.

Research in this area has enabled the estimation of grasp poses (1), but has so far neglected the prediction of grasp types and affordances (defined as ‘opportunities of interaction’ in the scene), thus limiting applicability. Producing a more functional description could help in the development of biomedical technology that assists people. For example, the automated parsing of object manipulation could help in the long-term monitoring of rehabilitation patients handling everyday objects. Another practical application of understanding hands in action would be to enhance ‘imitation learning’, or ‘learning by demonstration’ approaches for robotics, where a robot learns a task by observing humans performing certain actions or object manipulations. Grasp prediction is one of the most important problems in robot manipulation. It involves predicting where a robot’s hand, or ‘gripper’ (typically controlled by 6 degrees of freedom, DoF), should be moved to pick an object up. Predicting affordances is an active research area (2) that combines the domains of robotics and computer vision, but ‘human grasp affordances’ have not yet been incorporated in these predictions.

Our work takes another step forward by using the geometry within images to predict related human hand poses, even when there are no hands in the scene. In other words, we’ve built technology capable of hallucinating human hands! We focused on a new, previously unexplored problem: predicting how a human would naturally grasp one or several objects, based on a single colour (RGB) image of those objects. Predicting natural ‘human grasp affordances’ (examples shown in Video 1) has enormous potential not only in AR and prosthetic design but also in robotics, which is our main motivation. Indeed, when faced with one or several objects, our technology would enable an autonomous robot to predict how a human would grasp and manipulate these objects and then adapt the corresponding human hand configurations to its own gripper.

Video 1: Examples show our GanHand technology enabling the grasping of a range of objects. GanHand is robust to occlusion and changes poses to manipulate objects not seen during training. The model predicts a distributional graph of all possible grasps for each object. Here we show only one predicted grasp per detected object. 

We’re also interested in predicting natural interactions. In other words, we want not only to predict all grasps that are physically possible, but also those that a human would naturally make in the context of an object. As a simple example, suppose we consider picking up a potted plant: a human would grasp the pot to avoid damaging the plant, whereas a robot might simply grasp the stem of the plant, killing it in the process. To give another example, you probably wouldn’t want a robot to grasp your laptop by the screen unless you have particularly good insurance coverage!

GanHand and GAN

To predict which grasps are feasible, we need to understand the semantic content of the image (in terms of both the object and its surroundings), the geometric structures within it and all of the potential interactions between the objects in the image and a hand-shaped model. This is where GanHand comes in.

GanHand is a multi-task architecture that, given only one input image, can: 1) estimate the 3D shape and pose of the objects; 2) predict the best grasp type, according to a taxonomy of 33 grasp classes; and 3) refine the hand configuration, given by the grasp class, through an optimization of the 51 parameters of a hand model. The latter process involves maximizing the number of contact points between the object and the hand-shaped model while minimizing interpenetration, to ensure realistic predictions. Our generative model is also stochastic, which means it can predict several grasps per object. This seems appropriate when you look around and think about the many possible ways you could grasp the different objects you see.

It’s worth pointing out that the GanHand architecture is a GAN (general adversarial network)-type of architecture. GANs are considered by many to be one of the biggest breakthroughs in the history of AI. In such architectures, two systems—two neural networks—are competing against each other: a generator learns to generate plausible data, while a discriminator learns to distinguish the generator’s fake data from real data. This is the same technology that enables the creation of deepfakes (videos in which the faces of often famous people are transposed onto the faces of other people in unrelated footage) and videos of freakishly realistic people who don’t actually exist.

In our case, we applied the GAN methodology to generate hand–object interactions. For this, the discriminator’s mission is to force our generator to predict realistic interactions, i.e. hand-object configurations that could look like real data. For full details of our mathematical approach, see our CVPR 2020 oral paper (3).

YCB-Affordance: the largest dataset of its kind

As is often the case, data was a critical part of our research. To train our model, we needed a lot of data; thousands of images of scenes showing multiple objects, with annotations of realistic human grasps of these objects. Unfortunately for us, such data didn’t exist, probably because we were tackling a new problem. To address this, we built a dedicated dataset—the YCB-Affordance dataset—that contains more than 133,000 images of 21 objects from the YCB-Video dataset. We annotated these images with more than 28 million plausible 3D human grasps, making it the largest existing dataset of human grasp affordances in real scenes so far. The grasps were defined following the 33-class taxonomy of Feix and colleagues (4) in a semi-automatic manner, creating quite a bit of sweat; the GraspIt simulator wasn’t able to automatically find certain complex grasps (e.g. those that require abducted thumbs), so human annotation was required to achieve the final dataset.

To test the ability of our model, we performed a thorough evaluation with synthetic and real images. Our results showed that our model can robustly predict realistic grasps, even in cluttered scenes with multiple objects in close contact, as shown in the examples in Video 2. GanHand achieves a higher percentage of graspable objects and a higher accuracy in predicted grasp types compared to our baseline (a pre-trained ResNet-50 model).

Video 2: GanHand predicts how a human would grasp an object from a single RGB image.  The 3D geometry of the scene is estimated for greater accuracy. 

Table 1: Experimental results show the performance of GanHand compared with a baseline (made of a pre-trained ResNet-50 model) on the YCB-Affordance dataset. GanHand outperforms the baseline in all metrics, except for plane interpenetration, which is negligible for both methods. Acc.: Accuracy. Obj: Object. Interp.: Interpenetration. 

All the code used for training, the data and a pre-trained model will be made available on the project web site.

Our next challenge is to use GanHand technology with a real robot. With Aalto University and IRI, NAVER LABS Europe is focusing on applying this functionality for a simple robot gripper with three fingers and 11 DoF. We’re currently annotating realistic grasps for this gripper in relation to a group of objects. Then, we’ll use this data to train a model that predicts how to grasp each object in a scene from a single RGB image.

This article was first published on the blog of NAVER LABS Europe.

Acknowledgments. This work was done in collaboration with our colleagues from the Institut de Robòtica i Informàtica Industrial in Barcelona, Spain. It is a Joint Research Center of the Spanish Council for Scientific Research (CSIC) and the Technical University of Catalonia (UPC), and one of our collaborators in the NAVER Global AI R&D belt.


  1. 6-DOF GraspNet: Variational Grasp Generation for Object Manipulation. Arsalan Mousavian, Clemens Eppner and Dieter Fox. arXiv:1905.10520 [cs.CV], May 2019.
  2. ContactDB: Analyzing and Predicting Grasp Contact via Thermal Imaging. Samarth Brahmbhatt, Cusuh Ham, Charles C. Kemp and James Hays. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, California, 16–20 June, 2019. pp. 8709–8719
  3. GanHand: Predicting Human Grasp Affordances in Multi-Object Scenes. Enric Corona, Albert Pumarola, Guillem Alenyà, Francesc Moreno-Noguer and Grégory Rogez. The IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020, pp. 5031–5041.
  4. The GRASP Taxonomy of Human Grasp Types. Thomas Feix, Javier Romero, Heinz-Bodo Schmiedmayer, Aaron M. Dollar and Danica Kragic. IEEE Transactions on Human-Machine Systems, pp. 66, vol. 46, no. 1. 2016.
  5. Planning optimal grasps. Carlo Ferrari and John F. Canny. IEEE International Conference on Robotics and Automation (ICRA), Nice, France, May 12–14, 1992. pp. 2290–2295.

More by NAVER LABS Europe

NAVER LABS Europe is the biggest industrial research centre in Artificial Intelligence (AI) in France and owned by NAVER Corporation, Korea’s leading internet content services company and a leading global innovator. NAVER is focussed on seamlessly connecting the physical and digital worlds through...

Wevolver 2022