Spaces:
Runtime error
Runtime error
| import sys | |
| sys.path.append('API_CLIP/clip_prs') | |
| from utils.constants import OPENAI_DATASET_MEAN, OPENAI_DATASET_STD | |
| from utils.factory import create_model, create_model_and_transforms, create_model_from_pretrained, get_tokenizer, create_loss | |
| from utils.factory import list_models, add_model_config, get_model_config, load_checkpoint | |
| from utils.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 utils.tokenizer import SimpleTokenizer, tokenize, decode | |
| from utils.transform import image_transform, AugmentationCfg | |
| from utils.openai_templates import OPENAI_IMAGENET_TEMPLATES |