Request research access

Provide your affiliation and research purpose. Requests are reviewed manually.

Log in or Sign Up to review the conditions and access this model content.

CerS-Path

  • Weight: weights/CerS-Path.pth
  • Input: RGB pathology patches
  • Output: 1024-dimensional features

Access to this model is reviewed manually. Use is limited to the approved research purpose; do not redistribute the weights or access credentials, and do not use the model for clinical diagnosis.

Install

python -m pip install -r requirements.txt

Preprocessing

transforms.Compose([
    transforms.Resize(
        224,
        interpolation=InterpolationMode.BILINEAR,
        antialias=True,
    ),
    transforms.ToTensor(),
    transforms.Normalize(
        mean=(0.485, 0.456, 0.406),
        std=(0.229, 0.224, 0.225),
    ),
])

No random augmentation or stain normalization is used during feature extraction. The reported evaluation used 20X, 256 ร— 256 JPG patches.

Usage

python extract_features.py \
  --input /path/to/patches \
  --output features.pt

Patch filenames should follow x_y.jpg. The output tensor has shape [number_of_patches, 1024].

Associated data

The associated Cervical-Histopathology-Tile-Classification dataset is available.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support