# 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](https://2803297428-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVgiFOveF1soKpu90ln3C%2Fuploads%2Fgit-blob-8db752ace144e0fcdb6f8a7e1c63d31819e1f6e2%2Fsaturation%20wpixel.png?alt=media)

## `Smoothness Loss`

```
custom_loss="smoothness"
```

### `smoothness_weight`

> Default: `1`

![smoothness](https://2803297428-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVgiFOveF1soKpu90ln3C%2Fuploads%2Fgit-blob-6b1a8754edd256ed18b2ff8ac0392e200dbdea65%2Fsommthness.png?alt=media)

## `Symmetry Loss`

```
custom_loss="symmetry"
```

### `saturation_weight`

> Default: `1`

![symemtry](https://2803297428-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVgiFOveF1soKpu90ln3C%2Fuploads%2Fgit-blob-e93e677b6e151ff33d8110714a35bf6a066f6910%2Fsymemtryloss.png?alt=media)

## `Palette Loss`

```
custom_loss="palette"
```

### `palette_weight`

> Default: `1`

![palette](https://2803297428-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVgiFOveF1soKpu90ln3C%2Fuploads%2Fgit-blob-578ae102cd2e2ffd7e55abe6113df4988b32a3b7%2Fpalettename.png?alt=media)
