STER / code /clip.py
eduzrh's picture
Organize code/ directory + code README
a525891 verified
Raw
History Blame Contribute Delete
537 Bytes
"""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: []