class
MiniResNetV1Params
PythonValidated architecture config, independent of inputs and weight assets.
MiniResNetV1Params()Validated architecture config, independent of inputs and weight assets.
Each stack has two residual blocks; stack widths double from base_filters. Changing defaults defines a new architecture, not a pretrained variant. Flatten pooling requires fixed spatial dimensions. Backbone trainability defaults to True; freeze layers explicitly when fine-tuning a new head.
attribute
model_config
Pythonmodel_config = ConfigDict(frozen=True, extra='forbid')attribute
family
Pythonfamily: Literal['miniresnet'] = 'miniresnet'attribute
stacks
Pythonstacks: int = Field(default=1, ge=1, le=3)attribute
base_filters
Pythonbase_filters: int = Field(default=64, gt=0)attribute
pooling
Pythonpooling: Literal['flatten', 'avg', 'max'] = 'flatten'attribute
dropout
Pythondropout: float = Field(default=0.0, ge=0, lt=1, allow_inf_nan=False)attribute
output_activation
Pythonoutput_activation: Literal['softmax', 'sigmoid', 'linear'] = 'softmax'attribute
num_classes
Pythonnum_classes: int | None = Field(default=None, gt=0, description='Classes of the output layer; required')