PreciseCam: Precise Camera Control for Text-to-Image Generation
Edurne Bernal-Berdun, Ana Serrano, Belen Masia, Matheus Gadelha, Yannick Hold-Geoffroy, Xin Sun, Diego Gutierrez
TL;DR
PreciseCam addresses the lack of precise camera control in text-to-image diffusion by introducing a PF-US per-pixel view representation conditioned on four intuitive parameters $\Omega=(\text{roll},\text{pitch},\text{vFoV},\xi)$. It leverages a ControlNet-adapted diffusion backbone to map these parameters to per-pixel information, enabling accurate view changes without requiring 3D scenes or multi-view data. A new dataset of 57,380 RGB images with ground-truth PF-US parameters is built from 360° panoramas to train the conditioning module. Results show robust, accurate camera control across extrinsic and intrinsic parameters, with competitive prompt fidelity and practical applications in background generation, video conditioning, and extended ControlNet composition. The work provides a publicly available dataset, model, and code, advancing precise camera-aware generation for artistic and realistic imagery alike.
Abstract
Images as an artistic medium often rely on specific camera angles and lens distortions to convey ideas or emotions; however, such precise control is missing in current text-to-image models. We propose an efficient and general solution that allows precise control over the camera when generating both photographic and artistic images. Unlike prior methods that rely on predefined shots, we rely solely on four simple extrinsic and intrinsic camera parameters, removing the need for pre-existing geometry, reference 3D objects, and multi-view data. We also present a novel dataset with more than 57,000 images, along with their text prompts and ground-truth camera parameters. Our evaluation shows precise camera control in text-to-image generation, surpassing traditional prompt engineering approaches. Our data, model, and code are publicly available at https://graphics.unizar.es/projects/PreciseCam2024.
