# Model properties

*Estimated read time: 3 minutes*

Model properties control every stage of the inference pipeline: which device runs the model, how inputs are prepared, how outputs are filtered, and how overlays look. This page introduces the categories and points you to detailed guides for each set of knobs.

## Why model properties matter

* Align preprocessing with the data you capture to avoid implicit resizes or color swaps.
* Route workloads to the right accelerator and device index for best throughput.
* Filter or emphasize the classes your application cares about.
* Keep overlays readable without touching model accuracy.

## Inspect current settings

After loading a model, read properties directly on the model object.

{% code overflow="wrap" %}

```python
from degirum_tools import ModelSpec

model_spec = ModelSpec(
    model_name="yolov8n_coco--640x640_quant_axelera_metis_1",
    zoo_url="degirum/axelera",
    inference_host_address="@local",
    model_properties={"device_type": ["AXELERA/METIS"]},
)
model = model_spec.load_model()
print("device:", model.device_type)
print("input shape:", model.input_shape)
print("confidence:", model.output_confidence_threshold)
print("overlay labels:", model.overlay_show_labels)
```

{% endcode %}

Need to experiment? Copy the `ModelSpec` block, adjust one property at a time, and rerun your validation script using the [baseline checklist](/axelera/basics/measuring-performance.md).

## Change properties safely

{% stepper %}
{% step %}
Clone the existing `ModelSpec` and edit only the property you plan to evaluate.
{% endstep %}

{% step %}
Document the change (e.g., commit message or experiment log) before running tests.
{% endstep %}

{% step %}
Run a deterministic validation set and capture accuracy and timing deltas.
{% endstep %}

{% step %}
Roll back immediately if the change increases error rates or violates latency budgets.
{% endstep %}
{% endstepper %}

## Deep dives

* Device runtime and hardware selection → [Device selection](/axelera/intermediate-guides/model-properties/device-selection.md)
* Input resolution, colorspace, and transport → [Input preprocessing](/axelera/intermediate-guides/model-properties/input-preprocessing.md)
* Confidence thresholds, NMS, and class filtering → [Output postprocessing](/axelera/intermediate-guides/model-properties/output-postprocessing.md)
* Overlay color, labels, opacity, and blur → [Image overlay](/axelera/intermediate-guides/model-properties/image-overlay.md)

Each guide includes tested snippets and cautions tailored to that category.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.degirum.com/axelera/intermediate-guides/model-properties.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
