Skip to content

config

ViTForImageClassificationConfig dataclass

Bases: AnyModelForImageClassificationConfig

Config for ViT model

Source code in glasses/models/vision/image/classification/vit/config.py
@dataclass
class ViTForImageClassificationConfig(AnyModelForImageClassificationConfig):
    """Config for [`ViT`](/models/vision/image/classification/vit) model"""

    backbone_config: ViTBackboneConfig
    head_config: ViTHeadConfig