Zero-Shot Image Classification
OpenCLIP
Safetensors
clip
fashion
style-classification
korean-fashion
Instructions to use 2lY0/wearlystyle with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use 2lY0/wearlystyle with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:2lY0/wearlystyle') tokenizer = open_clip.get_tokenizer('hf-hub:2lY0/wearlystyle') - Notebooks
- Google Colab
- Kaggle
사용법
# pip install open_clip_torch huggingface_hub safetensors
import json, torch, open_clip
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
repo = "2lY0/wearlystyle" # 비공개 저장소면 먼저 `huggingface-cli login`
cfg = json.load(open(hf_hub_download(repo, "musinsa_clip_config.json")))
model, _, preprocess = open_clip.create_model_and_transforms(cfg["model"], pretrained=None)
model.load_state_dict(load_file(hf_hub_download(repo, "model.safetensors"))); model.eval()
tok = open_clip.get_tokenizer(cfg["model"])
texts = [cfg["templates"][0].format(cfg["en_phrase"][c]) for c in cfg["classes"]]
- Downloads last month
- 4
Model tree for 2lY0/wearlystyle
Base model
openai/clip-vit-large-patch14