All models

HSCNet

A coarse-to-fine network that predicts per-pixel 3D scene coordinates from one RGB image for camera localization.

Depth estimation · 109 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (89 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
37M
Operations
109
Framework
PyTorch
Recurrent
No
Published
CVPR 2020
Cited by
147 (as of 27 October 2026)
Authors
Xiaotian Li, Shuzhe Wang, Yi Zhao and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m17279
Graph hash
e65011f6a80863ec8b4c9a8ecd83f804cca666809f2853680d1da45bdc587647
Skeleton hash
68c8fd7ff2b36557993fcb6e98aa2d421fd66dd11f850b999fbacda5ccee91c9
Architecture hash
99f6d755a06802284a2e23429129f9d77034d335b02ef23d12dcd73fc91cc21d
Diagram SHA-256
16df3dd6c063d1598d995a2fcf75562f0445667fbd4d7a64b279970d77bf6021
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

HSCNet is a hierarchical scene coordinate network for camera localization: from a single RGB image it predicts, pixel by pixel, where each point lies in a known 3D scene, working from coarse to fine. The paper's motivation is that regressing those coordinates directly can be difficult for a single network in a large and ambiguous environment.

The network has a series of output layers, each conditioned on the previous ones: the earlier layers classify each pixel into progressively finer discrete location labels, and the final layer predicts the 3D coordinates. The labels come from hierarchically partitioning the ground-truth 3D point cloud, for example with k-means. Coarse predictions reach the finer levels through conditioning layers that scale and shift the feature map separately at each spatial position. During training the network is conditioned on ground-truth label maps, and at test time on its own predicted ones.

The main experiments use a 3-level hierarchy, so the network has two classification output layers and one regression output layer. For individual scenes the label tree has 25 branches at both levels. The camera pose is then computed from the predicted coordinates with a PnP-RANSAC algorithm. The paper reports that the method outperforms a regression-only baseline and, at publication, led single-image RGB localization on the 7-Scenes, 12-Scenes and Cambridge Landmarks datasets.

Key idea. The paper introduces a coarse-to-fine conditioning architecture in which classification layers predict progressively finer location labels before a final layer regresses each pixel's 3D scene coordinates.

  • hscnet
  • hierarchical scene coordinate network
  • visual localization
  • camera relocalization
  • scene coordinate regression
  • 6-dof camera pose
  • coarse-to-fine
  • single-image rgb localization

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{li2020hierarchicalscenecoordinateclassification,
      title={Hierarchical Scene Coordinate Classification and Regression for Visual Localization}, 
      author={Xiaotian Li and Shuzhe Wang and Yi Zhao and Jakob Verbeek and Juho Kannala},
      year={2020},
      eprint={1909.06216},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1909.06216}, 
}