Abstract
We introduce a generic framework that reduces the computational cost of object detection while retaining accuracy for scenarios where objects with varied sizes appear in high resolution images. Detection progresses in a coarse-to-fine manner, first on a down-sampled version of the image and then on a sequence of higher resolution regions identified as likely to improve the detection accuracy. Built upon reinforcement learning, our approach consists of a model (R-net) that uses coarse detection results to predict the potential accuracy gain for analyzing a region at a higher resolution and another model (Q-net) that sequentially selects regions to zoom in. Experiments on the Caltech Pedestrians dataset show that our approach reduces the number of processed pixels by over 50% without a drop in detection accuracy. The merits of our approach become more significant on a high resolution test set collected from YFCC100M dataset, where our approach maintains high detection performance while reducing the number of processed pixels by about 70% and the detection time by over 50%.
Introduction
Modern high-resolution imaging, such as 4K video from smartphones or DSLRs, presents a significant challenge for standard object detection models like Faster R-CNN or SSD. These models are typically trained on lower-resolution datasets. Applying them to large images usually results in a trade-off: downsampling the entire image causes small, distant objects to disappear, while tiling the image into high-resolution patches is computationally expensive and redundant, as large portions of the image often contain only background.
The Dynamic Zoom-in Network (DZNet) addresses this by intelligently selecting only the most promising regions to analyze at high resolution. This "coarse-to-fine" strategy allows for high accuracy across all object scales while drastically reducing computational waste.
The DZNet Framework
DZNet treats the object detector as a "black box" and uses two specialized neural networks to guide the detection process iteratively.
R-net: Accuracy Gain Regression
The Accuracy Gain Regression Network (R-net) analyzes a low-resolution "coarse" pass of the image. Instead of looking for uncertainty, it learns to predict an Accuracy Gain (AG) map. This map estimates how much detection accuracy would improve if a specific region were processed at high resolution. This allows the system to ignore regions that are already well-detected or regions where zooming would provide no benefit (e.g., empty sky).
Q-net: Sequential Region Selection
The Zoom-in Q-function Network (Q-net) uses Reinforcement Learning (RL) to decide where and in what order to zoom. By modeling the search as a Markov Decision Process, the Q-net balances potential accuracy improvements against computational costs. It considers the AG map and the history of previous zooms to select the next optimal window.
Iterative Refinement
The process is sequential:
- Coarse Detection: A fast pass on a downsampled image.
- Gain Prediction: R-net generates the AG map.
- Region Selection: Q-net picks a region to zoom.
- Fine Detection: A high-resolution detector runs on the selected region.
- Update: The state is updated, and the process repeats until the cost of further zooming outweighs the predicted gain.
Experimental Results
The framework was evaluated on the Caltech Pedestrian Detection (CPD) dataset and a new, high-resolution Web Pedestrian (WP) dataset (2,000 pixels on the long side).
- Efficiency: On the WP dataset, DZNet reduced the number of processed pixels by 70% and total detection time by over 50%.
- Accuracy Maintenance: The model maintained approximately 97% of the accuracy of a "Fine-detection-all" baseline that processes every pixel at high resolution.
- Comparison: DZNet significantly outperformed standard SSD and YOLOv2 on high-resolution images, as those models struggle with small objects due to mandatory global downsampling.
Conclusion
DZNet demonstrates that learning the "utility" of high-resolution processing is more efficient than traditional uncertainty-based methods. By penalizing pixel processing in the RL reward function, the agent learns a frugal yet effective search strategy. This flexible, black-box approach can be integrated with various detection architectures to enable efficient processing of large-scale visual data.
Summary updated