---
title: textelDensity
framework: createml
role: symbol
role_heading: Instance Property
path: createml/mlstyletransfer/modelparameters/texteldensity
---

# textelDensity

The amount of detail the task applies from the input style image to the stylized image output.

## Declaration

```swift
var textelDensity: Int
```

## Discussion

Discussion The value must be a multiple of 4 in the range [64, 1024]. The style transfer task converts all other values to the nearest multiple of 4 less than the value.

## See Also

### Setting style transfer parameters

- [algorithm](createml/mlstyletransfer/modelparameters/algorithm.md)
- [debugDescription](createml/mlstyletransfer/modelparameters/debugdescription.md)
- [description](createml/mlstyletransfer/modelparameters/description.md)
- [maxIterations](createml/mlstyletransfer/modelparameters/maxiterations.md)
- [playgroundDescription](createml/mlstyletransfer/modelparameters/playgrounddescription.md)
- [styleStrength](createml/mlstyletransfer/modelparameters/stylestrength.md)
- [validation](createml/mlstyletransfer/modelparameters/validation.md)
