unum-cloud / uform3-image-text-english-large

huggingface.co
Total runs: 333
24-hour runs: -4
7-day runs: 141
30-day runs: 254
Model's Last Updated: December 19 2024
feature-extraction

Introduction of uform3-image-text-english-large

Model Details of uform3-image-text-english-large

UForm

Pocket-Sized Multimodal AI
For Content Understanding and Generation
In Python, JavaScript, and Swift

The uform3-image-text-english-large UForm model is a tiny vision and English language encoder, mapping them into a shared vector space. This model produces up to 64-, 256-, 512-, and 768-dimensional embeddings and is made of:

  • Text encoder: 12-layer BERT for up to 64 input tokens.
  • Visual encoder: ViT-L/14 for images of 224 x 224 resolution.

Unlike most CLIP-like multomodal models, this model shares 6 layers between the text and visual encoder to allow for more data- and parameter-efficient training. Also unlike most models, UForm provides checkpoints compatible with PyTorch, ONNX, and CoreML, covering the absolute majority of AI-capable devices, with pre-quantized weights and inference code. If you need a larger, more accurate, or multilingual model, check our HuggingFace Hub . For more details on running the model, check out the UForm GitHub repository .

Evaluation

For zero-shot ImageNet classification the model achieves Top-1 accuracy of 51.8% and Top-5 of 75.6%. On text-to-image retrieval it reaches 92% Recall@10 for Flickr:

Dataset Recall@1 Recall@5 Recall@10
Zero-Shot Flickr 0.693 0.875 0.923
Zero-Shot MS-COCO 0.382 0.617 0.728
Installation
pip install "uform[torch,onnx]"
Usage

To load the model:

from uform import get_model, Modality

import requests
from io import BytesIO
from PIL import Image

model_name = 'unum-cloud/uform3-image-text-english-large'
modalities = [Modality.TEXT_ENCODER, Modality.IMAGE_ENCODER]
processors, models = get_model(model_name, modalities=modalities)

model_text = models[Modality.TEXT_ENCODER]
model_image = models[Modality.IMAGE_ENCODER]
processor_text = processors[Modality.TEXT_ENCODER]
processor_image = processors[Modality.IMAGE_ENCODER]

To encode the content:

text = 'a cityscape bathed in the warm glow of the sun, with varied architecture and a towering, snow-capped mountain rising majestically in the background'
image_url = 'https://media-cdn.tripadvisor.com/media/photo-s/1b/28/6b/53/lovely-armenia.jpg'
image_url = Image.open(BytesIO(requests.get(image_url).content))

image_data = processor_image(image)
text_data = processor_text(text)
image_features, image_embedding = model_image.encode(image_data, return_features=True)
text_features, text_embedding = model_text.encode(text_data, return_features=True)

Runs of unum-cloud uform3-image-text-english-large on huggingface.co

333
Total runs
-4
24-hour runs
46
3-day runs
141
7-day runs
254
30-day runs

More Information About uform3-image-text-english-large huggingface.co Model

More uform3-image-text-english-large license Visit here:

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

uform3-image-text-english-large huggingface.co

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

uform3-image-text-english-large huggingface.co Url

https://huggingface.co/unum-cloud/uform3-image-text-english-large

unum-cloud uform3-image-text-english-large online free

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

unum-cloud uform3-image-text-english-large online free url in huggingface.co:

https://huggingface.co/unum-cloud/uform3-image-text-english-large

uform3-image-text-english-large install

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

uform3-image-text-english-large install url in huggingface.co:

https://huggingface.co/unum-cloud/uform3-image-text-english-large

Url of uform3-image-text-english-large

uform3-image-text-english-large huggingface.co Url

Provider of uform3-image-text-english-large huggingface.co

unum-cloud
ORGANIZATIONS

Other API from unum-cloud

huggingface.co

Total runs: 27
Run Growth: -15
Growth Rate: -55.56%
Updated:December 31 2023