All models

dpsh_alexnet_hash

Deep hashing network that learns image features and binary hash codes together from pairwise labels.

Image classification · 23 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 (27 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
57.2M
Operations
23
Framework
PyTorch
Recurrent
No
Published
2016
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
m11806
Graph hash
caff179f39724e9d07a40203a8b6bc8946e525640d3b1458e22c82d7e7d962b4
Skeleton hash
44160f74fe26d9a0e246c5cf99b435153e7c76513a837ae856ea91faff25bbaa
Architecture hash
cb010fcedf09e2995115ab5e19ffb3aeef77d0e902df07d3e11d7fab3111efa1
Diagram SHA-256
c11eb940a966a76b8b55fdf2068a89f05c41a95ff01b48d375434b0bb22facc3
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.ri_ts_graph_hash:build_dpsh: build({})

What it is

DPSH, short for deep pairwise-supervised hashing, is a deep hashing method for image retrieval: it learns image features and hash codes at the same time, supervised by pairwise labels. The paper's starting point is that most existing hashing methods relied on hand-crafted features, which might not be optimally compatible with the hashing procedure.

The model has three components trained together: a deep network that learns an image representation from pixels, a hash function that maps the representation to hash codes, and a loss that measures the quality of the codes against the pairwise labels. In the paper the feature network has seven layers, the same as those of CNN-F. The authors add that other CNN architectures, such as the AlexNet, can be used in place of CNN-F. A fully-connected layer connects the feature network to the hashing objective. For training, two CNNs with the same structure and shared weights process pairs of images, because both the input and the loss are defined on pairs.

The experiments compare against baselines on two datasets, CIFAR-10 and NUS-WIDE. A variant called DPSH0, which does not update the first seven layers during learning, did much worse than the full model, and the authors read this as evidence for learning features and codes in one framework.

Key idea. DPSH integrates a deep network, a hash function and a pairwise-label loss into one end-to-end architecture, so that feature learning and hash-code learning happen simultaneously.

  • dpsh
  • deep pairwise-supervised hashing
  • deep hashing
  • supervised hashing
  • image retrieval
  • hash codes
  • pairwise labels
  • learning to hash

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