All models

data2vec-vision (image classification)

The image model of Data2Vec, which learns by predicting latent representations of the full input from a masked view.

Image classification · 336 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 (36 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
85.7M
Operations
336
Framework
PyTorch
Recurrent
No
Name in source
data2vec-vision:image-classification
License
Apache-2.0
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
m4092
Graph hash
483e9d6b8feadceba126ef80ff234bedcf324dfab2f73902172e97a4af7488c3
Skeleton hash
5456291ed8aeba48b9274e0f7baa5dfc691363897d6cecbfac8a03508ad9cb83
Architecture hash
ca2bfad2ff37a9e26a5837ca8cd4ea3cecbd68aa46bce2761ec6a3bf73cf370a
Diagram SHA-256
4f08ded053d4191dd273a068aa25d5d67d8b629bc1c7c96882fc8cb2c1c6031b
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

transformers.AutoModelForImageClassification.from_config()

What it is

This model is Data2VecVisionForImageClassification, the Data2VecVision model set up for image classification.

About this model's family

Data2VecVision is the image model of Data2Vec, a unified framework for self-supervised learning across text, audio and images. The core idea is to predict latent representations of the full input data based on a masked view of the input, using a standard Transformer architecture. Instead of modality-specific targets such as words, visual tokens or units of human speech, it predicts contextualized latent representations that contain information from the entire input.

Data2VecAudio, Data2VecText and Data2VecVision have all been trained using the same self-supervised learning method. Data2VecVision is used for image classification and semantic segmentation. Its preprocessing is identical to BeitModel, including feature extraction.

Key idea. Data2Vec uses the same learning method for speech, NLP and computer vision, predicting latent representations of the full input from a masked view of it.

  • data2vec
  • data2vec vision
  • data2vec-vision
  • data2vecvision
  • self-supervised learning
  • masked image prediction
  • image classification
  • semantic segmentation

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