tirank.Imageprocessing.ctranspath

tirank.Imageprocessing.ctranspath()[source]

Factory function to create the CTransPath model.

Initializes a Swin Transformer (swin_tiny_patch4_window7_224) with the custom ConvStem as the embedding layer.

Returns:

The CTransPath model instance.

Return type:

torch.nn.Module