Skip to main content

PreprocOptions Struct

Declaration

struct simaai::neat::PreprocOptions { ... }

Included Headers

#include <Preproc.h>

Public Constructors Index

PreprocOptions ()=default
PreprocOptions (const simaai::neat::Model &model)

Public Member Attributes Index

intinput_width = 1280
intinput_height = 720
intoutput_width = 640
intoutput_height = 640
intscaled_width = 640
intscaled_height = 640
intinput_channels = 3
intoutput_channels = 3
intbatch_size = 1
boolnormalize = true
boolaspect_ratio = true
booltessellate = true
booldynamic_input_dims = true
inttile_width = 128
inttile_height = 32
inttile_channels = 3
intinput_offset = 0
intinput_stride = 1
intoutput_stride = 1
intq_zp = -128
doubleq_scale = 255.06967737092486
std::vector< float >channel_mean = {0.0f, 0.0f, 0.0f}
std::vector< float >channel_stddev = {1.0f, 1.0f, 1.0f}
std::stringinput_img_type = "NV12"
std::stringoutput_img_type = "RGB"
std::stringoutput_dtype = "EVXX_INT8"
std::stringscaling_type = "BILINEAR"
std::stringpadding_type = "CENTER"
std::stringgraph_name = "preproc"
std::stringnode_name = "preproc"
std::stringelement_name
std::stringcpu = "CVU"
std::stringnext_cpu = "CVU"
std::stringdebug = "EVXX_DBG_DISABLED"
std::stringupstream_name = "decoder"
std::stringgraph_input_name = "input_image"
std::vector< std::string >output_memory_order
intnum_buffers = 0
intnum_buffers_model = 0
boolnum_buffers_locked = false
std::stringconfig_path
std::stringconfig_dir
boolkeep_config = false
std::optional< nlohmann::json >config_json

Definition at line 23 of file Preproc.h.

Public Constructors

PreprocOptions()

simaai::neat::PreprocOptions::PreprocOptions ()
default

Definition at line 24 of file Preproc.h.

PreprocOptions()

simaai::neat::PreprocOptions::PreprocOptions (const simaai::neat::Model & model)
explicit

Definition at line 25 of file Preproc.h.

Public Member Attributes

aspect_ratio

bool simaai::neat::PreprocOptions::aspect_ratio = true

Definition at line 39 of file Preproc.h.

39 bool aspect_ratio = true;

batch_size

int simaai::neat::PreprocOptions::batch_size = 1

Definition at line 36 of file Preproc.h.

36 int batch_size = 1;

channel_mean

std::vector<float> simaai::neat::PreprocOptions::channel_mean = {0.0f, 0.0f, 0.0f}

Definition at line 54 of file Preproc.h.

54 std::vector<float> channel_mean = {0.0f, 0.0f, 0.0f};

channel_stddev

std::vector<float> simaai::neat::PreprocOptions::channel_stddev = {1.0f, 1.0f, 1.0f}

Definition at line 55 of file Preproc.h.

55 std::vector<float> channel_stddev = {1.0f, 1.0f, 1.0f};

config_dir

std::string simaai::neat::PreprocOptions::config_dir

Definition at line 80 of file Preproc.h.

80 std::string config_dir;

config_json

std::optional<nlohmann::json> simaai::neat::PreprocOptions::config_json

Definition at line 82 of file Preproc.h.

82 std::optional<nlohmann::json> config_json;

config_path

std::string simaai::neat::PreprocOptions::config_path

Definition at line 79 of file Preproc.h.

79 std::string config_path;

cpu

std::string simaai::neat::PreprocOptions::cpu = "CVU"

Definition at line 66 of file Preproc.h.

66 std::string cpu = "CVU";

debug

std::string simaai::neat::PreprocOptions::debug = "EVXX_DBG_DISABLED"

Definition at line 68 of file Preproc.h.

68 std::string debug = "EVXX_DBG_DISABLED";

dynamic_input_dims

bool simaai::neat::PreprocOptions::dynamic_input_dims = true

Definition at line 41 of file Preproc.h.

41 bool dynamic_input_dims = true;

element_name

std::string simaai::neat::PreprocOptions::element_name

Definition at line 65 of file Preproc.h.

65 std::string element_name;

graph_input_name

std::string simaai::neat::PreprocOptions::graph_input_name = "input_image"

Definition at line 71 of file Preproc.h.

71 std::string graph_input_name = "input_image";

graph_name

std::string simaai::neat::PreprocOptions::graph_name = "preproc"

Definition at line 63 of file Preproc.h.

63 std::string graph_name = "preproc";

input_channels

int simaai::neat::PreprocOptions::input_channels = 3

Definition at line 34 of file Preproc.h.

input_height

int simaai::neat::PreprocOptions::input_height = 720

Definition at line 28 of file Preproc.h.

28 int input_height = 720;

input_img_type

std::string simaai::neat::PreprocOptions::input_img_type = "NV12"

Definition at line 57 of file Preproc.h.

57 std::string input_img_type = "NV12";

input_offset

int simaai::neat::PreprocOptions::input_offset = 0

Definition at line 47 of file Preproc.h.

47 int input_offset = 0;

input_stride

int simaai::neat::PreprocOptions::input_stride = 1

Definition at line 48 of file Preproc.h.

48 int input_stride = 1;

input_width

int simaai::neat::PreprocOptions::input_width = 1280

Definition at line 27 of file Preproc.h.

27 int input_width = 1280;

keep_config

bool simaai::neat::PreprocOptions::keep_config = false

Definition at line 81 of file Preproc.h.

81 bool keep_config = false;

next_cpu

std::string simaai::neat::PreprocOptions::next_cpu = "CVU"

Definition at line 67 of file Preproc.h.

67 std::string next_cpu = "CVU";

node_name

std::string simaai::neat::PreprocOptions::node_name = "preproc"

Definition at line 64 of file Preproc.h.

64 std::string node_name = "preproc";

normalize

bool simaai::neat::PreprocOptions::normalize = true

Definition at line 38 of file Preproc.h.

38 bool normalize = true;

num_buffers

int simaai::neat::PreprocOptions::num_buffers = 0

Definition at line 75 of file Preproc.h.

75 int num_buffers = 0;

num_buffers_locked

bool simaai::neat::PreprocOptions::num_buffers_locked = false

Definition at line 77 of file Preproc.h.

77 bool num_buffers_locked = false;

num_buffers_model

int simaai::neat::PreprocOptions::num_buffers_model = 0

Definition at line 76 of file Preproc.h.

output_channels

int simaai::neat::PreprocOptions::output_channels = 3

Definition at line 35 of file Preproc.h.

output_dtype

std::string simaai::neat::PreprocOptions::output_dtype = "EVXX_INT8"

Definition at line 59 of file Preproc.h.

59 std::string output_dtype = "EVXX_INT8";

output_height

int simaai::neat::PreprocOptions::output_height = 640

Definition at line 30 of file Preproc.h.

30 int output_height = 640;

output_img_type

std::string simaai::neat::PreprocOptions::output_img_type = "RGB"

Definition at line 58 of file Preproc.h.

58 std::string output_img_type = "RGB";

output_memory_order

std::vector<std::string> simaai::neat::PreprocOptions::output_memory_order

Definition at line 73 of file Preproc.h.

73 std::vector<std::string> output_memory_order;

output_stride

int simaai::neat::PreprocOptions::output_stride = 1

Definition at line 49 of file Preproc.h.

49 int output_stride = 1;

output_width

int simaai::neat::PreprocOptions::output_width = 640

Definition at line 29 of file Preproc.h.

29 int output_width = 640;

padding_type

std::string simaai::neat::PreprocOptions::padding_type = "CENTER"

Definition at line 61 of file Preproc.h.

61 std::string padding_type = "CENTER";

q_scale

double simaai::neat::PreprocOptions::q_scale = 255.06967737092486

Definition at line 52 of file Preproc.h.

52 double q_scale = 255.06967737092486;

q_zp

int simaai::neat::PreprocOptions::q_zp = -128

Definition at line 51 of file Preproc.h.

51 int q_zp = -128;

scaled_height

int simaai::neat::PreprocOptions::scaled_height = 640

Definition at line 32 of file Preproc.h.

32 int scaled_height = 640;

scaled_width

int simaai::neat::PreprocOptions::scaled_width = 640

Definition at line 31 of file Preproc.h.

31 int scaled_width = 640;

scaling_type

std::string simaai::neat::PreprocOptions::scaling_type = "BILINEAR"

Definition at line 60 of file Preproc.h.

60 std::string scaling_type = "BILINEAR";

tessellate

bool simaai::neat::PreprocOptions::tessellate = true

Definition at line 40 of file Preproc.h.

40 bool tessellate = true;

tile_channels

int simaai::neat::PreprocOptions::tile_channels = 3

Definition at line 45 of file Preproc.h.

45 int tile_channels = 3;

tile_height

int simaai::neat::PreprocOptions::tile_height = 32

Definition at line 44 of file Preproc.h.

44 int tile_height = 32;

tile_width

int simaai::neat::PreprocOptions::tile_width = 128

Definition at line 43 of file Preproc.h.

43 int tile_width = 128;

upstream_name

std::string simaai::neat::PreprocOptions::upstream_name = "decoder"

Definition at line 70 of file Preproc.h.

70 std::string upstream_name = "decoder";

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.