Ayush Sarkar*, Hanlin Mai*, Amitabh Mahapatra*, Svetlana Lazebnik, David A. Forsyth, Anand Bhattad†
University of Illinois Urbana-Champaign, †Toyota Technological Institute at Chicago
*equal contribution
Abstract: Generative models can produce impressively realistic images. This paper demonstrates that generated images have geometric features different from those of real images. We build a set of collections of generated images, prequalified to fool simple, signal-based classifiers into believing they are real. We then show that prequalified generated images can be identified reliably by classifiers that only look at geometric properties. We use three such classifiers. All three classifiers are denied access to image pixels, and look only at derived geometric features. The first classifier looks at the perspective field of th image, the second looks at lines detected in the image, and the third looks at relations between detected objects and shadows. Our procedure detects generated images more reliably than SOTA local signal based detectors, for images from a number of distinct generators. Saliency maps suggest that the classifiers can identify geometric problems reliably. We conclude that current generators cannot reliably reproduce geometric properties of real images.
Our experiments are done on the dataset with 256 x 256 resolution, which contains generated and real images with a train/val/test split.
We also release a high quality (1024 x 1024) dataset that contains only generated images for future research.
Download the dataset and put them in the ./dataset
folder
Dataset (256x256) | High Quality Dataset (1024x1024) |
---|---|
Download | Download |
Navigate to one of the following directories and follow the instructions in the README
prequalifier/
object_shadow/
perspective_fields/
line_segment/
@InProceedings{Sarkar_2024_CVPR,
author = {Sarkar, Ayush and Mai, Hanlin and Mahapatra, Amitabh and Lazebnik, Svetlana and Forsyth, D.A. and Bhattad, Anand},
title = {Shadows Don't Lie and Lines Can't Bend! Generative Models don't know Projective Geometry...for now},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2024},
pages = {28140-28149}
}