> For the complete documentation index, see [llms.txt](https://dazhizhong.gitbook.io/pixray-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dazhizhong.gitbook.io/pixray-docs/docs/losses.md).

# Losses

For losses to be used, `custom_loss` must be specified for that particular class. Currently there can be a total of four classes, `saturation`, `smoothness`, `symmetry`, and `palette`. To enable all losses use this syntax: separate loss names by commas, using a big string.

```
custom_loss="saturation, smoothness, symmetry, palette"
```

## `Saturation Loss`

```
custom_loss="saturation"
```

### `saturation_weight`

> Default: `1`

Creates a loss based on how colorful the image is, encourages the image to become more colorful.

![saturation](/files/pegieELS97ivsN17CxCj)

## `Smoothness Loss`

```
custom_loss="smoothness"
```

### `smoothness_weight`

> Default: `1`

![smoothness](/files/K0H71HFpNr1iudGnTGSB)

## `Symmetry Loss`

```
custom_loss="symmetry"
```

### `saturation_weight`

> Default: `1`

![symemtry](/files/2tzAYDjo0EDO9YxCTvey)

## `Palette Loss`

```
custom_loss="palette"
```

### `palette_weight`

> Default: `1`

![palette](/files/N8Bhx2r32VAFMnK6GE9T)
