์Šคํƒ€์ผ (Classes)

ํด๋ž˜์Šค ํ•œ๊ตญ์–ด ํ”„๋กฌํ”„ํŠธ ํ‘œํ˜„
formal ํฌ๋ฉ€ formal
street ์ŠคํŠธ๋ฆฟ street
sporty ์Šคํฌํ‹ฐ sporty
feminine ํŽ˜๋ฏธ๋‹Œ feminine
casual ์บ์ฃผ์–ผ casual
vintage ๋นˆํ‹ฐ์ง€ vintage

์‚ฌ์šฉ๋ฒ•

# 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"]]

์งˆ๊ฐ ๋ถ„๋ฅ˜

tex = json.load(open(hf_hub_download(repo, "texture_prompts.json")))
# ํด๋ž˜์Šค๋งˆ๋‹ค tex['classes'][i]['texts'] ๋ฌธ์žฅ ์ž„๋ฒ ๋”ฉ ํ‰๊ท  โ†’ ์‚ฌ์ง„(์ „์ฒด+์กฐ๊ฐ 5๊ฐœ ํ‰๊ท ) ์ž„๋ฒ ๋”ฉ๊ณผ cosine ร— 100 โ†’ softmax

๋ผ์ด์„ ์Šค

  • ์ด ํŒŒ์ธํŠœ๋‹ ๊ฐ€์ค‘์น˜: CC BY-NC 4.0 (๋น„์ƒ์—…์  ์ด์šฉ)
  • ์›๋ณธ CLIP: MIT License, Copyright (c) 2021 OpenAI โ€” LICENSE_CLIP ํŒŒ์ผ ์ฐธ๊ณ 
Downloads last month
45
Safetensors
Model size
0.4B params
Tensor type
F16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for 2lY0/wearlystyle

Finetuned
(164)
this model