lazyslide.models.multimodal.OmiCLIP

lazyslide.models.multimodal.OmiCLIP#

class OmiCLIP(model_path=None, token=None)#

Bases: ImageTextModel

🤗Hugging Face GitHub Paper Params: 638.5M 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).