lazyslide_models.vision.LunitDINOPatch8Moozy

lazyslide_models.vision.LunitDINOPatch8Moozy#

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

Bases: LunitDINOPatch8

lunit-dino-s8-moozy 🤗Hugging Face GitHub Paper Params: 21.7M lunit-non-commercial [Kang et al., 2023] Lunit DINO ViT-S/8 with the preprocessing MOOZY was trained on lunit-dino-s8 preprocessed like MOOZY’s feature extractor.

MOOZY’s AtlasPatch pipeline builds the transform from the timm config of the 1aurent port: ImageNet stats, bicubic, crop_pct 0.9. Use this key, not lunit-dino-s8, for features that feed moozy.

transform_kws = {'crop_pct': 0.9}#

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.