Bingsu / clip-vit-large-patch14-ko

huggingface.co
Total runs: 1.5K
24-hour runs: 88
7-day runs: 449
30-day runs: 396
Model's Last Updated: November 18 2022
zero-shot-image-classification

Introduction of clip-vit-large-patch14-ko

Model Details of clip-vit-large-patch14-ko

clip-vit-large-patch14-ko

Korean CLIP model trained by Making Monolingual Sentence Embeddings Multilingual using Knowledge Distillation

Making Monolingual Sentence Embeddings Multilingual using Knowledge Distillation 로 학습된 한국어 CLIP 모델입니다.

훈련 코드: https://github.com/Bing-su/KoCLIP_training_code

사용된 데이터: AIHUB에 있는 모든 한국어-영어 병렬 데이터

How to Use
1.
import requests
import torch
from PIL import Image
from transformers import AutoModel, AutoProcessor

repo = "Bingsu/clip-vit-large-patch14-ko"
model = AutoModel.from_pretrained(repo)
processor = AutoProcessor.from_pretrained(repo)

url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)
inputs = processor(text=["고양이 두 마리", "개 두 마리"], images=image, return_tensors="pt", padding=True)
with torch.inference_mode():
    outputs = model(**inputs)
logits_per_image = outputs.logits_per_image
probs = logits_per_image.softmax(dim=1)
>>> probs
tensor([[0.9974, 0.0026]])
2.
from transformers import pipeline

repo = "Bingsu/clip-vit-large-patch14-ko"
pipe = pipeline("zero-shot-image-classification", model=repo)

url = "http://images.cocodataset.org/val2017/000000039769.jpg"
result = pipe(images=url, candidate_labels=["고양이 한 마리", "고양이 두 마리", "분홍색 소파에 드러누운 고양이 친구들"], hypothesis_template="{}")
>>> result
[{'score': 0.9907576441764832, 'label': '분홍색 소파에 드러누운 고양이 친구들'},
 {'score': 0.009206341579556465, 'label': '고양이 두 마리'},
 {'score': 3.606083555496298e-05, 'label': '고양이 한 마리'}]

Runs of Bingsu clip-vit-large-patch14-ko on huggingface.co

1.5K
Total runs
88
24-hour runs
273
3-day runs
449
7-day runs
396
30-day runs

More Information About clip-vit-large-patch14-ko huggingface.co Model

More clip-vit-large-patch14-ko license Visit here:

https://choosealicense.com/licenses/mit

clip-vit-large-patch14-ko huggingface.co

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

clip-vit-large-patch14-ko huggingface.co Url

https://huggingface.co/Bingsu/clip-vit-large-patch14-ko

Bingsu clip-vit-large-patch14-ko online free

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

Bingsu clip-vit-large-patch14-ko online free url in huggingface.co:

https://huggingface.co/Bingsu/clip-vit-large-patch14-ko

clip-vit-large-patch14-ko install

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

clip-vit-large-patch14-ko install url in huggingface.co:

https://huggingface.co/Bingsu/clip-vit-large-patch14-ko

Url of clip-vit-large-patch14-ko

clip-vit-large-patch14-ko huggingface.co Url

Provider of clip-vit-large-patch14-ko huggingface.co

Bingsu
ORGANIZATIONS

Other API from Bingsu

huggingface.co

Total runs: 9.8M
Run Growth: -629.9K
Growth Rate: -6.43%
Updated:November 21 2024
huggingface.co

Total runs: 162
Run Growth: 118
Growth Rate: 72.84%
Updated:August 04 2023
huggingface.co

Total runs: 22
Run Growth: 15
Growth Rate: 68.18%
Updated:November 28 2022
huggingface.co

Total runs: 9
Run Growth: 4
Growth Rate: 44.44%
Updated:January 02 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 16 2023