visheratin / nllb-clip-large

huggingface.co
Total runs: 18
24-hour runs: 0
7-day runs: -1
30-day runs: -1
Model's Last Updated: October 11 2023

Introduction of nllb-clip-large

Model Details of nllb-clip-large

Model Summary

NLLB-CLIP is a model that combines a text encoder from the NLLB model and an image encoder from the LAION CLIP . This allows us to extend the model capabilities to 201 languages of the Flores-200. NLLB-CLIP sets state-of-the-art on the Crossmodal-3600 dataset by performing very well on low-resource languages. You can find more details about the model in the paper .

How to use

The model repo contains the model code files that allow the use of NLLB-CLIP as any other model from the hub. The interface is also compatible with CLIP models. Example code is below:

from transformers import AutoTokenizer, CLIPProcessor
import requests
from PIL import Image

from modeling_nllb_clip import NLLBCLIPModel # local file from the repo

processor = CLIPProcessor.from_pretrained("laion/CLIP-ViT-H-14-laion2B-s32B-b79K")
processor = processor.image_processor
tokenizer = AutoTokenizer.from_pretrained(
    "facebook/nllb-200-distilled-1.3B"
)
image_path = "https://huggingface.co/spaces/jjourney1125/swin2sr/resolve/main/samples/butterfly.jpg"
image = Image.open(requests.get(image_path, stream=True).raw)
image_inputs = processor(images=image, return_tensors="pt")
text_inputs = tokenizer(
    ["cat", "dog", "butterfly"],
    padding="longest",
    return_tensors="pt",
)

hf_model = NLLBCLIPModel.from_pretrained("visheratin/nllb-clip-large")

outputs = hf_model(input_ids = text_inputs.input_ids, attention_mask = text_inputs.attention_mask, pixel_values=image_inputs.pixel_values)
Acknowledgements

I thank Lambda Cloud for providing compute resources to train the model.

Runs of visheratin nllb-clip-large on huggingface.co

18
Total runs
0
24-hour runs
-1
3-day runs
-1
7-day runs
-1
30-day runs

More Information About nllb-clip-large huggingface.co Model

More nllb-clip-large license Visit here:

https://choosealicense.com/licenses/cc-by-nc-4.0

nllb-clip-large huggingface.co

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

nllb-clip-large huggingface.co Url

https://huggingface.co/visheratin/nllb-clip-large

visheratin nllb-clip-large online free

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

visheratin nllb-clip-large online free url in huggingface.co:

https://huggingface.co/visheratin/nllb-clip-large

nllb-clip-large install

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

nllb-clip-large install url in huggingface.co:

https://huggingface.co/visheratin/nllb-clip-large

Url of nllb-clip-large

nllb-clip-large huggingface.co Url

Provider of nllb-clip-large huggingface.co

visheratin
ORGANIZATIONS

Other API from visheratin

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 19 2023