Learning Part Segmentation from Synthetic Animals

Jiawei Peng, Ju He, Prakhar Kaushik, Zihao Xiao, Jiteng Mu, Alan Yuille

Understanding the fine-grained structure of objects—like the legs, torso, and head of an animal—is a cornerstone of computer vision tasks ranging from pose estimation to behavioral analysis. However, getting high-quality "part segmentation" labels for real-world images is notoriously expensive and time-consuming.

In their paper "Learning Part Segmentation from Synthetic Animals," researchers from Johns Hopkins and UC San Diego propose a clever workaround: using parametric 3D models to generate hyper-diverse synthetic data and bridging the "reality gap" with a novel domain adaptation technique.

TL;DR

The authors leverage Skinned Multi-Animal Linear (SMAL) models to create Synthetic Animal Parts (SAP), a dataset with far greater pose diversity than traditional CAD-based synthetic data. They introduce Class-Balanced Fourier Data Mixing (CB-FDM) to adapt models from synthetic to real domains, achieving significant performance gains and demonstrating that part knowledge learned from just tigers and horses transfers surprisingly well to other quadrupeds.

What Problem Does This Paper Address?

While synthetic data is a popular way to avoid manual annotation, it often suffers from two major issues:

  1. Limited Pose Diversity: Most synthetic animal data comes from static CAD models or limited animation sequences. In the real world, animals crouch, climb, and lie down in ways these models don't capture.
  2. The Domain Gap: Models trained on "clean" synthetic images often fail when faced with the textures, lighting, and noise of real-world photography.

As shown in Figure 2, models trained only on limited CAD data often fail to segment torsos correctly or struggle with boundaries when an animal is in an unusual pose.

Figure 2. Failure cases when using CAD synthetic data only. Due to the limited poses contained in CAD models, the model fails to segment the torso out and also predicts inaccurate boundaries.

Methods

The researchers tackle these problems with a two-pronged approach:

1. Generating Diverse Data with SMAL

Instead of relying solely on CAD models, the authors use SMAL (Skinned Multi-Animal Linear) models. These are parametric models that can represent a wide variety of animal shapes and poses. By fitting these models to 2D images of animals in complex poses, they generated a new synthetic dataset called SAP that includes movements like climbing and lying down.

2. Bridging the Gap with CB-FDM

To make the jump from synthetic to real images, they propose Class-Balanced Fourier Data Mixing (CB-FDM):

  • Fourier Data Mixing (FDM): This technique aligns the "style" of synthetic and real images in the frequency domain. By swapping the spectral amplitude of a synthetic image with that of a real image while keeping the synthetic phase, they create "mixed" images that retain the ground-truth labels but look more realistic to the neural network.
  • Class-Balanced (CB) Re-Weighting: Small parts like heads and tails often get ignored by models in favor of large parts like torsos. The authors introduced a multiplicative factor ($\beta$) to boost the importance of minority classes during training.
Figure 1. Overview. We generate synthetic animals by fitting SMAL models and rendering with random viewpoints and textures (top-left). We exploit Fourier Data Mixing (FDM) to align the spectral amplitudes of unlabeled real animals from PartImageNet and generated synthetic animals to obtain mixed images (bottom-left). Along with the Class-Balanced (CB) training strategy, our model is capable of segmenting real animals on seen categories (top-right). Moreover, the model is capable to transfer part knowledge to unseen categories (bottom-right).

Datasets

  • SAP (Synthetic Animal Parts): A new dataset containing 14,400 tiger images and 12,000 horse images with diverse poses and accurate part masks.
  • PartImageNet: A large-scale real-world dataset used for benchmarking and as the "target" domain for adaptation.
  • SynRealPart: A new benchmark established by the authors to evaluate the transition from SAP to PartImageNet.

Key Insights and Ideas

  • Pose Diversity is Paramount: The inclusion of SMAL-generated data led to immediate improvements in segmentation accuracy, particularly for animals in non-standard positions.
  • Frequency Domain Alignment: Aligning spectral amplitudes helps the model focus on domain-invariant features (like shape and structure) rather than domain-specific textures.
  • Zero-Shot Transferability: Perhaps the most striking finding is that a model trained only on synthetic tigers and horses can effectively segment other quadrupeds like camels, dogs, and deer in PartImageNet. This suggests that learning a "core set" of animal structures is enough to generalize across species with similar skeletal layouts.

Key Results

The proposed CB-FDM method provided "non-trivial" improvements across several state-of-the-art domain adaptation architectures.

  • Quantitative: Using the DAFormer architecture, the authors improved the mean Intersection over Union (mIoU) from 48.08 to 58.04 on the SynRealPart benchmark (see Table 2 in Figure 5).
  • Qualitative: As seen in Figure 3, the CB-FDM model produces much cleaner boundaries and handles challenging poses (like a tiger grooming itself) far better than baseline methods.
Figure 3. Qualitative comparisons for different methods on our test set. Note that our CB-FDM with DAFormer [16] produces more accurate part segmentation results in challenging poses (e.g., row 2&3&4) and unseen species that have large shape difference with tiger and horse (e.g., row 5&6).

Ablation studies (Figure 4) confirmed that both the Fourier mixing and the class balancing were essential, with the class balancing specifically providing a massive 26.75 mIoU boost for the "head" category.

Limitations and Future Work

Despite the progress, some hurdles remain:

  • The "Tail-Horn" Ambiguity: The model currently struggles to distinguish between tails and horns (which it often misclassifies as tails) because horns were not present in the synthetic training data.
  • Species Scope: While the transfer to other quadrupeds is impressive, the current SMAL-based pipeline doesn't yet cover birds, reptiles, or bipeds.
  • Tail Variance: The tail remains the hardest part to segment due to its high degree of deformation and thin structure.

The authors plan to expand the dataset to include horned animals and a wider variety of animal classes to further improve the robustness of the system.

Summary updated

BibTeX
@misc{peng2023learning,
  author = {Jiawei Peng and Ju He and Prakhar Kaushik and Zihao Xiao and Jiteng Mu and Alan Yuille},
  title = {{Learning Part Segmentation from Synthetic Animals}},
  year = {2023},
  eprint = {2311.18661},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.18661},
}
Figure