Farm3D: Learning Articulated 3D Animals by Distilling 2D Diffusion

Tomas Jakab, Ruining Li, Shangzhe Wu, Christian Rupprecht, Andrea Vedaldi

TL;DR

Farm3D is a framework that learns to reconstruct articulated 3D animal models (like cows, horses, and sheep) from single images without using any real-world training data. By leveraging synthetic images and multi-view supervision from pre-trained 2D diffusion models, it trains a feed-forward network capable of generating controllable, animatable 3D assets in seconds.

What Problem Does This Paper Address?

Reconstructing 3D objects from 2D images is a classic "ill-posed" problem in computer vision—there are infinitely many 3D shapes that could result in the same 2D projection. For articulated objects like animals, the challenge is even greater because the model must account for varying poses and joint movements.

Current state-of-the-art methods typically rely on massive, manually curated datasets of real images. However, real-world datasets like ImageNet are "noisy": roughly 41% of images contain occlusions or truncations that confuse learning algorithms. Manually filtering these datasets is prohibitively expensive. Furthermore, existing "distillation" methods (like DreamFusion) can create high-quality 3D assets but require hours of optimization for every single new prompt or image. Farm3D aims to bridge this gap by creating a fast, feed-forward model trained entirely on "free" synthetic data.

Figure 1. Learning to Reconstruct 3D Animal Categories Purely from Synthetic Images. Our method learns to reconstruct articulated and textured animals from single images, using only virtual supervision from an off-the-shelf diffusion-based 2D image generator, without the curation of any real training images. The method generalizes to a wide range of animal categories, such as cows, horses, sheep, pigs, and dogs. Moreover, it can be used for controllable 3D synthesis. For instance, we can relight our generated 3D assets, swap their textures by conditioning on another input, and animate our articulated shapes, giving us more precise control over the generated assets.

Methods

The authors propose a two-stage training pipeline that uses Stable Diffusion as both a data generator and a critic.

  1. Synthetic Data Generation: Instead of real photos, the researchers prompt Stable Diffusion to generate thousands of images for a category (e.g., "a photograph of a cow"). They found that specific prompts like "walking away from the camera" were necessary to ensure the synthetic dataset had enough viewpoint diversity.
  2. Articulated Category Model: The core architecture is based on MagicPony, a monocular reconstruction network. It takes a single image and predicts shape ($s$), appearance ($a$), viewpoint ($v$), and illumination ($l$).
  3. Category-Level Score Distillation Sampling (SDS): This is the paper's key innovation. While standard SDS optimizes a single 3D asset, Farm3D uses it to supervise the entire category model. During training, the model renders "virtual views" of its reconstructed 3D objects from random angles. Stable Diffusion then acts as a critic, providing a gradient (the SDS loss) that tells the model how to adjust its parameters so the virtual views look more like realistic members of that animal category.
Figure 3. Training Pipeline. We prompt Stable Diffusion for synthetic images of an object category that are then used to train a monocular articulated object reconstruction model that factorises the input image of an object instance into articulated shape, appearance (albedo and diffuse and ambient intensities), viewpoint, and light direction. During training, we also sample virtual instance views that are then “critiqued” by Stable Diffusion to guide the learning.

Datasets

  • Synthetic Training Data: 30,000 synthetic images per category generated via Stable Diffusion 1.5.
  • Evaluation Benchmarks: PASCAL VOC and COCO (real images) for keypoint transfer tasks.
  • Animodel (New): The authors introduced a new synthetic benchmark consisting of high-quality 3D animal meshes (horses, cows, sheep) created by professional artists. This allows for the first direct quantitative evaluation of 3D geometry (using Chamfer Distance) for this class of methods.

Key Insights and Ideas

  • Diffusion Models as "Implicit Curators": While Stable Diffusion was trained on billions of messy internet images, the images it outputs are remarkably clean. The authors estimate only 4% of synthetic images contain occlusions, compared to 41% in ImageNet. This makes synthetic data superior for training 3D reconstructors.
  • The Importance of Noise Scheduling: The authors discovered that the standard SDS noise settings used for one-off 3D generation (like DreamFusion) are too aggressive for training a general category model. By lowering the maximum noise level ($t_{max} = 0.6$ instead of $0.98$), they ensured the SDS feedback remained faithful to the input image, preventing the model from collapsing or generating "hallucinated" geometry.
  • Feed-Forward Efficiency: Unlike optimization-based methods that take hours per object, Farm3D performs reconstruction in a single forward pass, taking less than a second.
Effect of noise scheduling on the learned prior shape

Key Results

  • Performance: Despite seeing zero real images during training, Farm3D achieves performance comparable to (and sometimes better than) models trained on curated real-world data. On the PASCAL VOC keypoint transfer task, it matched the performance of the MagicPony baseline.
  • Speed: Reconstructs 3D assets in ~0.5 seconds, compared to 1.5–3 hours for optimization-based competitors like RealFusion.
  • Controllability: The resulting models are fully articulated and relightable. They support "texture swapping" (applying the texture of one cow to the shape of another) and can be animated using standard graphics pipelines.

Limitations and Future Work

  • Category Specificity: The model currently requires a predefined skeleton template (e.g., a 4-legged animal topology) for each category. It cannot yet discover these structures automatically.
  • Anatomical Errors: The model is limited by the quality of the 2D generator. If Stable Diffusion generates a "horse" with five legs (a known failure mode), those errors can propagate into the 3D model.
  • Future Directions: The authors suggest that moving toward category-agnostic models and improving the anatomical consistency of the underlying diffusion models are the next logical steps.

Summary updated

Abstract

We present Farm3D, a method for learning category-specific 3D reconstructors for articulated objects, relying solely on "free" virtual supervision from a pre-trained 2D diffusion-based image generator. Recent approaches can learn a monocular network that predicts the 3D shape, albedo, illumination, and viewpoint of any object occurrence, given a collection of single-view images of an object category. However, these approaches heavily rely on manually curated clean training data, which are expensive to obtain. We propose a framework that uses an image generator, such as Stable Diffusion, to generate synthetic training data that are sufficiently clean and do not require further manual curation, enabling the learning of such a reconstruction network from scratch. Additionally, we incorporate the diffusion model as a score to enhance the learning process. The idea involves randomizing certain aspects of the reconstruction, such as viewpoint and illumination, generating virtual views of the reconstructed 3D object, and allowing the 2D network to assess the quality of the resulting image, thus providing feedback to the reconstructor. Unlike work based on distillation, which produces a single 3D asset for each textual prompt, our approach yields a monocular reconstruction network capable of outputting a controllable 3D asset from any given image, whether real or generated, in a single forward pass in a matter of seconds. Our network can be used for analysis, including monocular reconstruction, or for synthesis, generating articulated assets for real-time applications such as video games.
BibTeX
@inproceedings{jakab2024farm,
  author = {Tomas Jakab and Ruining Li and Shangzhe Wu and Christian Rupprecht and Andrea Vedaldi},
  title = {{Farm3D: Learning Articulated 3D Animals by Distilling 2D Diffusion}},
  booktitle = {3DV},
  year = {2024},
  doi = {10.1109/3dv62453.2024.00051},
}
Figure