File size: 537 Bytes
a525891
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Lightweight stub for the `clip` package.
Only present so that `import clip` in utils.py succeeds for the matching
pipeline (which never calls clip). ViT-baseline paths that actually need
CLIP will raise a clear error if invoked."""

def load(*args, **kwargs):
    raise RuntimeError("clip stub: real OpenAI CLIP is not installed; "
                       "ViT baselines are disabled in this STER reproduction.")

def tokenize(*args, **kwargs):
    raise RuntimeError("clip stub: tokenize unavailable.")

available_models = lambda: []