Struct caffe2op_nmsbox::BoxWithNMSLimitOp
source · pub struct BoxWithNMSLimitOp<Context> { /* private fields */ }
Expand description
| Apply NMS to each class (except background) | and limit the number of returned boxes. | | C++ implementation of function insert_box_results_with_nms_and_limit() |
Implementations§
source§impl BoxWithNMSLimitOp<CPUContext>
impl BoxWithNMSLimitOp<CPUContext>
pub fn do_run_with_type<T>(&mut self) -> bool
source§impl<Context> BoxWithNMSLimitOp<Context>
impl<Context> BoxWithNMSLimitOp<Context>
pub fn new<Args>(args: Args) -> Self
pub fn run_on_device(&mut self) -> bool
sourcepub fn get_box_cls_index(&mut self, bg_fg_cls_id: i32) -> i32
pub fn get_box_cls_index(&mut self, bg_fg_cls_id: i32) -> i32
| Map a class id (starting with background | and then foreground) from (0, 1, …, | NUM_FG_CLASSES) to it’s matching value in | box
sourcepub fn get_score_cls_index(&mut self, bg_fg_cls_id: i32) -> i32
pub fn get_score_cls_index(&mut self, bg_fg_cls_id: i32) -> i32
| Map a class id (starting with background | and then foreground) from (0, 1, …, | NUM_FG_CLASSES) to it’s matching value in | score
Auto Trait Implementations§
impl<Context> !RefUnwindSafe for BoxWithNMSLimitOp<Context>
impl<Context> !Send for BoxWithNMSLimitOp<Context>
impl<Context> !Sync for BoxWithNMSLimitOp<Context>
impl<Context> Unpin for BoxWithNMSLimitOp<Context>where Context: Unpin,
impl<Context> !UnwindSafe for BoxWithNMSLimitOp<Context>
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.