Dynamic Zoom-in Network for Fast Object Detection in Large Images

Mingfei Gao, Ruichi Yu, Ang Li, Vlad I. Morariu, Larry S. Davis

Abstract

High-resolution imagery is a double-edged sword for computer vision: while it preserves the fine details necessary to detect small objects, the computational cost of processing millions of pixels often exceeds hardware limits. This paper presents the Dynamic Zoom-in Network (DZNet), a reinforcement learning-based framework designed to navigate this "resolution dilemma." DZNet learns to sequentially "zoom in" on promising image regions, significantly reducing computational overhead. Evaluations on high-resolution pedestrian datasets show that DZNet can cut the number of processed pixels by up to 70% with negligible impact on accuracy.

Introduction

Modern object detectors, such as Faster R-CNN and YOLO, are typically optimized for low-resolution inputs (e.g., 500x400 pixels). However, contemporary sensors frequently capture images at 4K resolution or higher. Downsampling these images to fit standard CNN architectures causes small, distant objects to vanish. Conversely, processing full-resolution images leads to a "pixel explosion," where memory requirements and inference times become prohibitive.

Overview of the Dynamic Zoom-in Network (DZNet) iterative process.

The Dynamic Zoom-in Network (DZNet) addresses this by treating detection as a sequential, resource-aware search. Instead of a single-pass brute-force calculation, the system first scans a low-resolution version of the image and then intelligently decides which specific patches warrant high-resolution inspection.

Methodology

The DZNet framework consists of three primary modules operating in a coarse-to-fine loop:

1. R-net: Accuracy Gain Regression

The R-net analyzes the output of a "coarse" detector run on a downsampled image. Its goal is to predict an Accuracy Gain (AG) map, which estimates the potential improvement in detection confidence if a specific region were processed at high resolution. By learning to identify where zooming would be redundant or even detrimental (e.g., cutting a large object in half), R-net ensures the system only focuses on high-utility areas.

2. Q-net: Reinforcement Learning for Region Selection

The Q-net serves as the decision-making agent. It takes the AG map and the history of previous zoom actions as its state representation. Using a Deep Q-Network (DQN) approach, it selects the next region to zoom into or decides to terminate the search. The agent is trained to maximize a cost-aware reward function that balances accuracy gains against the fraction of pixels processed, forcing the agent to be computationally efficient.

Detailed architecture of R-net and Q-net components showing the generation of the AG map and subsequent region selection.

3. Fine Detector

Regions selected by the Q-net are passed to a high-resolution "Fine Detector" (e.g., Faster R-CNN). The results from this pass are used to update the AG map, and the process iterates until the Q-net chooses a "stop" action.

Experimental Evaluation

The researchers evaluated DZNet on two benchmarks: the Caltech Pedestrian Dataset (CPD) and a newly curated Web Pedestrian (WP) Dataset featuring 2,000-pixel wide images.

  • Efficiency Gains: On the high-resolution WP dataset, DZNet reduced the total number of processed pixels by 70% and cut overall detection time by more than 50%.
  • Accuracy Maintenance: Despite the massive reduction in pixel processing, the system maintained high detection accuracy, outperforming single-shot detectors like SSD and YOLOv2 on large-scale images where object sizes vary significantly.
  • Caltech Results: Even on lower-resolution images (640x480), the method achieved a 50% reduction in processed pixels and a 25% speedup.

Key Insights and Discussion

A critical finding of this work is that "more pixels" do not always equate to "better detection." The R-net's ability to predict negative accuracy gains allows the system to avoid regions where high resolution might introduce noise or fragment large objects. Furthermore, the study demonstrates that a learned correlation between coarse and fine detections (via R-net) is a far more effective search signal than simple statistical uncertainty (entropy).

Conclusion

The Dynamic Zoom-in Network provides a scalable solution for high-resolution object detection. By mimicking the human ability to focus attention on specific details, the framework achieves significant speedups without sacrificing the precision needed for small object detection. Future work may involve tighter integration between the coarse and fine networks, such as feature sharing, to further optimize the inference pipeline.

Summary updated

BibTeX
@inproceedings{gao2018dynamic,
  author = {Mingfei Gao and Ruichi Yu and Ang Li and Vlad I. Morariu and Larry S. Davis},
  title = {{Dynamic Zoom-in Network for Fast Object Detection in Large Images}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  url = {https://openreview.net/forum?id=ry-wWxGubH},
}
Figure