Skip to main content

SimaBoxDecode Class

Declaration

class simaai::neat::SimaBoxDecode { ... }

Included Headers

#include <SimaBoxDecode.h>

Base classes

classNode
classOutputSpecProvider
classConfigJsonProvider
classConfigJsonOverride
classConfigJsonConsumer

Public Constructors Index

SimaBoxDecode (const simaai::neat::Model &model, const std::string &decode_type="", int original_width=0, int original_height=0, double detection_threshold=0.0, double nms_iou_threshold=0.0, int top_k=0)

Public Member Functions Index

std::stringkind () const override
NodeCapsBehaviorcaps_behavior () const override
boolhas_config_json () const override
boolwire_input_names (const std::vector< std::string > &upstream_names, const std::string &tag) override
std::stringbackend_fragment (int node_index) const override
std::vector< std::string >element_names (int node_index) const override
OutputSpecoutput_spec (const OutputSpec &input) const override
const std::string &config_path () const
const nlohmann::json *config_json () const override
booloverride_config_json (const std::function< void(nlohmann::json &)> &edit, const std::string &tag) override
voidapply_upstream_config (const nlohmann::json &upstream, const std::string &upstream_kind) override

Private Member Attributes Index

std::unique_ptr< BoxDecodeOptionsInternal >opt_
std::shared_ptr< BoxDecodeConfigHolder >config_holder_
std::stringconfig_path_

Definition at line 27 of file SimaBoxDecode.h.

Public Constructors

SimaBoxDecode()

simaai::neat::SimaBoxDecode::SimaBoxDecode (const simaai::neat::Model & model, const std::string & decode_type="", int original_width=0, int original_height=0, double detection_threshold=0, double nms_iou_threshold=0, int top_k=0)
explicit

Definition at line 33 of file SimaBoxDecode.h.

Public Member Functions

apply_upstream_config()

void simaai::neat::SimaBoxDecode::apply_upstream_config (const nlohmann::json & upstream, const std::string & upstream_kind)

Definition at line 57 of file SimaBoxDecode.h.

backend_fragment()

std::string simaai::neat::SimaBoxDecode::backend_fragment (int node_index)

Definition at line 47 of file SimaBoxDecode.h.

caps_behavior()

NodeCapsBehavior simaai::neat::SimaBoxDecode::caps_behavior ()
inline

Definition at line 41 of file SimaBoxDecode.h.

41 NodeCapsBehavior caps_behavior() const override {
42 return NodeCapsBehavior::Static;
43 }

config_json()

const nlohmann::json* simaai::neat::SimaBoxDecode::config_json ()

Definition at line 54 of file SimaBoxDecode.h.

config_path()

const std::string& simaai::neat::SimaBoxDecode::config_path ()
inline

Definition at line 51 of file SimaBoxDecode.h.

51 const std::string& config_path() const {
52 return config_path_;
53 }

element_names()

std::vector<std::string> simaai::neat::SimaBoxDecode::element_names (int node_index)

Definition at line 48 of file SimaBoxDecode.h.

has_config_json()

bool simaai::neat::SimaBoxDecode::has_config_json ()

Definition at line 44 of file SimaBoxDecode.h.

kind()

std::string simaai::neat::SimaBoxDecode::kind ()
inline

Definition at line 38 of file SimaBoxDecode.h.

38 std::string kind() const override {
39 return "SimaBoxDecode";
40 }

output_spec()

OutputSpec simaai::neat::SimaBoxDecode::output_spec (const OutputSpec & input)

Definition at line 49 of file SimaBoxDecode.h.

override_config_json()

bool simaai::neat::SimaBoxDecode::override_config_json (const std::function< void(nlohmann::json &)> & edit, const std::string & tag)

Definition at line 55 of file SimaBoxDecode.h.

wire_input_names()

bool simaai::neat::SimaBoxDecode::wire_input_names (const std::vector< std::string > & upstream_names, const std::string & tag)

Definition at line 45 of file SimaBoxDecode.h.

Private Member Attributes

config_holder_

std::shared_ptr<BoxDecodeConfigHolder> simaai::neat::SimaBoxDecode::config_holder_

Definition at line 64 of file SimaBoxDecode.h.

64 std::shared_ptr<BoxDecodeConfigHolder> config_holder_;

config_path_

std::string simaai::neat::SimaBoxDecode::config_path_

Definition at line 65 of file SimaBoxDecode.h.

65 std::string config_path_;

opt_

std::unique_ptr<BoxDecodeOptionsInternal> simaai::neat::SimaBoxDecode::opt_

Definition at line 63 of file SimaBoxDecode.h.

61 struct BoxDecodeConfigHolder;

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.