Spaces:
Running on Zero
Running on Zero
Download diffsynth/extensions/ImageQualityMetric/open_clip/__init__.py from Wayne-King/echo-memory: direct link, hf CLI and curl.
- Browser
- Download file 985 Bytes
-
https://huggingface.co/spaces/Wayne-King/echo-memory/resolve/main/diffsynth/extensions/ImageQualityMetric/open_clip/__init__.py
- Command line
-
hf download hf://spaces/Wayne-King/echo-memory/diffsynth/extensions/ImageQualityMetric/open_clip/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Wayne-King/echo-memory/resolve/main/diffsynth/extensions/ImageQualityMetric/open_clip/__init__.py
985 Bytes
| from .coca_model import CoCa | |
| from .constants import OPENAI_DATASET_MEAN, OPENAI_DATASET_STD | |
| from .factory import create_model, create_model_and_transforms, create_model_from_pretrained, get_tokenizer, create_loss | |
| from .factory import list_models, add_model_config, get_model_config, load_checkpoint | |
| from .loss import ClipLoss, DistillClipLoss, CoCaLoss | |
| from .model import CLIP, CustomTextCLIP, CLIPTextCfg, CLIPVisionCfg, \ | |
| convert_weights_to_lp, convert_weights_to_fp16, trace_model, get_cast_dtype | |
| from .openai import load_openai_model, list_openai_models | |
| from .pretrained import list_pretrained, list_pretrained_models_by_tag, list_pretrained_tags_by_model, \ | |
| get_pretrained_url, download_pretrained_from_url, is_pretrained_cfg, get_pretrained_cfg, download_pretrained | |
| from .push_to_hf_hub import push_pretrained_to_hf_hub, push_to_hf_hub | |
| from .tokenizer import SimpleTokenizer | |
| from .transform import image_transform, AugmentationCfg | |
| from .utils import freeze_batch_norm_2d | |