AI SeedbankHelp preserve open and free AI for humanity's future

← All models

google_tipsv2-so400m14

google · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: 1 · Leechers: 0

Observed 2026-09-02T13:56:39Z via announce.aitorrent.org:7070.

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: apache-2.0 tags:

  • vision
  • image-text
  • contrastive-learning
  • zero-shot
  • feature-extraction
  • arxiv:2604.12012 library_name: transformers pipeline_tag: zero-shot-image-classification

TIPSv2 — SO400m/14

TIPSv2 (Text-Image Pre-training with Spatial awareness) is a family of contrastive vision-language models that produce spatially rich image features aligned with text embeddings. This is the SO400m variant with 412M vision params and 448M text params. Try the code snippets below or check out the GitHub repo for more use cases and visualizations, including zero-shot segmentation.

Variant Vision params Text params Embed dim DPT Heads
B/14 86M 110M 768 B/14-dpt
L/14 303M 184M 1024 L/14-dpt
SO400m/14 412M 448M 1152 SO400m/14-dpt
g/14 1.1B 389M 1536 g/14-dpt

Usage

pip install transformers torch torchvision sentencepiece scikit-learn

Load the model

from transformers import AutoModel

model = AutoModel.from_pretrained("google/tipsv2-so400m14", trust_remote_code=True)
model.eval()

Encode images

Images should be tensors in [0, 1] range (just ToTensor(), no ImageNet normalization).

from torchvision import transforms
from PIL import Image
import requests

transform = transforms.Compose([
    transforms.Resize((448, 448)),
    transforms.ToTensor(),
])

url = "https://huggingface.co/spaces/google/TIPSv2/resolve/main/examples/zeroseg/pascal_context_00049_image.png"
image = Image.open(requests.get(url, stream=True).raw)
pixel_values = transform(image).unsqueeze(0)
out = model.encode_image(pixel_values)

print(out.cls_token.shape)     # (1, 1, 1152) — global image embedding
print(out.patch_tokens.shape)  # (1, 1024, 1152) — per-patch spatial features

Encode text

text_emb = model.encode_text(["a photo of a bus", "a photo of a dog"])
print(text_emb.shape)  # (2, 1152) — one embedding per query

Zero-shot classification

import torch.nn.functional as F

classes = ["bus", "car", "dog", "cat"]
cls = F.normalize(out.cls_token[:, 0, :], dim=-1)
text_emb = F.normalize(model.encode_text(classes), dim=-1)
similarity = cls @ text_emb.T
print(classes[similarity.argmax()])  # bus — predicted class

Visualize spatial features

import numpy as np
from sklearn.decomposition import PCA

spatial = out.patch_tokens.reshape(1, 32, 32, 1152)
feat = spatial[0].detach().cpu().numpy().reshape(-1, 1152)
rgb = PCA(n_components=3, whiten=True).fit_transform(feat).reshape(32, 32, 3)
rgb = 1 / (1 + np.exp(-2.0 * rgb))  # sigmoid for [0, 1] range with good contrast
print(rgb.shape)  # (32, 32, 3) — PCA of patch features as RGB

GPU inference

model = model.cuda()
out = model.encode_image(pixel_values.cuda())
text_emb = model.encode_text(["a city"])

Model details

  • Architecture: ViT vision encoder (27 layers) + Transformer text encoder (27 layers)
  • Image preprocessing: resize to any resolution, convert to [0, 1] (no ImageNet normalization)
  • Text preprocessing: SentencePiece tokenizer, lowercased, max 64 tokens
  • Patch size: 14x14 pixels

License

Apache 2.0

Citation

@inproceedings{cao2026tipsv2,
  title     = {{TIPSv2: Advancing Vision-Language Pretraining with Enhanced Patch-Text Alignment}},
  author    = {Cao, Bingyi and Chen, Koert and Maninis, Kevis-Kokitsi and Chen, Kaifeng and Karpur, Arjun and Xia, Ye and Dua, Sahil and Dabral, Tanmaya and Han, Guangxing and Han, Bohyung and Ainslie, Joshua and Bewley, Alex and Jacob, Mithun and Wagner, Rene and Ramos, Washington and Choromanski, Krzysztof and Seyedhosseini, Mojtaba and Zhou, Howard and Araujo, Andre},
  booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
  year      = {2026},
  url       = {https://arxiv.org/abs/2604.12012}
}

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:7fcb11e0b546c6d186be8db71fd43395cee74026&dn=google_tipsv2-so400m14

Open magnet in torrent client · infohash 7fcb11e0b546c6d186be8db71fd43395cee74026

Files & hashes

PathSizesha1sha256
README.md4.3 KB (4,422 B)e2aab43fb2b01273fd3b5992b9c0fc6c32ae2beb4496755fa7d0ba4953384baadd4a791a4107026df1250eaf1f93b19a756fc0bd
config.json2.0 KB (2,026 B)9abe1add3d7088c3651efed5104276095dc7e96a43f82d0e8c7feb70605a90c94dee044cc48b4966990fd16f5a36ffb6e4b487d6
configuration_tips.py1.7 KB (1,697 B)949898501c0524415b34ce5cd2857cd993043b55ef8306a43dc0826dbe4e563089b6a3269c60680a02281e2533cdc5d1a6516e42
image_encoder.py30.0 KB (30,766 B)c59a84d301c8f0a463d20174bad224032f3196a9862fab50ddd623222112bd589b348bba57ead44523ac4dcc399422955ad76de3
model.safetensors3.21 GB (3,446,991,224 B)b848e360c88358464168a98cddb5f5d99d195b2765d89b4ee0083d2c295d2005b82604b9d1b1e950c618c6625cf8c4d7c3621930
modeling_tips.py4.6 KB (4,681 B)f37afe6e6652030d080cf50c024ede71c214f5e811dae40ee6aa32cd0bb0ddcbfdcd871abbc358a489e7d916651342acecff8a8f
processor_config.json347 B (347 B)2c846ce438c2853af89221b4aeeecb1f2f042e59a3da1bf8a182db305c5dacfcf2f28fb09567028bade087e7344497819124523f
text_encoder.py10.2 KB (10,490 B)ff473c6157c3edd07d9561321459186ed7f84e2704addbc2f19664e48ef963452e855d1bce185be9aaf276fbd9e0a70d7f0918df
tokenizer.model714.5 KB (731,655 B)f1f45254ef3eb9e887ebac9ee6b0997f880009414c40e7723348d5d9a3d3c2bdcec5120d97fb29edfe1bf118b4494bce02fc7624
tokenizer_config.json292 B (292 B)da00bd6ccb6a46127b0e7fa7147433ab1491cfc30da353fd61bc490106aa9f0ae2e097802182106d1af182cfe4aa654df0ce729b

Cite this release

Canonical URL
https://aiseedbank.org/models/google_tipsv2-so400m14/
Slug
google_tipsv2-so400m14
Infohash
7fcb11e0b546c6d186be8db71fd43395cee74026
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: google_tipsv2-so400m14.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorygoogle/tipsv2-so400m14
Revision (pinned)9b102a53330ded7d64a5ba5d743fbf333f23fc95
Fetched at2026-09-02T04:35:47Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-02T04:36:22Z

apache-2.03.21 GB (3,447,777,600 bytes)transformerssafetensorstipsv2feature-extractionvisionimage-textcontrastive-learningzero-shotzero-shot-image-classificationcustom_codepaper: 2604.12012