lazyslide_models.vision.CROWN

lazyslide_models.vision.CROWN#

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

Bases: TimmViTModel

crown 🤗Hugging Face GitHub Paper Apache-2.0 [Zheng et al., 2026] A universal visual foundation model for computational cytopathology CROWN tile encoder for cytology.

A DINOv2 ViT-L/16 pretrained on more than 10 million cytology image patches. It is the first zoo encoder trained on cytology rather than histology. Returns the normalised class token (1024-d).

transform_kws = {'interpolation': 'bilinear'}#

Upstream eval recipe, forwarded to get_default_transform (interpolation, crop_pct, mean, std). Registered models pin it because hub pretrained_cfg entries are often stale; None (a plain timm name) reads the model’s own pretrained_cfg.