跳至主要内容

BenchmarkOptions Struct

Options for Model::benchmark() synthetic inputs and measurement. More...

Declaration

struct simaai::neat::BenchmarkOptions { ... }

Included Headers

#include <Model.h>

Public Member Attributes Index

intnum_samples = 100

Number of measured synthetic inputs; must be greater than zero. More...

std::optional< int >original_width

Synthetic source-image width, in pixels. More...

std::optional< int >original_height

Synthetic source-image height, in pixels. More...

std::optional< ResizeMode >resize_mode

Resize policy used to map the source geometry to the model input. More...

boolinclude_plugin_latency = false

Include per-plugin latency collection. More...

Description

Options for Model::benchmark() synthetic inputs and measurement.

BoxDecode routes need source-image geometry to map detections from model coordinates back to source coordinates. Set original_width and original_height together to benchmark a specific source geometry. When they are omitted, the benchmark infers geometry from the resolved preprocess and model ingress contracts, preserving the behavior of benchmark(num_samples). Per-run benchmark geometry takes precedence over deprecated model-construction BoxDecode hints.

Definition at line 77 of file Model.h.

Public Member Attributes

include_plugin_latency

bool simaai::neat::BenchmarkOptions::include_plugin_latency = false

Include per-plugin latency collection.

Definition at line 84 of file Model.h.

num_samples

int simaai::neat::BenchmarkOptions::num_samples = 100

Number of measured synthetic inputs; must be greater than zero.

Definition at line 78 of file Model.h.

original_height

std::optional<int> simaai::neat::BenchmarkOptions::original_height

Synthetic source-image height, in pixels.

Definition at line 80 of file Model.h.

original_width

std::optional<int> simaai::neat::BenchmarkOptions::original_width

Synthetic source-image width, in pixels.

Definition at line 79 of file Model.h.

resize_mode

std::optional<ResizeMode> simaai::neat::BenchmarkOptions::resize_mode

Resize policy used to map the source geometry to the model input.

When omitted, use the resolved preprocess policy, or stretch when the model route has no resize stage.

Definition at line 83 of file Model.h.


The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.