All models

dfh_alexnet_hash

An AlexNet-based deep hashing network that maps an image to a compact code for retrieval.

Image classification · 21 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 (25 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
21
Framework
PyTorch
Recurrent
No
Published
BMVC 2019
Cited by
17 (as of 20 October 2026)
Authors
Yunqiang Li, Wenjie Pei, Yufei Zha, Jan van Gemert
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
m4292
Graph hash
5f105cae4d83296ce751b9ee2e19ebadf4c1152647d0cbab54f36e1afcc1b3c8
Skeleton hash
7b541994af02baddbca3b5e06eb145b9716308fe475d9c80c8df0d3bc6e53b84
Architecture hash
a53b32c178fe8e24e77b6f976316bf0e71a0acf8f91b5c2aef6dd055edf85e3b
Diagram SHA-256
0b0ce8d4bcbf4e3b19156ab38e1d82825174fafe1eec00317d24f65a6b868b48
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

DFH (Deep Fisher Hashing) is an image hashing method: a CNN maps each image to a compact binary code so that distances between codes correspond to semantic distances between images. The paper starts from the observation that solving the problem in a continuous space and quantizing the solution afterwards is not guaranteed to give separable binary codes.

Its approach puts the quantization inside the optimization, with two modules optimized jointly on top of a convolutional network. A Pairwise Similarity Learning module uses a margin to push similar and non-similar image pairs further apart. A Quantized Center Learning module, inspired by Fisher's linear discriminant, maximizes the distance between images of different classes while minimizing the distance between images of the same class.

The network itself is a CNN whose last layer gives a continuous representation, and the output codes are its discretized values, K binary bits per image. In the paper, VGG-F is fine-tuned for the CIFAR-10 and NUS-WIDE experiments and AlexNet for ImageNet100. This model uses the AlexNet backbone, as in the DFH entry of DeepHash-pytorch, a collection of deep hashing baselines. The authors' README points to that repository as a re-implemented version of their work.

Key idea. The paper optimizes class separability directly in the binary space, combining a margin on pairwise distances with a Fisher-inspired module that separates classes and tightens each class.

  • DFH
  • Deep Fisher Hashing
  • Push for Quantization
  • deep hashing
  • image hashing
  • binary codes
  • image retrieval
  • learning to hash
  • supervised hashing
  • hash codes

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

Cite the paper

@misc{li2019pushquantizationdeepfisher,
      title={Push for Quantization: Deep Fisher Hashing}, 
      author={Yunqiang Li and Wenjie Pei and Yufei zha and Jan van Gemert},
      year={2019},
      eprint={1909.00206},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1909.00206}, 
}