# Pack and Detect: Fast Object Detection in Videos Using Region-of-Interest Packing

Pack and Detect: 관심 영역 패킹을 이용한 비디오 고속 객체 탐지

Athindran Ramesh Kumar, Balaraman Ravindran, Anand Raghunathan · arXiv · 2018년 9월 5일

- **연구 문제** 최신 객체 검출기는 정확하지만 계산량이 커서, 비디오에서 프레임마다 전체 검출을 수행하면 실시간 처리가 어렵습니다.
- **연구 방법** 앵커 프레임은 전체 크기로 검출하고, 앵커 사이 프레임은 이전 검출 결과에서 얻은 ROI를 하나의 축소 프레임에 패킹하여 검출합니다.
- **주요 결과** ImageNet VID 검증 집합에서 SSD300 기준 mAP 70.6이 PaD에서 69.5로 1.1 낮아졌고, 평균 프레임당 속도는 약 1.25배, 평균 FLOP은 32% 줄었다고 보고됩니다.

## 비디오 객체 검출의 계산 부담

최신 객체 검출기는 정확도가 높아졌지만 계산량이 커서 실시간 처리에는 부담이 됩니다. 비디오에서는 프레임마다 같은 검출기를 적용하면 인접 프레임 사이의 강한 시간적 상관이 활용되지 않아 비효율이 생깁니다. 이 논문은 정확도를 가능한 한 유지하면서 검출에 드는 연산을 줄이는 방법을 다룹니다.

저자들은 두 가지 관찰을 출발점으로 삼습니다. 첫째, 객체는 각 프레임의 작은 면적만 차지하는 경우가 많습니다. 둘째, 연속된 프레임 사이에는 객체 위치가 강하게 유지되는 경향이 있습니다. 이 두 관찰이 맞다면 전체 프레임을 매번 처리하지 않고도 객체가 있을 만한 영역만 검출기에 넣을 수 있습니다.

![Figure 1: Histogram of object occupancy ratio](https://refivu.com/papers/916436a0-4d88-45f3-a18e-15c5b6d022e8/figures/figure-9e3f4983e5e1e889dd928cd4c2a8b4e5.png?thumb=512)

**Figure 1** : Histogram of object occupancy ratio

[원문](https://arxiv.org/abs/1809.01701v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Athindran Ramesh Kumar, Balaraman Ravindran, Anand Raghunathan · Pack and Detect: Fast Object Detection in Videos Using Region-of-Interest Packing · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

## 앵커 프레임과 ROI 패킹의 동작

Pack and Detect(PaD)는 일정 간격 d마다 첫 프레임을 앵커 프레임으로 선택하여 전체 크기로 검출기에 전달합니다. 앵커 사이의 프레임에서는 이전 프레임의 검출 결과 중 최소 신뢰도 임계값 τ를 넘는 결과만 골라 관심 영역(ROI)을 정합니다. 실험에서 τ는 달리 명시하지 않는 한 0.2로 고정되었습니다.

ROI들은 교차 여부에 따라 그래프의 연결 요소로 묶이고, 각 연결 요소를 감싸는 경계 상자가 만들어집니다. 경계 상자들이 서로 겹치면 같은 객체의 일부가 패킹된 프레임에 두 번 들어갈 수 있으므로, 겹치지 않을 때까지 이 과정을 반복합니다. 이후 레이아웃을 정하고, 상자가 그 레이아웃에 들어가지 않으면 프레임을 전체 크기로 처리합니다.

검출기가 배경 문맥에 크게 의존한다는 실험적 관찰에 따라, 맞는 경우에는 각 경계 상자를 가로 또는 세로 방향으로 확장합니다. 확장은 레이아웃 크기에 이르거나 다른 상자와 겹치기 직전까지 진행되며, 그 뒤 다른 방향에서도 같은 절차를 반복합니다. 최종 상자 영역을 원본에서 잘라 정해진 배치에 따라 축소 프레임을 구성하고, 검출 위치는 원래 프레임 좌표로 되돌립니다. 이 방식은 검출기의 구조를 바꾸지 않고 입력만 압축하는 방법입니다.

## ImageNet VID에서의 검증 설정

실험은 ImageNet VID 데이터셋에서 수행되었습니다. 학습 집합은 VID 학습 집합의 3862개 비디오 스니펫과 DET 데이터셋에서 VID 클래스만 가져온 53539개 프레임을 합쳐 구성되었습니다. 평가는 VID 검증 집합의 555개 비디오 스니펫에서 이루어졌습니다.

기준선은 프레임 단위로 적용된 SSD300 검출기입니다. 이 검출기는 VGG16을 특징 추출기로 사용하며, 같은 네트워크를 300×300 입력과 150×150 축소 입력에 모두 적용하기 위해 penultimate 계층에서 처리를 멈추도록 구성했습니다. 이 설정은 SSD300 구조를 사용한 실험에 해당하며 다른 백본이나 다른 검출기에 대한 결과가 아닙니다. 배치 크기는 실시간 상황을 모사하기 위해 1로 두었습니다.

## 속도와 정확도의 교환

VID 검증 집합 전체에서 PaD는 inter-anchor distance d=5와 축소 크기 s2=150으로 실행되었습니다. 기준선 SSD300의 mAP는 70.6이었고, PaD의 mAP는 69.5로 1.1 낮아졌습니다. 이 값은 같은 SSD300 기준선과 PaD를 비교한 결과입니다.

속도 측면에서 PaD의 평균 프레임당 속도 향상은 약 1.25×였고, 평균 FLOP 감소율은 32%였습니다. 축소된 150×150 프레임을 처리하는 시간은 약 3배 빠르고, 해당 프레임의 FLOP 수는 약 4배 줄었다고 보고됩니다. 다만 ROI 패킹에 드는 평균 오버헤드는 전체 처리 시간의 약 9%였으며, 패킹이 실패하는 프레임에서는 전체 크기 처리가 추가로 발생합니다. 따라서 축소 프레임 자체의 비용 감소와 전체 파이프라인의 속도 향상은 구분해서 읽어야 합니다.

![Figure 8: Histogram of average per-frame processing time on a video-by-video basis](https://refivu.com/papers/916436a0-4d88-45f3-a18e-15c5b6d022e8/figures/figure-6419744828fbed892d21c9606f72239a.png?thumb=512)

**Figure 8** : Histogram of average per-frame processing time on a video-by-video basis

[원문](https://arxiv.org/abs/1809.01701v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Athindran Ramesh Kumar, Balaraman Ravindran, Anand Raghunathan · Pack and Detect: Fast Object Detection in Videos Using Region-of-Interest Packing · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

## 단순 ROI 패킹과의 비교

제안 알고리즘의 필요성을 확인하기 위해 단순 ROI 패킹과 비교했습니다. 단순 방식은 최대 네 개의 ROI를 수용하고, 객체가 다섯 개 이상이면 전체 크기로 처리합니다. 각 경계 상자는 1.2배로 고정 확장되며, 1개 객체는 축소 프레임 전체에, 2개 객체는 두 열에, 3~4개 객체는 2×2 영역에 배치됩니다. 이 방식에서는 greedy 배경 확장을 사용하지 않습니다.

d=5 조건에서 PaD의 ROI 패킹 방식은 mAP 69.5를 보였고, 단순 ROI 패킹은 mAP 56.8을 보였습니다. 이 차이는 축척과 종횡비를 보존하면서 배경 문맥을 충분히 제공하는 패킹 설계가 정확도에 중요함을 보여 줍니다. 다만 이 비교는 같은 d=5 설정의 두 패킹 방식에 한정된 결과입니다.

## 남은 제약과 향후 과제

저자들이 제시한 제약은 여러 가지입니다. 현재 앵커 프레임은 일정 간격으로 선택되므로, 이전 프레임에서 ROI 패킹이 성공했는지 여부를 반영하지 못합니다. 저자들은 이러한 정보를 활용한 동적 앵커 선택이 패킹 실패에 따른 오버헤드를 줄일 수 있다고 보고 향후 과제로 남겼습니다.

또한 현재 설계는 ROI 위치를 이전 프레임의 검출 결과에서만 얻으며, 움직임 모델은 아직 사용하지 않습니다. 저자들은 움직임 모델이 현재 프레임의 ROI를 더 잘 예측하고 더 큰 배치 크기로 확장하는 데 도움이 될 수 있다고 제안합니다. 모바일 GPU와 CPU 같은 더 제한된 플랫폼에서의 평가도 아직 수행되지 않았으며, 저자들은 이런 플랫폼에서 이득이 더 클 것으로 기대한다고 밝힙니다. 이 기대는 실측된 결과가 아니라 저자의 예상입니다.

## 논문 정보

- **저자**: Athindran Ramesh Kumar, Balaraman Ravindran, Anand Raghunathan
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2018년 9월 5일
- **등록일**: 2026년 11월 5일
- **수정일**: 2024년 7월 17일
- **버전**: v5
- **arXiv**: 1809.01701
- **DOI**: 10.1145/3297001.3297020
- **분류**: cs.CV · cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/1809.01701v5) · [원문 PDF ↗](https://arxiv.org/pdf/1809.01701v5)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Object detection in videos is an important task in computer vision for various applications such as object tracking, video summarization and video search. Although great progress has been made in improving the accuracy of object detection in recent years due to the rise of deep neural networks, the state-of-the-art algorithms are highly computationally intensive. In order to address this challenge, we make two important observations in the context of videos: (i) Objects often occupy only a small fraction of the area in each video frame, and (ii) There is a high likelihood of strong temporal correlation between consecutive frames. Based on these observations, we propose Pack and Detect (PaD), an approach to reduce the computational requirements of object detection in videos. In PaD, only selected video frames called anchor frames are processed at full size. In the frames that lie between anchor frames (inter-anchor frames), regions of interest (ROIs) are identified based on the detections in the previous frame. We propose an algorithm to pack the ROIs of each inter-anchor frame together into a reduced-size frame. The computational requirements of the detector are reduced due to the lower size of the input. In order to maintain the accuracy of object detection, the proposed algorithm expands the ROIs greedily to provide additional background around each object to the detector. PaD can use any underlying neural network architecture to process the full-size and reduced-size frames. Experiments using the ImageNet video object detection dataset indicate that PaD can potentially reduce the number of FLOPS required for a frame by $4\\times$. This leads to an overall increase in throughput of $1.25\\times$ on a 2.1 GHz Intel Xeon server with a NVIDIA Titan X GPU at the cost of $1.1\\%$ drop in accuracy.

## 원문 인용

Athindran Ramesh Kumar, Balaraman Ravindran, Anand Raghunathan (2018). Pack and Detect: Fast Object Detection in Videos Using Region-of-Interest Packing. arXiv:1809.01701v5. https://doi.org/10.1145/3297001.3297020

**BibTeX**

```
@article{kumar2018pack,
  title = {{Pack and Detect: Fast Object Detection in Videos Using Region-of-Interest Packing}},
  author = {Athindran Ramesh Kumar and Balaraman Ravindran and Anand Raghunathan},
  year = {2018},
  eprint = {1809.01701},
  archivePrefix = {arXiv},
  doi = {10.1145/3297001.3297020},
  url = {https://arxiv.org/abs/1809.01701v5}
}
```

## 이 논문의 용어

- [FLOPs](https://refivu.com/terms/14c405888d5b-flops)
- [Throughput](https://refivu.com/terms/f064ae564aec-throughput)
- [connected components](https://refivu.com/terms/e96787d48885-connected-components)

## 다른 논문 해설

- [A Taxonomy of Deep Convolutional Neural Nets for Computer Vision](https://refivu.com/papers/611b5764-a377-4735-a512-6413d44e069d-a-taxonomy-of-deep-convolutional-neural-nets-for.md)
- [gvnn: Neural Network Library for Geometric Computer Vision](https://refivu.com/papers/f1263a1d-6759-4bd2-aaa8-47fbc185e099-gvnn-neural-network-library-for-geometric-computer-vision.md)
- [Bitstream-Corrupted Video Recovery: A Novel Benchmark Dataset and Method](https://refivu.com/papers/b2fc93d6-c62d-4e40-a2b7-21d887fc8d68-bitstream-corrupted-video-recovery-a-novel-benchmark-dataset.md)
- [ELEVATER: A Benchmark and Toolkit for Evaluating Language-Augmented Visual Models](https://refivu.com/papers/d3be8dc0-aaa4-4e80-84d7-1f3c5a5c7c5b-elevater-a-benchmark-and-toolkit-for-evaluating-language.md)
- [Unsupervised Change Detection for Space Habitats Using 3D Point Clouds](https://refivu.com/papers/fdb2438a-76c5-49dd-a861-e8a85664889f-unsupervised-change-detection-for-space-habitats-using-3d.md)
- [Point-DynRF: Point-based Dynamic Radiance Fields from a Monocular Video](https://refivu.com/papers/5fa194ae-fb88-451a-8cc4-ace226541c8f-point-dynrf-point-based-dynamic-radiance-fields-from.md)
- [DIDiffGes: Decoupled Semi-Implicit Diffusion Models for Real-time Gesture Generation from Speech](https://refivu.com/papers/8f4a2b89-8c77-42b7-9922-fa7affd28442-didiffges-decoupled-semi-implicit-diffusion-models-for-real.md)
- [Improving Deep Generative Models on Many-To-One Image-to-Image Translation](https://refivu.com/papers/bff93574-362a-4005-af66-3fced9629f6f-improving-deep-generative-models-on-many-to-one.md)
- [Tailoring Generative Adversarial Networks for Smooth Airfoil Design](https://refivu.com/papers/a06589f0-bc41-4ee1-a8ed-9bad35ece7e1-tailoring-generative-adversarial-networks-for-smooth-airfoil.md)
- [Generative Diffusion Models for Fast Simulations of Particle Collisions at CERN](https://refivu.com/papers/3a63aa10-a096-49de-8000-d8794fc60090-generative-diffusion-models-for-fast-simulations-of-particle.md)
- [Anchor-Controlled Generative Adversarial Network for High-Fidelity Electromagnetic and Structurally Diverse Metasurface Design](https://refivu.com/papers/dac5fcab-8159-4e86-9445-cab7d8e284d1-anchor-controlled-generative-adversarial-network-for-high.md)
- [Generative Adversarial Networks for Imputing Sparse Learning Performance](https://refivu.com/papers/87bc737c-4111-44e5-bfdb-1faaa75c24b6-generative-adversarial-networks-for-imputing-sparse-learning.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/916436a0-4d88-45f3-a18e-15c5b6d022e8-pack-and-detect-fast-object-detection-in-videos)
