Upload code/src/open_clip/__init__.py with huggingface_hub
Browse files
code/src/open_clip/__init__.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .coca_model import CoCa
|
| 2 |
+
from .constants import OPENAI_DATASET_MEAN, OPENAI_DATASET_STD
|
| 3 |
+
from .factory import create_model, create_model_and_transforms, create_model_from_pretrained, get_tokenizer,create_model_and_transforms_official
|
| 4 |
+
from .factory import list_models, add_model_config, get_model_config, load_checkpoint
|
| 5 |
+
from .loss import ClipLoss, DistillClipLoss, CoCaLoss
|
| 6 |
+
from .model import CLIP, CustomTextCLIP, CLIPTextCfg, CLIPVisionCfg, \
|
| 7 |
+
convert_weights_to_lp, convert_weights_to_fp16, trace_model, get_cast_dtype
|
| 8 |
+
from .openai import load_openai_model, list_openai_models
|
| 9 |
+
from .pretrained import list_pretrained, list_pretrained_models_by_tag, list_pretrained_tags_by_model, \
|
| 10 |
+
get_pretrained_url, download_pretrained_from_url, is_pretrained_cfg, get_pretrained_cfg, download_pretrained
|
| 11 |
+
from .push_to_hf_hub import push_pretrained_to_hf_hub, push_to_hf_hub
|
| 12 |
+
from .tokenizer import SimpleTokenizer, tokenize, decode
|
| 13 |
+
from .transform import image_transform, AugmentationCfg
|