---
title: model
framework: createml
role: symbol
role_heading: Instance Property
path: createml/mlobjectdetector/model
---

# model

The object detector’s underlying Core ML model instance.

## Declaration

```swift
var model: MLModel { get }
```

## Discussion

Discussion note: This computed property exports and compiles a Core ML model. Prefer storing the result to using this property repeatedly.

## See Also

### Inspecting an object detector model

- [modelParameters](createml/mlobjectdetector/modelparameters-swift.property.md)
