# helia_edge.models.metaformer_params

Typed parameters of the metaformer family; importable without Keras.

## helia_edge.models.metaformer_params.NameArgs

`class` · `python`

```python
NameArgs()
```

Name and arguments

Source: `helia_edge/models/metaformer_params.py:8`

### helia_edge.models.metaformer_params.NameArgs.model_config

`attribute` · `python`

```python
model_config = ConfigDict(frozen=True, extra='forbid')
```

Source: `helia_edge/models/metaformer_params.py:17`

### helia_edge.models.metaformer_params.NameArgs.name

`attribute` · `python`

```python
name: str = Field(default='conv', description='Name')
```

Name

Source: `helia_edge/models/metaformer_params.py:19`

### helia_edge.models.metaformer_params.NameArgs.args

`attribute` · `python`

```python
args: dict = Field(default_factory=dict, description='Arguments')
```

Arguments

Source: `helia_edge/models/metaformer_params.py:20`

## helia_edge.models.metaformer_params.MetaFormerBlockParams

`class` · `python`

```python
MetaFormerBlockParams()
```

MetaFormer block parameters

Source: `helia_edge/models/metaformer_params.py:23`

### helia_edge.models.metaformer_params.MetaFormerBlockParams.model_config

`attribute` · `python`

```python
model_config = ConfigDict(frozen=True, extra='forbid')
```

Source: `helia_edge/models/metaformer_params.py:34`

### helia_edge.models.metaformer_params.MetaFormerBlockParams.layers

`attribute` · `python`

```python
layers: int = Field(default=2, description='Number of layers')
```

Number of layers

Source: `helia_edge/models/metaformer_params.py:36`

### helia_edge.models.metaformer_params.MetaFormerBlockParams.patch_embed

`attribute` · `python`

```python
patch_embed: dict = Field(default_factory=dict, description='Patch embedding')
```

Patch embedding

Source: `helia_edge/models/metaformer_params.py:37`

### helia_edge.models.metaformer_params.MetaFormerBlockParams.token_mixer

`attribute` · `python`

```python
token_mixer: NameArgs = Field(default_factory=dict, description='Token mixer')
```

Token mixer

Source: `helia_edge/models/metaformer_params.py:38`

### helia_edge.models.metaformer_params.MetaFormerBlockParams.channel_mixer

`attribute` · `python`

```python
channel_mixer: NameArgs = Field(default_factory=dict, description='Channel mixer')
```

Channel mixer

Source: `helia_edge/models/metaformer_params.py:39`

## helia_edge.models.metaformer_params.MetaFormerParams

`class` · `python`

```python
MetaFormerParams()
```

MetaFormer parameters

Source: `helia_edge/models/metaformer_params.py:42`

### helia_edge.models.metaformer_params.MetaFormerParams.model_config

`attribute` · `python`

```python
model_config = ConfigDict(frozen=True, extra='forbid')
```

Source: `helia_edge/models/metaformer_params.py:57`

### helia_edge.models.metaformer_params.MetaFormerParams.family

`attribute` · `python`

```python
family: Literal['metaformer'] = 'metaformer'
```

Model family

Source: `helia_edge/models/metaformer_params.py:59`

### helia_edge.models.metaformer_params.MetaFormerParams.blocks

`attribute` · `python`

```python
blocks: list[MetaFormerBlockParams] = Field(default_factory=list, description='MetaFormer blocks')
```

MetaFormer blocks

Source: `helia_edge/models/metaformer_params.py:60`

### helia_edge.models.metaformer_params.MetaFormerParams.output_filters

`attribute` · `python`

```python
output_filters: int = Field(default=0, description='Output filters')
```

Output filters

Source: `helia_edge/models/metaformer_params.py:61`

### helia_edge.models.metaformer_params.MetaFormerParams.output_activation

`attribute` · `python`

```python
output_activation: str | None = Field(default=None, description='Output activation')
```

Output activation

Source: `helia_edge/models/metaformer_params.py:62`

### helia_edge.models.metaformer_params.MetaFormerParams.include_top

`attribute` · `python`

```python
include_top: bool = Field(default=True, description='Include top')
```

Include top

Source: `helia_edge/models/metaformer_params.py:63`

### helia_edge.models.metaformer_params.MetaFormerParams.num_classes

`attribute` · `python`

```python
num_classes: int | None = Field(default=None, gt=0, description='Classes of the output layer')
```

Classes of the output layer

Source: `helia_edge/models/metaformer_params.py:64`

### helia_edge.models.metaformer_params.MetaFormerParams.dropout

`attribute` · `python`

```python
dropout: float = Field(default=0.2, description='Dropout rate')
```

Dropout rate

Source: `helia_edge/models/metaformer_params.py:65`

### helia_edge.models.metaformer_params.MetaFormerParams.drop_connect_rate

`attribute` · `python`

```python
drop_connect_rate: float = Field(default=0.2, description='Drop connect rate')
```

Drop connect rate

Source: `helia_edge/models/metaformer_params.py:66`
