lazyslide.models.vision.CTransPath#
- class CTransPath(model_path=None, token=None)#
Bases:
ImageModelGitHub Paper Params: 27.5M 768 features FLOPs: 8.99G 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].