lazyslide_models.vision.UNI2

lazyslide_models.vision.UNI2#

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

Bases: TimmViTModel

uni2 🤗Hugging Face GitHub Paper Params: 681.4M CC-BY-NC-ND-4.0 [Chen et al., 2024] An improved version of UNI

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.