lazyslide_models.vision.CTransPath#
- class CTransPath(model_path=None, token=None)#
Bases:
ImageModelctranspath GitHub Paper Params: 27.5M GPL-3.0 [Wang et al., 2022] Transformer-based unsupervised contrastive learning for histopathological image classification
- encode_image(image)#
Encode the input image using the CTransPath model. The model expects a tensor of shape [B, C, H, W].