lazyslide.models.multimodal.OmiCLIP#
- class OmiCLIP(model_path=None, token=None)#
Bases:
ImageTextModel🤗Hugging Face GitHub Paper Params: 638.5M FLOPs: 156.94G BSD-3-Clause [Chen et al., 2025] A visual-omics foundation model to bridge histopathology with spatial transcriptomics
- encode_image(image)#
Batch–encode a list of image file paths into L2‑normalized embeddings. Returns a tensor of shape (N, D).
- encode_text(text)#
Batch–encode a list of strings into L2‑normalized embeddings. Returns a tensor of shape (N, D).