google / tipsv2-so400m14

huggingface.co
Total runs: 246.4K
24-hour runs: 0
7-day runs: 22.6K
30-day runs: 76.1K
Model's Last Updated: July 28 2026
zero-shot-image-classification

Introduction of tipsv2-so400m14

Model Details of tipsv2-so400m14

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}
}

Runs of google tipsv2-so400m14 on huggingface.co

246.4K
Total runs
0
24-hour runs
-4.4K
3-day runs
22.6K
7-day runs
76.1K
30-day runs

More Information About tipsv2-so400m14 huggingface.co Model

More tipsv2-so400m14 license Visit here:

https://choosealicense.com/licenses/apache-2.0

tipsv2-so400m14 huggingface.co

tipsv2-so400m14 huggingface.co is an AI model on huggingface.co that provides tipsv2-so400m14's model effect (), which can be used instantly with this google tipsv2-so400m14 model. huggingface.co supports a free trial of the tipsv2-so400m14 model, and also provides paid use of the tipsv2-so400m14. Support call tipsv2-so400m14 model through api, including Node.js, Python, http.

tipsv2-so400m14 huggingface.co Url

https://huggingface.co/google/tipsv2-so400m14

google tipsv2-so400m14 online free

tipsv2-so400m14 huggingface.co is an online trial and call api platform, which integrates tipsv2-so400m14's modeling effects, including api services, and provides a free online trial of tipsv2-so400m14, you can try tipsv2-so400m14 online for free by clicking the link below.

google tipsv2-so400m14 online free url in huggingface.co:

https://huggingface.co/google/tipsv2-so400m14

tipsv2-so400m14 install

tipsv2-so400m14 is an open source model from GitHub that offers a free installation service, and any user can find tipsv2-so400m14 on GitHub to install. At the same time, huggingface.co provides the effect of tipsv2-so400m14 install, users can directly use tipsv2-so400m14 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

tipsv2-so400m14 install url in huggingface.co:

https://huggingface.co/google/tipsv2-so400m14

Url of tipsv2-so400m14

tipsv2-so400m14 huggingface.co Url

Provider of tipsv2-so400m14 huggingface.co

google
ORGANIZATIONS

Other API from google

huggingface.co

Total runs: 10.4M
Run Growth: -1.3M
Growth Rate: -12.06%
Updated:July 21 2026
huggingface.co

Total runs: 5.2M
Run Growth: 1.3M
Growth Rate: 25.00%
Updated:April 04 2025
huggingface.co

Total runs: 5.1M
Run Growth: -737.3K
Growth Rate: -14.29%
Updated:July 21 2026
huggingface.co

Total runs: 2.3M
Run Growth: -1.1M
Growth Rate: -48.37%
Updated:August 14 2025
huggingface.co

Total runs: 1.7M
Run Growth: 73.1K
Growth Rate: 4.23%
Updated:July 17 2023
huggingface.co

Total runs: 1.5M
Run Growth: -640.9K
Growth Rate: -40.54%
Updated:March 22 2025
huggingface.co

Total runs: 1.2M
Run Growth: -46.8K
Growth Rate: -3.71%
Updated:March 22 2025
huggingface.co

Total runs: 845.8K
Run Growth: -8.8K
Growth Rate: -1.04%
Updated:March 22 2025
huggingface.co

Total runs: 703.4K
Run Growth: -72.4K
Growth Rate: -10.15%
Updated:July 16 2026
huggingface.co

Total runs: 662.5K
Run Growth: -173.4K
Growth Rate: -25.59%
Updated:October 11 2023
huggingface.co

Total runs: 644.1K
Run Growth: 98.5K
Growth Rate: 15.15%
Updated:August 28 2024
huggingface.co

Total runs: 624.4K
Run Growth: -327.4K
Growth Rate: -49.99%
Updated:July 16 2026
huggingface.co

Total runs: 562.5K
Run Growth: -462.6K
Growth Rate: -81.79%
Updated:February 29 2024
huggingface.co

Total runs: 479.1K
Run Growth: -58.6K
Growth Rate: -12.14%
Updated:July 17 2023
huggingface.co

Total runs: 433.7K
Run Growth: 209.4K
Growth Rate: 47.51%
Updated:August 28 2024
huggingface.co

Total runs: 340.5K
Run Growth: 52.5K
Growth Rate: 15.21%
Updated:January 25 2023
huggingface.co

Total runs: 304.4K
Run Growth: 1.5K
Growth Rate: 0.49%
Updated:September 18 2023
huggingface.co

Total runs: 292.1K
Run Growth: -26.0K
Growth Rate: -9.91%
Updated:October 29 2025
huggingface.co

Total runs: 290.7K
Run Growth: -786.0K
Growth Rate: -243.04%
Updated:August 14 2025
huggingface.co

Total runs: 265.6K
Run Growth: 2.0K
Growth Rate: 0.73%
Updated:August 08 2024
huggingface.co

Total runs: 256.0K
Run Growth: -275.3K
Growth Rate: -112.43%
Updated:July 16 2026
huggingface.co

Total runs: 242.6K
Run Growth: 102.1K
Growth Rate: 40.91%
Updated:November 27 2023
huggingface.co

Total runs: 231.7K
Run Growth: 57.4K
Growth Rate: 24.13%
Updated:May 27 2026
huggingface.co

Total runs: 227.8K
Run Growth: -80.0K
Growth Rate: -33.89%
Updated:January 25 2023
huggingface.co

Total runs: 203.3K
Run Growth: -541.8K
Growth Rate: -271.28%
Updated:April 29 2024
huggingface.co

Total runs: 172.8K
Run Growth: 19.6K
Growth Rate: 11.26%
Updated:July 03 2023
huggingface.co

Total runs: 164.0K
Run Growth: 143.5K
Growth Rate: 87.50%
Updated:July 28 2026
huggingface.co

Total runs: 159.8K
Run Growth: -68.2K
Growth Rate: -41.58%
Updated:January 25 2023
huggingface.co

Total runs: 151.6K
Run Growth: -1.7K
Growth Rate: -1.12%
Updated:November 28 2023
huggingface.co

Total runs: 131.5K
Run Growth: -70.0K
Growth Rate: -48.54%
Updated:January 25 2023
huggingface.co

Total runs: 114.8K
Run Growth: 61.9K
Growth Rate: 53.52%
Updated:August 28 2024
huggingface.co

Total runs: 104.8K
Run Growth: -260.2K
Growth Rate: -246.92%
Updated:July 16 2026
huggingface.co

Total runs: 96.2K
Run Growth: -17.9K
Growth Rate: -18.94%
Updated:September 27 2024
huggingface.co

Total runs: 94.8K
Run Growth: 720
Growth Rate: 0.89%
Updated:September 27 2024
huggingface.co

Total runs: 88.3K
Run Growth: 22.3K
Growth Rate: 24.44%
Updated:August 08 2024
huggingface.co

Total runs: 84.8K
Run Growth: -21.7K
Growth Rate: -25.10%
Updated:May 27 2022
huggingface.co

Total runs: 79.9K
Run Growth: -39.6K
Growth Rate: -47.45%
Updated:July 16 2026