# helia_edge.models.unext_params

Typed parameters of the unext family; importable without Keras.

## helia_edge.models.unext_params.UNextBlockParams

`class` · `python`

```python
UNextBlockParams()
```

UNext block parameters

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

### helia_edge.models.unext_params.UNextBlockParams.model_config

`attribute` · `python`

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

Source: `helia_edge/models/unext_params.py:26`

### helia_edge.models.unext_params.UNextBlockParams.filters

`attribute` · `python`

```python
filters: int = Field(..., description='# filters')
```

Number of filters

Source: `helia_edge/models/unext_params.py:28`

### helia_edge.models.unext_params.UNextBlockParams.depth

`attribute` · `python`

```python
depth: int = Field(default=1, description='Layer depth')
```

Layer depth

Source: `helia_edge/models/unext_params.py:29`

### helia_edge.models.unext_params.UNextBlockParams.ddepth

`attribute` · `python`

```python
ddepth: int | None = Field(default=None, description='Layer decoder depth')
```

Layer decoder depth

Source: `helia_edge/models/unext_params.py:30`

### helia_edge.models.unext_params.UNextBlockParams.kernel

`attribute` · `python`

```python
kernel: int | tuple[int, int] = Field(default=3, description='Kernel size')
```

Kernel size

Source: `helia_edge/models/unext_params.py:31`

### helia_edge.models.unext_params.UNextBlockParams.pool

`attribute` · `python`

```python
pool: int | tuple[int, int] = Field(default=2, description='Pool size')
```

Pool size

Source: `helia_edge/models/unext_params.py:32`

### helia_edge.models.unext_params.UNextBlockParams.strides

`attribute` · `python`

```python
strides: int | tuple[int, int] = Field(default=2, description='Stride size')
```

Stride size

Source: `helia_edge/models/unext_params.py:33`

### helia_edge.models.unext_params.UNextBlockParams.skip

`attribute` · `python`

```python
skip: bool = Field(default=True, description='Add skip connection')
```

Add skip connection

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

### helia_edge.models.unext_params.UNextBlockParams.expand_ratio

`attribute` · `python`

```python
expand_ratio: float = Field(default=1, description='Expansion ratio')
```

Expansion ratio

Source: `helia_edge/models/unext_params.py:35`

### helia_edge.models.unext_params.UNextBlockParams.se_ratio

`attribute` · `python`

```python
se_ratio: float = Field(default=0, description='Squeeze and excite ratio')
```

Squeeze and excite ratio

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

### helia_edge.models.unext_params.UNextBlockParams.dropout

`attribute` · `python`

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

Dropout rate

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

### helia_edge.models.unext_params.UNextBlockParams.norm

`attribute` · `python`

```python
norm: Literal['batch', 'layer'] | None = Field(default='layer', description='Normalization type')
```

Normalization type

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

## helia_edge.models.unext_params.UNextParams

`class` · `python`

```python
UNextParams()
```

UNext parameters

Source: `helia_edge/models/unext_params.py:41`

### helia_edge.models.unext_params.UNextParams.model_config

`attribute` · `python`

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

Source: `helia_edge/models/unext_params.py:55`

### helia_edge.models.unext_params.UNextParams.family

`attribute` · `python`

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

Model family

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

### helia_edge.models.unext_params.UNextParams.blocks

`attribute` · `python`

```python
blocks: list[UNextBlockParams] = Field(default_factory=list, description='UNext blocks')
```

UNext blocks

Source: `helia_edge/models/unext_params.py:58`

### helia_edge.models.unext_params.UNextParams.include_top

`attribute` · `python`

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

Include top

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

### helia_edge.models.unext_params.UNextParams.num_classes

`attribute` · `python`

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

Classes of the output layer; required with include_top

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

### helia_edge.models.unext_params.UNextParams.use_logits

`attribute` · `python`

```python
use_logits: bool = Field(default=True, description='Use logits')
```

Use logits

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

### helia_edge.models.unext_params.UNextParams.output_kernel_size

`attribute` · `python`

```python
output_kernel_size: int | tuple[int, int] = Field(default=3, description='Output kernel size')
```

Output kernel size

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

### helia_edge.models.unext_params.UNextParams.output_kernel_stride

`attribute` · `python`

```python
output_kernel_stride: int | tuple[int, int] = Field(default=1, description='Output kernel stride')
```

Output kernel stride

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