Download code/multi_vlm2vec_train/loaders/__init__.py from WaitXian/liqi: direct link, hf CLI and curl.
- Browser
- Download file 502 Bytes
-
https://huggingface.co/WaitXian/liqi/resolve/main/code/multi_vlm2vec_train/loaders/__init__.py
- Command line
-
hf download hf://WaitXian/liqi/code/multi_vlm2vec_train/loaders/__init__.py
-
curl -L -o __init__.py https://huggingface.co/WaitXian/liqi/resolve/main/code/multi_vlm2vec_train/loaders/__init__.py
502 Bytes
| LOADERS = {} | |
| ## 用来注册 | |
| def register_loader(name): | |
| def register_loader_cls(cls): | |
| if name in LOADERS: | |
| return LOADERS[name] | |
| LOADERS[name] = cls | |
| return cls | |
| return register_loader_cls | |
| try: | |
| from .tbstars_ecom_emb import TBStars_ecom_emb_ModelLoader | |
| except ImportError as e: | |
| import warnings | |
| warnings.warn(f"tbstars_ecom_emb loader unavailable (skipped): {e}") | |
| ## 增加proj的loader | |
| from .proj_models import load_mlp_projector, load_add_projector |