medmac01
Added multilingual_clip module
3bd5293
raw
history blame contribute delete
404 Bytes
from multilingual_clip.legacy_multilingual_clip import MultilingualClip
model_path = 'M-CLIP/Swedish-500k'
tok_path = 'M-CLIP/Swedish-500k'
head_weight_path = 'data/weights/Swe-CLIP Linear Weights.pkl'
sweclip_args = {'model_name': model_path,
'tokenizer_name': tok_path,
'head_path': head_weight_path}
sweclip = MultilingualClip(**sweclip_args)
print(sweclip('test'))