Deep Cropping via Attention Box Prediction and Aesthetics Assessment

Wenguan Wang, Jianbing Shen

Introduction

Automating photo cropping is a complex challenge in image processing. While humans naturally identify a subject and then adjust the frame for composition, computational methods have historically struggled to balance these two aspects efficiently. Traditional approaches typically rely on either attention-based models, which focus on salient objects but ignore overall composition, or aesthetics-based models, which evaluate thousands of "sliding window" candidates—a process that is computationally prohibitive for real-time applications.

Overview of the proposed deep cropping pipeline compared to conventional methods.

This paper introduces a novel deep learning framework that mimics the human "determine-then-adjust" workflow. By cascading an Attention Box Prediction (ABP) network with an Aesthetics Assessment (AA) network, the system identifies the most informative region of an image and then fine-tunes the crop for maximum beauty, achieving state-of-the-art results at a high-speed 5 frames per second.

Methodology: The Cascaded Architecture

The core innovation lies in using visual attention to constrain the search space for aesthetic evaluation. Instead of scanning the entire image, the model first identifies the most informative region and then fine-tunes the crop around that area.

Comparison between the conventional sliding window process and the proposed cascaded deep architecture.

1. Attention Box Prediction (ABP)

The ABP branch serves as the "determine" stage. Using a VGGNet backbone, it directly regresses a bounding box that encompasses the most significant visual information. Unlike standard saliency maps that produce heatmaps, the ABP outputs specific box coordinates and confidence scores, effectively identifying the primary subject of the image.

2. Aesthetics Assessment (AA)

Once the attention box is established, the system generates approximately 1,000 candidate crops in its vicinity. The AA branch then ranks these candidates based on learned aesthetic principles. To ensure the network evaluates composition accurately, the authors utilize Region of Interest (RoI) pooling. This technique allows the network to process crops of varying aspect ratios without warping or deforming the image, preserving the geometric relationships essential for aesthetic judgment.

3. Computational Efficiency

Efficiency is achieved through feature sharing. Both the ABP and AA branches share initial convolutional layers. Features are computed once for the entire image, and candidate crops are evaluated by sampling from the feature map rather than re-processing raw pixels.

Training and Datasets

A significant hurdle in automated cropping is the lack of massive, labeled cropping datasets. The authors overcome this by leveraging proxy data:

  • Attention Training: The ABP branch was trained on the SALICON dataset, converting human eye-fixation data into ground-truth attention boxes.
  • Aesthetics Training: The AA branch utilized the AVA (Aesthetic Visual Analysis) dataset, which contains over 250,000 images with community-sourced beauty ratings.
  • Evaluation: The integrated model was validated on the MSR-ICD and FLMS benchmarks, which consist of images cropped by professional photographers.

Results and Performance

The proposed method demonstrates significant improvements over existing techniques in both speed and accuracy:

  • Accuracy: On the MSR-ICD dataset, the model achieved an Intersection over Union (IoU) of 0.813, outperforming previous methods like ATC (0.605) and LCC (0.748).
  • Precision: The model showed a lower Boundary Displacement Error (BDE), indicating that its predicted crop boundaries align closely with expert human choices.
  • Speed: By avoiding the exhaustive sliding-window search, the system operates at 5 fps on a standard GPU, making it suitable for interactive applications.

Conclusion

By formalizing the cropping process as a two-stage "determine-then-adjust" task, this research provides a practical and biologically inspired solution to a subjective editing problem. While the model performs well against expert benchmarks, the authors note that photo cropping remains inherently subjective, and future work may involve deeper aesthetic branches or better semantic scene understanding.

Summary updated

BibTeX
@inproceedings{wang2017deep,
  author = {Wenguan Wang and Jianbing Shen},
  title = {{Deep Cropping via Attention Box Prediction and Aesthetics Assessment}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.240},
}
Figure