# gvnn: Neural Network Library for Geometric Computer Vision

gvnn: 기하학적 컴퓨터 비전을 위한 신경망 라이브러리

Ankur Handa, Michael Bloesch, Viorica Patraucean, Simon Stent, John McCormac, Andrew Davison · arXiv · 2016년 7월 25일

- **연구 문제** 고전적 기하 연산을 신경망 안에서 역전파가 가능한 층으로 구현하는 문제를 다룹니다.
- **연구 방법** gvnn은 공간 변환기 네트워크의 2D 변환을 3D 회전·평행이동·스케일 층과 화소별 변환 층으로 확장합니다.
- **주요 결과** 회전 및 SE3 운동 학습 실험에서 학습이 진행될수록 잔차가 줄어드는 정성적 결과를 보였으며, SE3 실험은 합성 데이터셋에서만 수행되었습니다.

## 기하 비전 연산을 신경망에 넣는 문제

기하 컴퓨터 비전에서는 좌표 변환, 카메라 투영, 영상 워핑 같은 고정된 미분 가능 연산이 많이 쓰입니다. 그러나 이 연산들은 대개 고전적 파이프라인 안에서 따로 다뤄지며, 딥러닝 모델의 학습 과정과 자연스럽게 결합되지 않습니다. 이 논문은 Spatial Transformer Networks의 아이디어를 이어받아, 이러한 기하 연산을 역전파가 가능한 층으로 구현한 Torch 라이브러리 gvnn을 제안합니다. 이 층들은 대부분 학습되는 내부 파라미터가 없고, 기하 연산을 신경망 안에 고정된 계산 블록으로 삽입하게 합니다.

## 전역 변환 층과 투영 층

gvnn의 전역 변환 층은 Spatial Transformer Networks의 2D 변환을 3D로 확장합니다. SO3 층은 so(3) 벡터 v를 SO3 지수 사상 R(v)=exp(\[v\]×)로 회전 행렬로 바꾸고, 이에 대한 역전파 기울기는 ∂C/∂v = ∂C/∂R(v) · ∂R(v)/∂v로 계산됩니다. SE3 층은 3×1 평행이동 t를 더해 T=\[R\|t\]∈SE3를 만들고, Sim3 층은 스케일 인자 s를 추가합니다. 3D 격자 생성기는 깊이 맵으로 영상 픽셀을 3D 점으로 바꾸고 T를 적용합니다. 투영 층은 초점거리와 중심 좌표를 사용해 3D 점을 2D 영상 평면에 투영합니다. 투영 층에서 w가 매우 작으면 기울기 검사가 실패하므로, 저자들은 Kinect나 ASUS xtion 같은 카메라에서 w가 10 cm보다 크다는 조건을 언급합니다.

## 화소별 변환과 강건 손실

장면의 동적 움직임을 다루기 위해 gvnn은 화소별 변환 층도 제공합니다. 최소 파라미터화 광류는 화소마다 2개의 평행이동 파라미터를 가지며, 원문은 Patraucean et al.의 구현과 같이 Huber penalty로 평활성을 부여한다고 설명합니다. 평면 장면에서는 6-DoF 아핀 변환이나 SE(2) 변환을 사용하고, 깊이 기반 RGB-D 정렬에서는 픽셀마다 Sim3 또는 앵커점을 포함한 10-DoF 변환을 적용합니다. 또한 최소제곱 손실을 M-estimator로 대체하는 옵션도 포함되며, 원문 표에는 Huber, Cauchy, Geman-McClure, Tukey 형태의 ρ(x)와 ψ(x)가 정리되어 있습니다.

## 깊이 기반 워핑으로 본 시각 주행 거리 추정 실험

실험은 연속된 두 프레임 Iref와 Ilive를 샴 네트워크에 넣어 6-DoF 상대 자세 벡터를 회귀하는 설정에서 이루어집니다. 네트워크는 VGG-16에서 영감을 받은 구조로, 3×3 합성곱과 PReLU를 쓰며 풀링 없이 stride 2로 다운샘플링합니다. 학습 손실은 자세 벡터를 직접 비교하지 않고, 예측 변환으로 워핑한 영상과 정답 변환으로 워핑한 영상의 픽셀 차이를 사용합니다. 저자들은 이 방식이 회전과 평행이동의 가중치를 따로 튜닝하지 않아도 같은 공간에서 비교하게 한다고 설명합니다. 마지막 층의 가중치를 0으로 초기화하면 초기 상대 자세가 항등 변환에서 시작합니다. 이 실험은 주행 거리 추정 과제의 건전성 검사로 제시되며, 대규모 학습은 향후 과제로 남아 있습니다.

![Figure 2: We train a siamese network to regress to the relative pose vector between the two consecutive frames, Iref and Ilive. This pose vector is turned into…](https://refivu.com/papers/f1263a1d-6759-4bd2-aaa8-47fbc185e099/figures/figure-36f782f348cd65c0260d738e69ae8bb3.png?thumb=512)

**Fig. 2** . We train a siamese network to regress to the relative pose vector between the two consecutive frames, Iref and Ilive. This pose vector is turned into a 3 ×4 transformation matrix that transforms 3D points coming from the 3D grid generator and further projected into a 2D plane via projection layer which are used to generate a warped image. Additionally, the 3D grid generator needs an explicit depth-map as input to generate 3D points for any 3D warping.

[원문](https://arxiv.org/abs/1607.07405v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ankur Handa, Michael Bloesch, Viorica Patraucean, Simon Stent, John McCormac, Andrew Davison · gvnn: Neural Network Library for Geometric Computer Vision · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.

## SO3와 SE3 운동 학습 결과

순수 회전 실험에서는 IMU 판독값으로 얻은 회전 행렬을 사용해 합성 영상 쌍을 생성하고, 학습 중 차이 영상의 잔차가 점차 줄어드는 것을 정성적으로 보여 줍니다. 이 결과는 학습 진행에 따른 잔차 감소를 보여 주는 정성적 확인이며, 정량 지표는 제시되지 않습니다. SE3 실험은 ICL-NUIM에서 생성한 9.5K 프레임의 긴 궤적을 학습 세트로 사용하며, 깊이 맵이 필요하기 때문에 합성 데이터셋에서만 수행되었습니다. 저자들은 실제 데이터에서의 검증을 향후 과제로 밝힙니다.

![Figure 3: Training results on pure rotation motion. The graphs show how the training error decreases as number of epochs increase. This serves as a sanity chec…](https://refivu.com/papers/f1263a1d-6759-4bd2-aaa8-47fbc185e099/figures/figure-7f6cae4f3fc6cab3c542d411d5ebf791.png?thumb=512)

**Fig. 3** . Training results on pure rotation motion. The graphs show how the training error decreases as number of epochs increase. This serves as a sanity check for our net- work that includes many new layers that we propose in this library. The improvement in the training is qualitatively evident from the diﬀerence images: early stages in the optimisation show high residual in the registration but as more epochs are thrown to the optimisation, the residual error gracefully decreases.

[원문](https://arxiv.org/abs/1607.07405v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ankur Handa, Michael Bloesch, Viorica Patraucean, Simon Stent, John McCormac, Andrew Davison · gvnn: Neural Network Library for Geometric Computer Vision · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.

![Figure 4: Sample frames from our new ICL-NUIM trajectory](https://refivu.com/papers/f1263a1d-6759-4bd2-aaa8-47fbc185e099/figures/figure-d9980f7257480203aae099e65c190b21.png?thumb=512)

**Fig. 4** . Sample frames from our new ICL-NUIM trajectory.

[원문](https://arxiv.org/abs/1607.07405v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ankur Handa, Michael Bloesch, Viorica Patraucean, Simon Stent, John McCormac, Andrew Davison · gvnn: Neural Network Library for Geometric Computer Vision · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.

## 향후 과제와 적용 범위

이 논문의 실험은 기능 확인을 위한 초기 결과이며, 시각 주행 거리 추정 학습은 건전성 검사 수준으로 제시되었습니다. 저자들은 향후 feed-forward와 feedback 연결을 가진 네트워크를 대규모 데이터에서 학습하고, SceneNet 같은 합성 데이터나 대규모 RGB 또는 RGB-D 영상으로 확장하겠다고 밝힙니다. 또한 SE3 실험은 깊이 입력이 필요해 합성 데이터에만 적용되었으므로, 실제 데이터에서의 성능은 이 논문의 결과로 확인되지 않습니다.

## 논문 정보

- **저자**: Ankur Handa, Michael Bloesch, Viorica Patraucean, Simon Stent, John McCormac, Andrew Davison
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2016년 7월 25일
- **등록일**: 2026년 11월 5일
- **수정일**: 2016년 8월 12일
- **버전**: v3
- **arXiv**: 1607.07405
- **분류**: cs.CV · cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

We introduce gvnn, a neural network library in Torch aimed towards bridging the gap between classic geometric computer vision and deep learning. Inspired by the recent success of Spatial Transformer Networks, we propose several new layers which are often used as parametric transformations on the data in geometric computer vision. These layers can be inserted within a neural network much in the spirit of the original spatial transformers and allow backpropagation to enable end-to-end learning of a network involving any domain knowledge in geometric computer vision. This opens up applications in learning invariance to 3D geometric transformation for place recognition, end-to-end visual odometry, depth estimation and unsupervised learning through warping with a parametric transformation for image reconstruction error.

## 원문 인용

Ankur Handa, Michael Bloesch, Viorica Patraucean, Simon Stent, John McCormac, Andrew Davison (2016). gvnn: Neural Network Library for Geometric Computer Vision. arXiv:1607.07405v3. https://arxiv.org/abs/1607.07405v3

**BibTeX**

```
@misc{handa2016gvnn,
  title = {{gvnn: Neural Network Library for Geometric Computer Vision}},
  author = {Ankur Handa and Michael Bloesch and Viorica Patraucean and Simon Stent and John McCormac and Andrew Davison},
  year = {2016},
  eprint = {1607.07405},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1607.07405v3}
}
```

## 이 논문의 용어

- [VGG-16](https://refivu.com/terms/50d02785f4b9-vgg-16)
- [PReLU](https://refivu.com/terms/57602171b023-prelu)
- [Siamese network](https://refivu.com/terms/3d037e233c2c-siamese-network)
- [bundle adjustment](https://refivu.com/terms/eb3fc03003eb-bundle-adjustment)
- [Spatial Transformer Networks](https://refivu.com/terms/e9719b80a993-spatial-transformer-networks)
- [Geman-McClure](https://refivu.com/terms/628e8dd43ccc-geman-mcclure)
- [ICL-NUIM](https://refivu.com/terms/fc6ae7c70816-icl-nuim)
- [Projection Layer](https://refivu.com/terms/71d5f677a612-projection-layer)
- [visual odometry](https://refivu.com/terms/3d99138ede8a-visual-odometry)

## 다른 논문 해설

- [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)
- [Leveraging Deepfakes to Close the Domain Gap between Real and Synthetic Images in Facial Capture Pipelines](https://refivu.com/papers/1b5e84b7-597a-4917-85b6-c12e245551f0-leveraging-deepfakes-to-close-the-domain-gap-between.md)
- [AnimateAnything: Fine-Grained Open Domain Image Animation with Motion Guidance](https://refivu.com/papers/2f975474-915c-4311-b2d7-9c8c76c7dbf7-animateanything-fine-grained-open-domain-image-animation.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/f1263a1d-6759-4bd2-aaa8-47fbc185e099-gvnn-neural-network-library-for-geometric-computer-vision)
