Config

Struct Config 

Source
pub struct Config {
Show 44 fields pub name: &'static str, pub version: Option<Version>, pub task: Option<Task>, pub scale: Option<Scale>, pub model: ORTConfig, pub visual: ORTConfig, pub textual: ORTConfig, pub encoder: ORTConfig, pub decoder: ORTConfig, pub visual_encoder: ORTConfig, pub textual_encoder: ORTConfig, pub visual_decoder: ORTConfig, pub textual_decoder: ORTConfig, pub textual_decoder_merged: ORTConfig, pub size_encoder: ORTConfig, pub size_decoder: ORTConfig, pub coord_encoder: ORTConfig, pub coord_decoder: ORTConfig, pub visual_projection: ORTConfig, pub textual_projection: ORTConfig, pub processor: ProcessorConfig, pub class_names: Vec<String>, pub class_names2: Vec<String>, pub keypoint_names: Vec<String>, pub text_names: Vec<String>, pub class_confs: Vec<f32>, pub keypoint_confs: Vec<f32>, pub text_confs: Vec<f32>, pub apply_softmax: Option<bool>, pub topk: Option<usize>, pub num_classes: Option<usize>, pub num_keypoints: Option<usize>, pub num_masks: Option<usize>, pub iou: Option<f32>, pub apply_nms: Option<bool>, pub find_contours: bool, pub yolo_preds_format: Option<YOLOPredsFormat>, pub classes_excluded: Vec<usize>, pub classes_retained: Vec<usize>, pub min_width: Option<f32>, pub min_height: Option<f32>, pub db_unclip_ratio: Option<f32>, pub db_binary_thresh: Option<f32>, pub max_tokens: Option<usize>,
}
Expand description

Configuration for model inference including engines, processors, and task settings.

Fields§

§name: &'static str§version: Option<Version>§task: Option<Task>§scale: Option<Scale>§model: ORTConfig§visual: ORTConfig§textual: ORTConfig§encoder: ORTConfig§decoder: ORTConfig§visual_encoder: ORTConfig§textual_encoder: ORTConfig§visual_decoder: ORTConfig§textual_decoder: ORTConfig§textual_decoder_merged: ORTConfig§size_encoder: ORTConfig§size_decoder: ORTConfig§coord_encoder: ORTConfig§coord_decoder: ORTConfig§visual_projection: ORTConfig§textual_projection: ORTConfig§processor: ProcessorConfig§class_names: Vec<String>§class_names2: Vec<String>§keypoint_names: Vec<String>§text_names: Vec<String>§class_confs: Vec<f32>§keypoint_confs: Vec<f32>§text_confs: Vec<f32>§apply_softmax: Option<bool>§topk: Option<usize>§num_classes: Option<usize>§num_keypoints: Option<usize>§num_masks: Option<usize>§iou: Option<f32>§apply_nms: Option<bool>§find_contours: bool§yolo_preds_format: Option<YOLOPredsFormat>§classes_excluded: Vec<usize>§classes_retained: Vec<usize>§min_width: Option<f32>§min_height: Option<f32>§db_unclip_ratio: Option<f32>§db_binary_thresh: Option<f32>§max_tokens: Option<usize>

Implementations§

Source§

impl Config

Source

pub fn with_name(self, x: &'static str) -> Self

Sets the name field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_name(value);

Generated by aksr - Builder pattern macro

Source

pub fn name(&self) -> &'static str

Returns the value of the name field.

§Example
let obj = Config::default();
let value = obj.name();

Generated by aksr - Builder pattern macro

Source

pub fn with_version(self, x: Version) -> Self

Sets the optional version field.

§Arguments
  • x - The value that will be automatically wrapped in Some
§Returns

Returns Self for method chaining.

§Note

The value is automatically wrapped in Some, so you don’t need to pass Some(value).

§Example
let obj = Config::default().with_version(value);

Generated by aksr - Builder pattern macro

Source

pub fn version(&self) -> Option<&Version>

Returns an optional reference to the version field.

§Example
let obj = Config::default();
let value = obj.version();

Generated by aksr - Builder pattern macro

Source

pub fn with_task(self, x: Task) -> Self

Sets the optional task field.

§Arguments
  • x - The value that will be automatically wrapped in Some
§Returns

Returns Self for method chaining.

§Note

The value is automatically wrapped in Some, so you don’t need to pass Some(value).

§Example
let obj = Config::default().with_task(value);

Generated by aksr - Builder pattern macro

Source

pub fn task(&self) -> Option<&Task>

Returns an optional reference to the task field.

§Example
let obj = Config::default();
let value = obj.task();

Generated by aksr - Builder pattern macro

Source

pub fn with_scale(self, x: Scale) -> Self

Sets the optional scale field.

§Arguments
  • x - The value that will be automatically wrapped in Some
§Returns

Returns Self for method chaining.

§Note

The value is automatically wrapped in Some, so you don’t need to pass Some(value).

§Example
let obj = Config::default().with_scale(value);

Generated by aksr - Builder pattern macro

Source

pub fn scale(&self) -> Option<&Scale>

Returns an optional reference to the scale field.

§Example
let obj = Config::default();
let value = obj.scale();

Generated by aksr - Builder pattern macro

Source

pub fn with_model(self, x: ORTConfig) -> Self

Sets the model field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_model(value);

Generated by aksr - Builder pattern macro

Source

pub fn model(&self) -> &ORTConfig

Returns a reference to the model field.

§Example
let obj = Config::default();
let value = obj.model();

Generated by aksr - Builder pattern macro

Source

pub fn with_visual(self, x: ORTConfig) -> Self

Sets the visual field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_visual(value);

Generated by aksr - Builder pattern macro

Source

pub fn visual(&self) -> &ORTConfig

Returns a reference to the visual field.

§Example
let obj = Config::default();
let value = obj.visual();

Generated by aksr - Builder pattern macro

Source

pub fn with_textual(self, x: ORTConfig) -> Self

Sets the textual field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_textual(value);

Generated by aksr - Builder pattern macro

Source

pub fn textual(&self) -> &ORTConfig

Returns a reference to the textual field.

§Example
let obj = Config::default();
let value = obj.textual();

Generated by aksr - Builder pattern macro

Source

pub fn with_encoder(self, x: ORTConfig) -> Self

Sets the encoder field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_encoder(value);

Generated by aksr - Builder pattern macro

Source

pub fn encoder(&self) -> &ORTConfig

Returns a reference to the encoder field.

§Example
let obj = Config::default();
let value = obj.encoder();

Generated by aksr - Builder pattern macro

Source

pub fn with_decoder(self, x: ORTConfig) -> Self

Sets the decoder field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_decoder(value);

Generated by aksr - Builder pattern macro

Source

pub fn decoder(&self) -> &ORTConfig

Returns a reference to the decoder field.

§Example
let obj = Config::default();
let value = obj.decoder();

Generated by aksr - Builder pattern macro

Source

pub fn with_visual_encoder(self, x: ORTConfig) -> Self

Sets the visual_encoder field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_visual_encoder(value);

Generated by aksr - Builder pattern macro

Source

pub fn visual_encoder(&self) -> &ORTConfig

Returns a reference to the visual_encoder field.

§Example
let obj = Config::default();
let value = obj.visual_encoder();

Generated by aksr - Builder pattern macro

Source

pub fn with_textual_encoder(self, x: ORTConfig) -> Self

Sets the textual_encoder field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_textual_encoder(value);

Generated by aksr - Builder pattern macro

Source

pub fn textual_encoder(&self) -> &ORTConfig

Returns a reference to the textual_encoder field.

§Example
let obj = Config::default();
let value = obj.textual_encoder();

Generated by aksr - Builder pattern macro

Source

pub fn with_visual_decoder(self, x: ORTConfig) -> Self

Sets the visual_decoder field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_visual_decoder(value);

Generated by aksr - Builder pattern macro

Source

pub fn visual_decoder(&self) -> &ORTConfig

Returns a reference to the visual_decoder field.

§Example
let obj = Config::default();
let value = obj.visual_decoder();

Generated by aksr - Builder pattern macro

Source

pub fn with_textual_decoder(self, x: ORTConfig) -> Self

Sets the textual_decoder field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_textual_decoder(value);

Generated by aksr - Builder pattern macro

Source

pub fn textual_decoder(&self) -> &ORTConfig

Returns a reference to the textual_decoder field.

§Example
let obj = Config::default();
let value = obj.textual_decoder();

Generated by aksr - Builder pattern macro

Source

pub fn with_textual_decoder_merged(self, x: ORTConfig) -> Self

Sets the textual_decoder_merged field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_textual_decoder_merged(value);

Generated by aksr - Builder pattern macro

Source

pub fn textual_decoder_merged(&self) -> &ORTConfig

Returns a reference to the textual_decoder_merged field.

§Example
let obj = Config::default();
let value = obj.textual_decoder_merged();

Generated by aksr - Builder pattern macro

Source

pub fn with_size_encoder(self, x: ORTConfig) -> Self

Sets the size_encoder field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_size_encoder(value);

Generated by aksr - Builder pattern macro

Source

pub fn size_encoder(&self) -> &ORTConfig

Returns a reference to the size_encoder field.

§Example
let obj = Config::default();
let value = obj.size_encoder();

Generated by aksr - Builder pattern macro

Source

pub fn with_size_decoder(self, x: ORTConfig) -> Self

Sets the size_decoder field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_size_decoder(value);

Generated by aksr - Builder pattern macro

Source

pub fn size_decoder(&self) -> &ORTConfig

Returns a reference to the size_decoder field.

§Example
let obj = Config::default();
let value = obj.size_decoder();

Generated by aksr - Builder pattern macro

Source

pub fn with_coord_encoder(self, x: ORTConfig) -> Self

Sets the coord_encoder field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_coord_encoder(value);

Generated by aksr - Builder pattern macro

Source

pub fn coord_encoder(&self) -> &ORTConfig

Returns a reference to the coord_encoder field.

§Example
let obj = Config::default();
let value = obj.coord_encoder();

Generated by aksr - Builder pattern macro

Source

pub fn with_coord_decoder(self, x: ORTConfig) -> Self

Sets the coord_decoder field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_coord_decoder(value);

Generated by aksr - Builder pattern macro

Source

pub fn coord_decoder(&self) -> &ORTConfig

Returns a reference to the coord_decoder field.

§Example
let obj = Config::default();
let value = obj.coord_decoder();

Generated by aksr - Builder pattern macro

Source

pub fn with_visual_projection(self, x: ORTConfig) -> Self

Sets the visual_projection field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_visual_projection(value);

Generated by aksr - Builder pattern macro

Source

pub fn visual_projection(&self) -> &ORTConfig

Returns a reference to the visual_projection field.

§Example
let obj = Config::default();
let value = obj.visual_projection();

Generated by aksr - Builder pattern macro

Source

pub fn with_textual_projection(self, x: ORTConfig) -> Self

Sets the textual_projection field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_textual_projection(value);

Generated by aksr - Builder pattern macro

Source

pub fn textual_projection(&self) -> &ORTConfig

Returns a reference to the textual_projection field.

§Example
let obj = Config::default();
let value = obj.textual_projection();

Generated by aksr - Builder pattern macro

Source

pub fn with_processor(self, x: ProcessorConfig) -> Self

Sets the processor field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_processor(value);

Generated by aksr - Builder pattern macro

Source

pub fn processor(&self) -> &ProcessorConfig

Returns a reference to the processor field.

§Example
let obj = Config::default();
let value = obj.processor();

Generated by aksr - Builder pattern macro

Source

pub fn with_class_names(self, x: &[&str]) -> Self

Sets the class_names field from a slice of string slices.

§Arguments
  • x - A slice of string slices that will be automatically converted to Vec<String>
§Returns

Returns Self for method chaining.

§Note

If the slice is empty, the field remains unchanged.

§Example
let obj = Config::default().with_class_names(&["str1", "str2"]);

Generated by aksr - Builder pattern macro

Source

pub fn with_class_names_owned(self, x: &[String]) -> Self

Sets the class_names field from a slice of owned strings.

§Arguments
  • x - A slice of String to be cloned into the vector
§Returns

Returns Self for method chaining.

§Note

This method is useful when you already have a Vec<String> and want to avoid converting to &[&str]. If the slice is empty, the field remains unchanged.

§Example
let strings = vec![String::from("a"), String::from("b")];
let obj = Config::default().with_class_names_owned(&strings);

Generated by aksr - Builder pattern macro

Source

pub fn class_names(&self) -> &[String]

Returns a slice view of the class_names field.

§Example
let obj = Config::default();
let items = obj.class_names();

Generated by aksr - Builder pattern macro

Source

pub fn with_class_names2(self, x: &[&str]) -> Self

Sets the class_names2 field from a slice of string slices.

§Arguments
  • x - A slice of string slices that will be automatically converted to Vec<String>
§Returns

Returns Self for method chaining.

§Note

If the slice is empty, the field remains unchanged.

§Example
let obj = Config::default().with_class_names2(&["str1", "str2"]);

Generated by aksr - Builder pattern macro

Source

pub fn with_class_names2_owned(self, x: &[String]) -> Self

Sets the class_names2 field from a slice of owned strings.

§Arguments
  • x - A slice of String to be cloned into the vector
§Returns

Returns Self for method chaining.

§Note

This method is useful when you already have a Vec<String> and want to avoid converting to &[&str]. If the slice is empty, the field remains unchanged.

§Example
let strings = vec![String::from("a"), String::from("b")];
let obj = Config::default().with_class_names2_owned(&strings);

Generated by aksr - Builder pattern macro

Source

pub fn class_names2(&self) -> &[String]

Returns a slice view of the class_names2 field.

§Example
let obj = Config::default();
let items = obj.class_names2();

Generated by aksr - Builder pattern macro

Source

pub fn with_keypoint_names(self, x: &[&str]) -> Self

Sets the keypoint_names field from a slice of string slices.

§Arguments
  • x - A slice of string slices that will be automatically converted to Vec<String>
§Returns

Returns Self for method chaining.

§Note

If the slice is empty, the field remains unchanged.

§Example
let obj = Config::default().with_keypoint_names(&["str1", "str2"]);

Generated by aksr - Builder pattern macro

Source

pub fn with_keypoint_names_owned(self, x: &[String]) -> Self

Sets the keypoint_names field from a slice of owned strings.

§Arguments
  • x - A slice of String to be cloned into the vector
§Returns

Returns Self for method chaining.

§Note

This method is useful when you already have a Vec<String> and want to avoid converting to &[&str]. If the slice is empty, the field remains unchanged.

§Example
let strings = vec![String::from("a"), String::from("b")];
let obj = Config::default().with_keypoint_names_owned(&strings);

Generated by aksr - Builder pattern macro

Source

pub fn keypoint_names(&self) -> &[String]

Returns a slice view of the keypoint_names field.

§Example
let obj = Config::default();
let items = obj.keypoint_names();

Generated by aksr - Builder pattern macro

Source

pub fn with_text_names(self, x: &[&str]) -> Self

Sets the text_names field from a slice of string slices.

§Arguments
  • x - A slice of string slices that will be automatically converted to Vec<String>
§Returns

Returns Self for method chaining.

§Note

If the slice is empty, the field remains unchanged.

§Example
let obj = Config::default().with_text_names(&["str1", "str2"]);

Generated by aksr - Builder pattern macro

Source

pub fn with_text_names_owned(self, x: &[String]) -> Self

Sets the text_names field from a slice of owned strings.

§Arguments
  • x - A slice of String to be cloned into the vector
§Returns

Returns Self for method chaining.

§Note

This method is useful when you already have a Vec<String> and want to avoid converting to &[&str]. If the slice is empty, the field remains unchanged.

§Example
let strings = vec![String::from("a"), String::from("b")];
let obj = Config::default().with_text_names_owned(&strings);

Generated by aksr - Builder pattern macro

Source

pub fn text_names(&self) -> &[String]

Returns a slice view of the text_names field.

§Example
let obj = Config::default();
let items = obj.text_names();

Generated by aksr - Builder pattern macro

Source

pub fn with_class_confs(self, x: &[f32]) -> Self

Sets the class_confs field from a slice.

§Arguments
  • x - A slice of elements to be converted into a vector
§Returns

Returns Self for method chaining.

§Note

If the slice is empty, the field remains unchanged.

§Example
let obj = Config::default().with_class_confs(&[item1, item2]);

Generated by aksr - Builder pattern macro

Source

pub fn class_confs(&self) -> &[f32]

Returns a slice view of the class_confs field.

§Example
let obj = Config::default();
let items = obj.class_confs();

Generated by aksr - Builder pattern macro

Source

pub fn with_keypoint_confs(self, x: &[f32]) -> Self

Sets the keypoint_confs field from a slice.

§Arguments
  • x - A slice of elements to be converted into a vector
§Returns

Returns Self for method chaining.

§Note

If the slice is empty, the field remains unchanged.

§Example
let obj = Config::default().with_keypoint_confs(&[item1, item2]);

Generated by aksr - Builder pattern macro

Source

pub fn keypoint_confs(&self) -> &[f32]

Returns a slice view of the keypoint_confs field.

§Example
let obj = Config::default();
let items = obj.keypoint_confs();

Generated by aksr - Builder pattern macro

Source

pub fn with_text_confs(self, x: &[f32]) -> Self

Sets the text_confs field from a slice.

§Arguments
  • x - A slice of elements to be converted into a vector
§Returns

Returns Self for method chaining.

§Note

If the slice is empty, the field remains unchanged.

§Example
let obj = Config::default().with_text_confs(&[item1, item2]);

Generated by aksr - Builder pattern macro

Source

pub fn text_confs(&self) -> &[f32]

Returns a slice view of the text_confs field.

§Example
let obj = Config::default();
let items = obj.text_confs();

Generated by aksr - Builder pattern macro

Source

pub fn with_apply_softmax(self, x: bool) -> Self

Sets the optional apply_softmax field.

§Arguments
  • x - The value that will be automatically wrapped in Some
§Returns

Returns Self for method chaining.

§Note

The value is automatically wrapped in Some, so you don’t need to pass Some(value).

§Example
let obj = Config::default().with_apply_softmax(value);

Generated by aksr - Builder pattern macro

Source

pub fn apply_softmax(&self) -> Option<bool>

Returns the value of the optional apply_softmax field.

§Example
let obj = Config::default();
let value = obj.apply_softmax();

Generated by aksr - Builder pattern macro

Source

pub fn with_topk(self, x: usize) -> Self

Sets the optional topk field.

§Arguments
  • x - The value that will be automatically wrapped in Some
§Returns

Returns Self for method chaining.

§Note

The value is automatically wrapped in Some, so you don’t need to pass Some(value).

§Example
let obj = Config::default().with_topk(value);

Generated by aksr - Builder pattern macro

Source

pub fn topk(&self) -> Option<usize>

Returns the value of the optional topk field.

§Example
let obj = Config::default();
let value = obj.topk();

Generated by aksr - Builder pattern macro

Source

pub fn with_nc(self, x: usize) -> Self

Sets the optional num_classes field.

§Arguments
  • x - The value that will be automatically wrapped in Some
§Returns

Returns Self for method chaining.

§Note

The value is automatically wrapped in Some, so you don’t need to pass Some(value).

§Example
let obj = Config::default().with_nc(value);

Generated by aksr - Builder pattern macro

Source

pub fn nc(&self) -> Option<usize>

Returns the value of the optional num_classes field.

§Example
let obj = Config::default();
let value = obj.nc();

Generated by aksr - Builder pattern macro

Source

pub fn with_nk(self, x: usize) -> Self

Sets the optional num_keypoints field.

§Arguments
  • x - The value that will be automatically wrapped in Some
§Returns

Returns Self for method chaining.

§Note

The value is automatically wrapped in Some, so you don’t need to pass Some(value).

§Example
let obj = Config::default().with_nk(value);

Generated by aksr - Builder pattern macro

Source

pub fn nk(&self) -> Option<usize>

Returns the value of the optional num_keypoints field.

§Example
let obj = Config::default();
let value = obj.nk();

Generated by aksr - Builder pattern macro

Source

pub fn with_nm(self, x: usize) -> Self

Sets the optional num_masks field.

§Arguments
  • x - The value that will be automatically wrapped in Some
§Returns

Returns Self for method chaining.

§Note

The value is automatically wrapped in Some, so you don’t need to pass Some(value).

§Example
let obj = Config::default().with_nm(value);

Generated by aksr - Builder pattern macro

Source

pub fn nm(&self) -> Option<usize>

Returns the value of the optional num_masks field.

§Example
let obj = Config::default();
let value = obj.nm();

Generated by aksr - Builder pattern macro

Source

pub fn with_iou(self, x: f32) -> Self

Sets the optional iou field.

§Arguments
  • x - The value that will be automatically wrapped in Some
§Returns

Returns Self for method chaining.

§Note

The value is automatically wrapped in Some, so you don’t need to pass Some(value).

§Example
let obj = Config::default().with_iou(value);

Generated by aksr - Builder pattern macro

Source

pub fn iou(&self) -> Option<f32>

Returns the value of the optional iou field.

§Example
let obj = Config::default();
let value = obj.iou();

Generated by aksr - Builder pattern macro

Source

pub fn with_apply_nms(self, x: bool) -> Self

Sets the optional apply_nms field.

§Arguments
  • x - The value that will be automatically wrapped in Some
§Returns

Returns Self for method chaining.

§Note

The value is automatically wrapped in Some, so you don’t need to pass Some(value).

§Example
let obj = Config::default().with_apply_nms(value);

Generated by aksr - Builder pattern macro

Source

pub fn apply_nms(&self) -> Option<bool>

Returns the value of the optional apply_nms field.

§Example
let obj = Config::default();
let value = obj.apply_nms();

Generated by aksr - Builder pattern macro

Source

pub fn with_find_contours(self, x: bool) -> Self

Sets the find_contours field.

§Arguments
  • x - The new value to be assigned
§Returns

Returns Self for method chaining.

§Example
let obj = Config::default().with_find_contours(value);

Generated by aksr - Builder pattern macro

Source

pub fn find_contours(&self) -> bool

Returns the value of the find_contours field.

§Example
let obj = Config::default();
let value = obj.find_contours();

Generated by aksr - Builder pattern macro

Source

pub fn with_yolo_preds_format(self, x: YOLOPredsFormat) -> Self

Sets the optional yolo_preds_format field.

§Arguments
  • x - The value that will be automatically wrapped in Some
§Returns

Returns Self for method chaining.

§Note

The value is automatically wrapped in Some, so you don’t need to pass Some(value).

§Example
let obj = Config::default().with_yolo_preds_format(value);

Generated by aksr - Builder pattern macro

Source

pub fn yolo_preds_format(&self) -> Option<&YOLOPredsFormat>

Returns an optional reference to the yolo_preds_format field.

§Example
let obj = Config::default();
let value = obj.yolo_preds_format();

Generated by aksr - Builder pattern macro

Source

pub fn with_classes_excluded(self, x: &[usize]) -> Self

Sets the classes_excluded field from a slice.

§Arguments
  • x - A slice of elements to be converted into a vector
§Returns

Returns Self for method chaining.

§Note

If the slice is empty, the field remains unchanged.

§Example
let obj = Config::default().with_classes_excluded(&[item1, item2]);

Generated by aksr - Builder pattern macro

Source

pub fn classes_excluded(&self) -> &[usize]

Returns a slice view of the classes_excluded field.

§Example
let obj = Config::default();
let items = obj.classes_excluded();

Generated by aksr - Builder pattern macro

Source

pub fn with_classes_retained(self, x: &[usize]) -> Self

Sets the classes_retained field from a slice.

§Arguments
  • x - A slice of elements to be converted into a vector
§Returns

Returns Self for method chaining.

§Note

If the slice is empty, the field remains unchanged.

§Example
let obj = Config::default().with_classes_retained(&[item1, item2]);

Generated by aksr - Builder pattern macro

Source

pub fn classes_retained(&self) -> &[usize]

Returns a slice view of the classes_retained field.

§Example
let obj = Config::default();
let items = obj.classes_retained();

Generated by aksr - Builder pattern macro

Source

pub fn with_min_width(self, x: f32) -> Self

Sets the optional min_width field.

§Arguments
  • x - The value that will be automatically wrapped in Some
§Returns

Returns Self for method chaining.

§Note

The value is automatically wrapped in Some, so you don’t need to pass Some(value).

§Example
let obj = Config::default().with_min_width(value);

Generated by aksr - Builder pattern macro

Source

pub fn min_width(&self) -> Option<f32>

Returns the value of the optional min_width field.

§Example
let obj = Config::default();
let value = obj.min_width();

Generated by aksr - Builder pattern macro

Source

pub fn with_min_height(self, x: f32) -> Self

Sets the optional min_height field.

§Arguments
  • x - The value that will be automatically wrapped in Some
§Returns

Returns Self for method chaining.

§Note

The value is automatically wrapped in Some, so you don’t need to pass Some(value).

§Example
let obj = Config::default().with_min_height(value);

Generated by aksr - Builder pattern macro

Source

pub fn min_height(&self) -> Option<f32>

Returns the value of the optional min_height field.

§Example
let obj = Config::default();
let value = obj.min_height();

Generated by aksr - Builder pattern macro

Source

pub fn with_db_unclip_ratio(self, x: f32) -> Self

Sets the optional db_unclip_ratio field.

§Arguments
  • x - The value that will be automatically wrapped in Some
§Returns

Returns Self for method chaining.

§Note

The value is automatically wrapped in Some, so you don’t need to pass Some(value).

§Example
let obj = Config::default().with_db_unclip_ratio(value);

Generated by aksr - Builder pattern macro

Source

pub fn db_unclip_ratio(&self) -> Option<f32>

Returns the value of the optional db_unclip_ratio field.

§Example
let obj = Config::default();
let value = obj.db_unclip_ratio();

Generated by aksr - Builder pattern macro

Source

pub fn with_db_binary_thresh(self, x: f32) -> Self

Sets the optional db_binary_thresh field.

§Arguments
  • x - The value that will be automatically wrapped in Some
§Returns

Returns Self for method chaining.

§Note

The value is automatically wrapped in Some, so you don’t need to pass Some(value).

§Example
let obj = Config::default().with_db_binary_thresh(value);

Generated by aksr - Builder pattern macro

Source

pub fn db_binary_thresh(&self) -> Option<f32>

Returns the value of the optional db_binary_thresh field.

§Example
let obj = Config::default();
let value = obj.db_binary_thresh();

Generated by aksr - Builder pattern macro

Source

pub fn with_max_tokens(self, x: usize) -> Self

Sets the optional max_tokens field.

§Arguments
  • x - The value that will be automatically wrapped in Some
§Returns

Returns Self for method chaining.

§Note

The value is automatically wrapped in Some, so you don’t need to pass Some(value).

§Example
let obj = Config::default().with_max_tokens(value);

Generated by aksr - Builder pattern macro

Source

pub fn max_tokens(&self) -> Option<usize>

Returns the value of the optional max_tokens field.

§Example
let obj = Config::default();
let value = obj.max_tokens();

Generated by aksr - Builder pattern macro

Source§

impl Config

Source

pub fn exclude_classes(self, xs: &[usize]) -> Self

Source

pub fn retain_classes(self, xs: &[usize]) -> Self

Source

pub fn commit(self) -> Result<Self>

Source

pub fn with_num_dry_run_all(self, x: usize) -> Self

Source

pub fn with_batch_size_all_min_opt_max( self, min: usize, opt: usize, max: usize, ) -> Self

Source

pub fn with_batch_size_all(self, batch_size: usize) -> Self

Source

pub fn with_device_all(self, device: Device) -> Self

Source

pub fn with_dtype_all(self, dtype: DType) -> Self

Source

pub fn with_graph_opt_level_all(self, level: u8) -> Self

Source

pub fn with_num_intra_threads_all(self, num_threads: usize) -> Self

Source

pub fn with_num_inter_threads_all(self, num_threads: usize) -> Self

Source

pub fn with_cpu_arena_allocator_all(self, x: bool) -> Self

Source

pub fn with_openvino_dynamic_shapes_all(self, x: bool) -> Self

Source

pub fn with_openvino_opencl_throttling_all(self, x: bool) -> Self

Source

pub fn with_openvino_qdq_optimizer_all(self, x: bool) -> Self

Source

pub fn with_openvino_num_threads_all(self, num_threads: usize) -> Self

Source

pub fn with_onednn_arena_allocator_all(self, x: bool) -> Self

Source

pub fn with_tensorrt_fp16_all(self, x: bool) -> Self

Source

pub fn with_tensorrt_engine_cache_all(self, x: bool) -> Self

Source

pub fn with_tensorrt_timing_cache_all(self, x: bool) -> Self

Source

pub fn with_coreml_static_input_shapes_all(self, x: bool) -> Self

Source

pub fn with_coreml_subgraph_running_all(self, x: bool) -> Self

Source

pub fn with_cann_graph_inference_all(self, x: bool) -> Self

Source

pub fn with_cann_dump_graphs_all(self, x: bool) -> Self

Source

pub fn with_cann_dump_om_model_all(self, x: bool) -> Self

Source

pub fn with_nnapi_cpu_only_all(self, x: bool) -> Self

Source

pub fn with_nnapi_disable_cpu_all(self, x: bool) -> Self

Source

pub fn with_nnapi_fp16_all(self, x: bool) -> Self

Source

pub fn with_nnapi_nchw_all(self, x: bool) -> Self

Source

pub fn with_armnn_arena_allocator_all(self, x: bool) -> Self

Source

pub fn with_migraphx_fp16_all(self, x: bool) -> Self

Source

pub fn with_migraphx_exhaustive_tune_all(self, x: bool) -> Self

Source§

impl Config

Source

pub fn with_model_file(self, file: &str) -> Self

Source

pub fn with_model_external_data_file(self, x: bool) -> Self

Source

pub fn with_model_dtype(self, dtype: DType) -> Self

Source

pub fn with_model_device(self, device: Device) -> Self

Source

pub fn with_model_num_dry_run(self, x: usize) -> Self

Source

pub fn with_model_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self

Source

pub fn with_model_graph_opt_level(self, x: u8) -> Self

Source

pub fn with_model_num_intra_threads(self, x: usize) -> Self

Source

pub fn with_model_num_inter_threads(self, x: usize) -> Self

Source

pub fn with_model_cpu_arena_allocator(self, x: bool) -> Self

Source

pub fn with_model_openvino_dynamic_shapes(self, x: bool) -> Self

Source

pub fn with_model_openvino_opencl_throttling(self, x: bool) -> Self

Source

pub fn with_model_openvino_qdq_optimizer(self, x: bool) -> Self

Source

pub fn with_model_openvino_num_threads(self, x: usize) -> Self

Source

pub fn with_model_onednn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_model_tensorrt_fp16(self, x: bool) -> Self

Source

pub fn with_model_tensorrt_engine_cache(self, x: bool) -> Self

Source

pub fn with_model_tensorrt_timing_cache(self, x: bool) -> Self

Source

pub fn with_model_coreml_static_input_shapes(self, x: bool) -> Self

Source

pub fn with_model_coreml_subgraph_running(self, x: bool) -> Self

Source

pub fn with_model_cann_graph_inference(self, x: bool) -> Self

Source

pub fn with_model_cann_dump_graphs(self, x: bool) -> Self

Source

pub fn with_model_cann_dump_om_model(self, x: bool) -> Self

Source

pub fn with_model_nnapi_cpu_only(self, x: bool) -> Self

Source

pub fn with_model_nnapi_disable_cpu(self, x: bool) -> Self

Source

pub fn with_model_nnapi_fp16(self, x: bool) -> Self

Source

pub fn with_model_nnapi_nchw(self, x: bool) -> Self

Source

pub fn with_model_armnn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_model_migraphx_fp16(self, x: bool) -> Self

Source

pub fn with_model_migraphx_exhaustive_tune(self, x: bool) -> Self

Source§

impl Config

Source

pub fn with_visual_file(self, file: &str) -> Self

Source

pub fn with_visual_external_data_file(self, x: bool) -> Self

Source

pub fn with_visual_dtype(self, dtype: DType) -> Self

Source

pub fn with_visual_device(self, device: Device) -> Self

Source

pub fn with_visual_num_dry_run(self, x: usize) -> Self

Source

pub fn with_visual_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self

Source

pub fn with_visual_graph_opt_level(self, x: u8) -> Self

Source

pub fn with_visual_num_intra_threads(self, x: usize) -> Self

Source

pub fn with_visual_num_inter_threads(self, x: usize) -> Self

Source

pub fn with_visual_cpu_arena_allocator(self, x: bool) -> Self

Source

pub fn with_visual_openvino_dynamic_shapes(self, x: bool) -> Self

Source

pub fn with_visual_openvino_opencl_throttling(self, x: bool) -> Self

Source

pub fn with_visual_openvino_qdq_optimizer(self, x: bool) -> Self

Source

pub fn with_visual_openvino_num_threads(self, x: usize) -> Self

Source

pub fn with_visual_onednn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_visual_tensorrt_fp16(self, x: bool) -> Self

Source

pub fn with_visual_tensorrt_engine_cache(self, x: bool) -> Self

Source

pub fn with_visual_tensorrt_timing_cache(self, x: bool) -> Self

Source

pub fn with_visual_coreml_static_input_shapes(self, x: bool) -> Self

Source

pub fn with_visual_coreml_subgraph_running(self, x: bool) -> Self

Source

pub fn with_visual_cann_graph_inference(self, x: bool) -> Self

Source

pub fn with_visual_cann_dump_graphs(self, x: bool) -> Self

Source

pub fn with_visual_cann_dump_om_model(self, x: bool) -> Self

Source

pub fn with_visual_nnapi_cpu_only(self, x: bool) -> Self

Source

pub fn with_visual_nnapi_disable_cpu(self, x: bool) -> Self

Source

pub fn with_visual_nnapi_fp16(self, x: bool) -> Self

Source

pub fn with_visual_nnapi_nchw(self, x: bool) -> Self

Source

pub fn with_visual_armnn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_visual_migraphx_fp16(self, x: bool) -> Self

Source

pub fn with_visual_migraphx_exhaustive_tune(self, x: bool) -> Self

Source§

impl Config

Source

pub fn with_textual_file(self, file: &str) -> Self

Source

pub fn with_textual_external_data_file(self, x: bool) -> Self

Source

pub fn with_textual_dtype(self, dtype: DType) -> Self

Source

pub fn with_textual_device(self, device: Device) -> Self

Source

pub fn with_textual_num_dry_run(self, x: usize) -> Self

Source

pub fn with_textual_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self

Source

pub fn with_textual_graph_opt_level(self, x: u8) -> Self

Source

pub fn with_textual_num_intra_threads(self, x: usize) -> Self

Source

pub fn with_textual_num_inter_threads(self, x: usize) -> Self

Source

pub fn with_textual_cpu_arena_allocator(self, x: bool) -> Self

Source

pub fn with_textual_openvino_dynamic_shapes(self, x: bool) -> Self

Source

pub fn with_textual_openvino_opencl_throttling(self, x: bool) -> Self

Source

pub fn with_textual_openvino_qdq_optimizer(self, x: bool) -> Self

Source

pub fn with_textual_openvino_num_threads(self, x: usize) -> Self

Source

pub fn with_textual_onednn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_textual_tensorrt_fp16(self, x: bool) -> Self

Source

pub fn with_textual_tensorrt_engine_cache(self, x: bool) -> Self

Source

pub fn with_textual_tensorrt_timing_cache(self, x: bool) -> Self

Source

pub fn with_textual_coreml_static_input_shapes(self, x: bool) -> Self

Source

pub fn with_textual_coreml_subgraph_running(self, x: bool) -> Self

Source

pub fn with_textual_cann_graph_inference(self, x: bool) -> Self

Source

pub fn with_textual_cann_dump_graphs(self, x: bool) -> Self

Source

pub fn with_textual_cann_dump_om_model(self, x: bool) -> Self

Source

pub fn with_textual_nnapi_cpu_only(self, x: bool) -> Self

Source

pub fn with_textual_nnapi_disable_cpu(self, x: bool) -> Self

Source

pub fn with_textual_nnapi_fp16(self, x: bool) -> Self

Source

pub fn with_textual_nnapi_nchw(self, x: bool) -> Self

Source

pub fn with_textual_armnn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_textual_migraphx_fp16(self, x: bool) -> Self

Source

pub fn with_textual_migraphx_exhaustive_tune(self, x: bool) -> Self

Source§

impl Config

Source

pub fn with_encoder_file(self, file: &str) -> Self

Source

pub fn with_encoder_external_data_file(self, x: bool) -> Self

Source

pub fn with_encoder_dtype(self, dtype: DType) -> Self

Source

pub fn with_encoder_device(self, device: Device) -> Self

Source

pub fn with_encoder_num_dry_run(self, x: usize) -> Self

Source

pub fn with_encoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self

Source

pub fn with_encoder_graph_opt_level(self, x: u8) -> Self

Source

pub fn with_encoder_num_intra_threads(self, x: usize) -> Self

Source

pub fn with_encoder_num_inter_threads(self, x: usize) -> Self

Source

pub fn with_encoder_cpu_arena_allocator(self, x: bool) -> Self

Source

pub fn with_encoder_openvino_dynamic_shapes(self, x: bool) -> Self

Source

pub fn with_encoder_openvino_opencl_throttling(self, x: bool) -> Self

Source

pub fn with_encoder_openvino_qdq_optimizer(self, x: bool) -> Self

Source

pub fn with_encoder_openvino_num_threads(self, x: usize) -> Self

Source

pub fn with_encoder_onednn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_encoder_tensorrt_fp16(self, x: bool) -> Self

Source

pub fn with_encoder_tensorrt_engine_cache(self, x: bool) -> Self

Source

pub fn with_encoder_tensorrt_timing_cache(self, x: bool) -> Self

Source

pub fn with_encoder_coreml_static_input_shapes(self, x: bool) -> Self

Source

pub fn with_encoder_coreml_subgraph_running(self, x: bool) -> Self

Source

pub fn with_encoder_cann_graph_inference(self, x: bool) -> Self

Source

pub fn with_encoder_cann_dump_graphs(self, x: bool) -> Self

Source

pub fn with_encoder_cann_dump_om_model(self, x: bool) -> Self

Source

pub fn with_encoder_nnapi_cpu_only(self, x: bool) -> Self

Source

pub fn with_encoder_nnapi_disable_cpu(self, x: bool) -> Self

Source

pub fn with_encoder_nnapi_fp16(self, x: bool) -> Self

Source

pub fn with_encoder_nnapi_nchw(self, x: bool) -> Self

Source

pub fn with_encoder_armnn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_encoder_migraphx_fp16(self, x: bool) -> Self

Source

pub fn with_encoder_migraphx_exhaustive_tune(self, x: bool) -> Self

Source§

impl Config

Source

pub fn with_decoder_file(self, file: &str) -> Self

Source

pub fn with_decoder_external_data_file(self, x: bool) -> Self

Source

pub fn with_decoder_dtype(self, dtype: DType) -> Self

Source

pub fn with_decoder_device(self, device: Device) -> Self

Source

pub fn with_decoder_num_dry_run(self, x: usize) -> Self

Source

pub fn with_decoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self

Source

pub fn with_decoder_graph_opt_level(self, x: u8) -> Self

Source

pub fn with_decoder_num_intra_threads(self, x: usize) -> Self

Source

pub fn with_decoder_num_inter_threads(self, x: usize) -> Self

Source

pub fn with_decoder_cpu_arena_allocator(self, x: bool) -> Self

Source

pub fn with_decoder_openvino_dynamic_shapes(self, x: bool) -> Self

Source

pub fn with_decoder_openvino_opencl_throttling(self, x: bool) -> Self

Source

pub fn with_decoder_openvino_qdq_optimizer(self, x: bool) -> Self

Source

pub fn with_decoder_openvino_num_threads(self, x: usize) -> Self

Source

pub fn with_decoder_onednn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_decoder_tensorrt_fp16(self, x: bool) -> Self

Source

pub fn with_decoder_tensorrt_engine_cache(self, x: bool) -> Self

Source

pub fn with_decoder_tensorrt_timing_cache(self, x: bool) -> Self

Source

pub fn with_decoder_coreml_static_input_shapes(self, x: bool) -> Self

Source

pub fn with_decoder_coreml_subgraph_running(self, x: bool) -> Self

Source

pub fn with_decoder_cann_graph_inference(self, x: bool) -> Self

Source

pub fn with_decoder_cann_dump_graphs(self, x: bool) -> Self

Source

pub fn with_decoder_cann_dump_om_model(self, x: bool) -> Self

Source

pub fn with_decoder_nnapi_cpu_only(self, x: bool) -> Self

Source

pub fn with_decoder_nnapi_disable_cpu(self, x: bool) -> Self

Source

pub fn with_decoder_nnapi_fp16(self, x: bool) -> Self

Source

pub fn with_decoder_nnapi_nchw(self, x: bool) -> Self

Source

pub fn with_decoder_armnn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_decoder_migraphx_fp16(self, x: bool) -> Self

Source

pub fn with_decoder_migraphx_exhaustive_tune(self, x: bool) -> Self

Source§

impl Config

Source

pub fn with_visual_encoder_file(self, file: &str) -> Self

Source

pub fn with_visual_encoder_external_data_file(self, x: bool) -> Self

Source

pub fn with_visual_encoder_dtype(self, dtype: DType) -> Self

Source

pub fn with_visual_encoder_device(self, device: Device) -> Self

Source

pub fn with_visual_encoder_num_dry_run(self, x: usize) -> Self

Source

pub fn with_visual_encoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self

Source

pub fn with_visual_encoder_graph_opt_level(self, x: u8) -> Self

Source

pub fn with_visual_encoder_num_intra_threads(self, x: usize) -> Self

Source

pub fn with_visual_encoder_num_inter_threads(self, x: usize) -> Self

Source

pub fn with_visual_encoder_cpu_arena_allocator(self, x: bool) -> Self

Source

pub fn with_visual_encoder_openvino_dynamic_shapes(self, x: bool) -> Self

Source

pub fn with_visual_encoder_openvino_opencl_throttling(self, x: bool) -> Self

Source

pub fn with_visual_encoder_openvino_qdq_optimizer(self, x: bool) -> Self

Source

pub fn with_visual_encoder_openvino_num_threads(self, x: usize) -> Self

Source

pub fn with_visual_encoder_onednn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_visual_encoder_tensorrt_fp16(self, x: bool) -> Self

Source

pub fn with_visual_encoder_tensorrt_engine_cache(self, x: bool) -> Self

Source

pub fn with_visual_encoder_tensorrt_timing_cache(self, x: bool) -> Self

Source

pub fn with_visual_encoder_coreml_static_input_shapes(self, x: bool) -> Self

Source

pub fn with_visual_encoder_coreml_subgraph_running(self, x: bool) -> Self

Source

pub fn with_visual_encoder_cann_graph_inference(self, x: bool) -> Self

Source

pub fn with_visual_encoder_cann_dump_graphs(self, x: bool) -> Self

Source

pub fn with_visual_encoder_cann_dump_om_model(self, x: bool) -> Self

Source

pub fn with_visual_encoder_nnapi_cpu_only(self, x: bool) -> Self

Source

pub fn with_visual_encoder_nnapi_disable_cpu(self, x: bool) -> Self

Source

pub fn with_visual_encoder_nnapi_fp16(self, x: bool) -> Self

Source

pub fn with_visual_encoder_nnapi_nchw(self, x: bool) -> Self

Source

pub fn with_visual_encoder_armnn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_visual_encoder_migraphx_fp16(self, x: bool) -> Self

Source

pub fn with_visual_encoder_migraphx_exhaustive_tune(self, x: bool) -> Self

Source§

impl Config

Source

pub fn with_textual_encoder_file(self, file: &str) -> Self

Source

pub fn with_textual_encoder_external_data_file(self, x: bool) -> Self

Source

pub fn with_textual_encoder_dtype(self, dtype: DType) -> Self

Source

pub fn with_textual_encoder_device(self, device: Device) -> Self

Source

pub fn with_textual_encoder_num_dry_run(self, x: usize) -> Self

Source

pub fn with_textual_encoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self

Source

pub fn with_textual_encoder_graph_opt_level(self, x: u8) -> Self

Source

pub fn with_textual_encoder_num_intra_threads(self, x: usize) -> Self

Source

pub fn with_textual_encoder_num_inter_threads(self, x: usize) -> Self

Source

pub fn with_textual_encoder_cpu_arena_allocator(self, x: bool) -> Self

Source

pub fn with_textual_encoder_openvino_dynamic_shapes(self, x: bool) -> Self

Source

pub fn with_textual_encoder_openvino_opencl_throttling(self, x: bool) -> Self

Source

pub fn with_textual_encoder_openvino_qdq_optimizer(self, x: bool) -> Self

Source

pub fn with_textual_encoder_openvino_num_threads(self, x: usize) -> Self

Source

pub fn with_textual_encoder_onednn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_textual_encoder_tensorrt_fp16(self, x: bool) -> Self

Source

pub fn with_textual_encoder_tensorrt_engine_cache(self, x: bool) -> Self

Source

pub fn with_textual_encoder_tensorrt_timing_cache(self, x: bool) -> Self

Source

pub fn with_textual_encoder_coreml_static_input_shapes(self, x: bool) -> Self

Source

pub fn with_textual_encoder_coreml_subgraph_running(self, x: bool) -> Self

Source

pub fn with_textual_encoder_cann_graph_inference(self, x: bool) -> Self

Source

pub fn with_textual_encoder_cann_dump_graphs(self, x: bool) -> Self

Source

pub fn with_textual_encoder_cann_dump_om_model(self, x: bool) -> Self

Source

pub fn with_textual_encoder_nnapi_cpu_only(self, x: bool) -> Self

Source

pub fn with_textual_encoder_nnapi_disable_cpu(self, x: bool) -> Self

Source

pub fn with_textual_encoder_nnapi_fp16(self, x: bool) -> Self

Source

pub fn with_textual_encoder_nnapi_nchw(self, x: bool) -> Self

Source

pub fn with_textual_encoder_armnn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_textual_encoder_migraphx_fp16(self, x: bool) -> Self

Source

pub fn with_textual_encoder_migraphx_exhaustive_tune(self, x: bool) -> Self

Source§

impl Config

Source

pub fn with_visual_decoder_file(self, file: &str) -> Self

Source

pub fn with_visual_decoder_external_data_file(self, x: bool) -> Self

Source

pub fn with_visual_decoder_dtype(self, dtype: DType) -> Self

Source

pub fn with_visual_decoder_device(self, device: Device) -> Self

Source

pub fn with_visual_decoder_num_dry_run(self, x: usize) -> Self

Source

pub fn with_visual_decoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self

Source

pub fn with_visual_decoder_graph_opt_level(self, x: u8) -> Self

Source

pub fn with_visual_decoder_num_intra_threads(self, x: usize) -> Self

Source

pub fn with_visual_decoder_num_inter_threads(self, x: usize) -> Self

Source

pub fn with_visual_decoder_cpu_arena_allocator(self, x: bool) -> Self

Source

pub fn with_visual_decoder_openvino_dynamic_shapes(self, x: bool) -> Self

Source

pub fn with_visual_decoder_openvino_opencl_throttling(self, x: bool) -> Self

Source

pub fn with_visual_decoder_openvino_qdq_optimizer(self, x: bool) -> Self

Source

pub fn with_visual_decoder_openvino_num_threads(self, x: usize) -> Self

Source

pub fn with_visual_decoder_onednn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_visual_decoder_tensorrt_fp16(self, x: bool) -> Self

Source

pub fn with_visual_decoder_tensorrt_engine_cache(self, x: bool) -> Self

Source

pub fn with_visual_decoder_tensorrt_timing_cache(self, x: bool) -> Self

Source

pub fn with_visual_decoder_coreml_static_input_shapes(self, x: bool) -> Self

Source

pub fn with_visual_decoder_coreml_subgraph_running(self, x: bool) -> Self

Source

pub fn with_visual_decoder_cann_graph_inference(self, x: bool) -> Self

Source

pub fn with_visual_decoder_cann_dump_graphs(self, x: bool) -> Self

Source

pub fn with_visual_decoder_cann_dump_om_model(self, x: bool) -> Self

Source

pub fn with_visual_decoder_nnapi_cpu_only(self, x: bool) -> Self

Source

pub fn with_visual_decoder_nnapi_disable_cpu(self, x: bool) -> Self

Source

pub fn with_visual_decoder_nnapi_fp16(self, x: bool) -> Self

Source

pub fn with_visual_decoder_nnapi_nchw(self, x: bool) -> Self

Source

pub fn with_visual_decoder_armnn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_visual_decoder_migraphx_fp16(self, x: bool) -> Self

Source

pub fn with_visual_decoder_migraphx_exhaustive_tune(self, x: bool) -> Self

Source§

impl Config

Source

pub fn with_textual_decoder_file(self, file: &str) -> Self

Source

pub fn with_textual_decoder_external_data_file(self, x: bool) -> Self

Source

pub fn with_textual_decoder_dtype(self, dtype: DType) -> Self

Source

pub fn with_textual_decoder_device(self, device: Device) -> Self

Source

pub fn with_textual_decoder_num_dry_run(self, x: usize) -> Self

Source

pub fn with_textual_decoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self

Source

pub fn with_textual_decoder_graph_opt_level(self, x: u8) -> Self

Source

pub fn with_textual_decoder_num_intra_threads(self, x: usize) -> Self

Source

pub fn with_textual_decoder_num_inter_threads(self, x: usize) -> Self

Source

pub fn with_textual_decoder_cpu_arena_allocator(self, x: bool) -> Self

Source

pub fn with_textual_decoder_openvino_dynamic_shapes(self, x: bool) -> Self

Source

pub fn with_textual_decoder_openvino_opencl_throttling(self, x: bool) -> Self

Source

pub fn with_textual_decoder_openvino_qdq_optimizer(self, x: bool) -> Self

Source

pub fn with_textual_decoder_openvino_num_threads(self, x: usize) -> Self

Source

pub fn with_textual_decoder_onednn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_textual_decoder_tensorrt_fp16(self, x: bool) -> Self

Source

pub fn with_textual_decoder_tensorrt_engine_cache(self, x: bool) -> Self

Source

pub fn with_textual_decoder_tensorrt_timing_cache(self, x: bool) -> Self

Source

pub fn with_textual_decoder_coreml_static_input_shapes(self, x: bool) -> Self

Source

pub fn with_textual_decoder_coreml_subgraph_running(self, x: bool) -> Self

Source

pub fn with_textual_decoder_cann_graph_inference(self, x: bool) -> Self

Source

pub fn with_textual_decoder_cann_dump_graphs(self, x: bool) -> Self

Source

pub fn with_textual_decoder_cann_dump_om_model(self, x: bool) -> Self

Source

pub fn with_textual_decoder_nnapi_cpu_only(self, x: bool) -> Self

Source

pub fn with_textual_decoder_nnapi_disable_cpu(self, x: bool) -> Self

Source

pub fn with_textual_decoder_nnapi_fp16(self, x: bool) -> Self

Source

pub fn with_textual_decoder_nnapi_nchw(self, x: bool) -> Self

Source

pub fn with_textual_decoder_armnn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_textual_decoder_migraphx_fp16(self, x: bool) -> Self

Source

pub fn with_textual_decoder_migraphx_exhaustive_tune(self, x: bool) -> Self

Source§

impl Config

Source

pub fn with_textual_decoder_merged_file(self, file: &str) -> Self

Source

pub fn with_textual_decoder_merged_external_data_file(self, x: bool) -> Self

Source

pub fn with_textual_decoder_merged_dtype(self, dtype: DType) -> Self

Source

pub fn with_textual_decoder_merged_device(self, device: Device) -> Self

Source

pub fn with_textual_decoder_merged_num_dry_run(self, x: usize) -> Self

Source

pub fn with_textual_decoder_merged_ixx( self, i: usize, ii: usize, x: MinOptMax, ) -> Self

Source

pub fn with_textual_decoder_merged_graph_opt_level(self, x: u8) -> Self

Source

pub fn with_textual_decoder_merged_num_intra_threads(self, x: usize) -> Self

Source

pub fn with_textual_decoder_merged_num_inter_threads(self, x: usize) -> Self

Source

pub fn with_textual_decoder_merged_cpu_arena_allocator(self, x: bool) -> Self

Source

pub fn with_textual_decoder_merged_openvino_dynamic_shapes( self, x: bool, ) -> Self

Source

pub fn with_textual_decoder_merged_openvino_opencl_throttling( self, x: bool, ) -> Self

Source

pub fn with_textual_decoder_merged_openvino_qdq_optimizer(self, x: bool) -> Self

Source

pub fn with_textual_decoder_merged_openvino_num_threads(self, x: usize) -> Self

Source

pub fn with_textual_decoder_merged_onednn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_textual_decoder_merged_tensorrt_fp16(self, x: bool) -> Self

Source

pub fn with_textual_decoder_merged_tensorrt_engine_cache(self, x: bool) -> Self

Source

pub fn with_textual_decoder_merged_tensorrt_timing_cache(self, x: bool) -> Self

Source

pub fn with_textual_decoder_merged_coreml_static_input_shapes( self, x: bool, ) -> Self

Source

pub fn with_textual_decoder_merged_coreml_subgraph_running( self, x: bool, ) -> Self

Source

pub fn with_textual_decoder_merged_cann_graph_inference(self, x: bool) -> Self

Source

pub fn with_textual_decoder_merged_cann_dump_graphs(self, x: bool) -> Self

Source

pub fn with_textual_decoder_merged_cann_dump_om_model(self, x: bool) -> Self

Source

pub fn with_textual_decoder_merged_nnapi_cpu_only(self, x: bool) -> Self

Source

pub fn with_textual_decoder_merged_nnapi_disable_cpu(self, x: bool) -> Self

Source

pub fn with_textual_decoder_merged_nnapi_fp16(self, x: bool) -> Self

Source

pub fn with_textual_decoder_merged_nnapi_nchw(self, x: bool) -> Self

Source

pub fn with_textual_decoder_merged_armnn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_textual_decoder_merged_migraphx_fp16(self, x: bool) -> Self

Source

pub fn with_textual_decoder_merged_migraphx_exhaustive_tune( self, x: bool, ) -> Self

Source§

impl Config

Source

pub fn with_size_encoder_file(self, file: &str) -> Self

Source

pub fn with_size_encoder_external_data_file(self, x: bool) -> Self

Source

pub fn with_size_encoder_dtype(self, dtype: DType) -> Self

Source

pub fn with_size_encoder_device(self, device: Device) -> Self

Source

pub fn with_size_encoder_num_dry_run(self, x: usize) -> Self

Source

pub fn with_size_encoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self

Source

pub fn with_size_encoder_graph_opt_level(self, x: u8) -> Self

Source

pub fn with_size_encoder_num_intra_threads(self, x: usize) -> Self

Source

pub fn with_size_encoder_num_inter_threads(self, x: usize) -> Self

Source

pub fn with_size_encoder_cpu_arena_allocator(self, x: bool) -> Self

Source

pub fn with_size_encoder_openvino_dynamic_shapes(self, x: bool) -> Self

Source

pub fn with_size_encoder_openvino_opencl_throttling(self, x: bool) -> Self

Source

pub fn with_size_encoder_openvino_qdq_optimizer(self, x: bool) -> Self

Source

pub fn with_size_encoder_openvino_num_threads(self, x: usize) -> Self

Source

pub fn with_size_encoder_onednn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_size_encoder_tensorrt_fp16(self, x: bool) -> Self

Source

pub fn with_size_encoder_tensorrt_engine_cache(self, x: bool) -> Self

Source

pub fn with_size_encoder_tensorrt_timing_cache(self, x: bool) -> Self

Source

pub fn with_size_encoder_coreml_static_input_shapes(self, x: bool) -> Self

Source

pub fn with_size_encoder_coreml_subgraph_running(self, x: bool) -> Self

Source

pub fn with_size_encoder_cann_graph_inference(self, x: bool) -> Self

Source

pub fn with_size_encoder_cann_dump_graphs(self, x: bool) -> Self

Source

pub fn with_size_encoder_cann_dump_om_model(self, x: bool) -> Self

Source

pub fn with_size_encoder_nnapi_cpu_only(self, x: bool) -> Self

Source

pub fn with_size_encoder_nnapi_disable_cpu(self, x: bool) -> Self

Source

pub fn with_size_encoder_nnapi_fp16(self, x: bool) -> Self

Source

pub fn with_size_encoder_nnapi_nchw(self, x: bool) -> Self

Source

pub fn with_size_encoder_armnn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_size_encoder_migraphx_fp16(self, x: bool) -> Self

Source

pub fn with_size_encoder_migraphx_exhaustive_tune(self, x: bool) -> Self

Source§

impl Config

Source

pub fn with_size_decoder_file(self, file: &str) -> Self

Source

pub fn with_size_decoder_external_data_file(self, x: bool) -> Self

Source

pub fn with_size_decoder_dtype(self, dtype: DType) -> Self

Source

pub fn with_size_decoder_device(self, device: Device) -> Self

Source

pub fn with_size_decoder_num_dry_run(self, x: usize) -> Self

Source

pub fn with_size_decoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self

Source

pub fn with_size_decoder_graph_opt_level(self, x: u8) -> Self

Source

pub fn with_size_decoder_num_intra_threads(self, x: usize) -> Self

Source

pub fn with_size_decoder_num_inter_threads(self, x: usize) -> Self

Source

pub fn with_size_decoder_cpu_arena_allocator(self, x: bool) -> Self

Source

pub fn with_size_decoder_openvino_dynamic_shapes(self, x: bool) -> Self

Source

pub fn with_size_decoder_openvino_opencl_throttling(self, x: bool) -> Self

Source

pub fn with_size_decoder_openvino_qdq_optimizer(self, x: bool) -> Self

Source

pub fn with_size_decoder_openvino_num_threads(self, x: usize) -> Self

Source

pub fn with_size_decoder_onednn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_size_decoder_tensorrt_fp16(self, x: bool) -> Self

Source

pub fn with_size_decoder_tensorrt_engine_cache(self, x: bool) -> Self

Source

pub fn with_size_decoder_tensorrt_timing_cache(self, x: bool) -> Self

Source

pub fn with_size_decoder_coreml_static_input_shapes(self, x: bool) -> Self

Source

pub fn with_size_decoder_coreml_subgraph_running(self, x: bool) -> Self

Source

pub fn with_size_decoder_cann_graph_inference(self, x: bool) -> Self

Source

pub fn with_size_decoder_cann_dump_graphs(self, x: bool) -> Self

Source

pub fn with_size_decoder_cann_dump_om_model(self, x: bool) -> Self

Source

pub fn with_size_decoder_nnapi_cpu_only(self, x: bool) -> Self

Source

pub fn with_size_decoder_nnapi_disable_cpu(self, x: bool) -> Self

Source

pub fn with_size_decoder_nnapi_fp16(self, x: bool) -> Self

Source

pub fn with_size_decoder_nnapi_nchw(self, x: bool) -> Self

Source

pub fn with_size_decoder_armnn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_size_decoder_migraphx_fp16(self, x: bool) -> Self

Source

pub fn with_size_decoder_migraphx_exhaustive_tune(self, x: bool) -> Self

Source§

impl Config

Source

pub fn with_coord_encoder_file(self, file: &str) -> Self

Source

pub fn with_coord_encoder_external_data_file(self, x: bool) -> Self

Source

pub fn with_coord_encoder_dtype(self, dtype: DType) -> Self

Source

pub fn with_coord_encoder_device(self, device: Device) -> Self

Source

pub fn with_coord_encoder_num_dry_run(self, x: usize) -> Self

Source

pub fn with_coord_encoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self

Source

pub fn with_coord_encoder_graph_opt_level(self, x: u8) -> Self

Source

pub fn with_coord_encoder_num_intra_threads(self, x: usize) -> Self

Source

pub fn with_coord_encoder_num_inter_threads(self, x: usize) -> Self

Source

pub fn with_coord_encoder_cpu_arena_allocator(self, x: bool) -> Self

Source

pub fn with_coord_encoder_openvino_dynamic_shapes(self, x: bool) -> Self

Source

pub fn with_coord_encoder_openvino_opencl_throttling(self, x: bool) -> Self

Source

pub fn with_coord_encoder_openvino_qdq_optimizer(self, x: bool) -> Self

Source

pub fn with_coord_encoder_openvino_num_threads(self, x: usize) -> Self

Source

pub fn with_coord_encoder_onednn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_coord_encoder_tensorrt_fp16(self, x: bool) -> Self

Source

pub fn with_coord_encoder_tensorrt_engine_cache(self, x: bool) -> Self

Source

pub fn with_coord_encoder_tensorrt_timing_cache(self, x: bool) -> Self

Source

pub fn with_coord_encoder_coreml_static_input_shapes(self, x: bool) -> Self

Source

pub fn with_coord_encoder_coreml_subgraph_running(self, x: bool) -> Self

Source

pub fn with_coord_encoder_cann_graph_inference(self, x: bool) -> Self

Source

pub fn with_coord_encoder_cann_dump_graphs(self, x: bool) -> Self

Source

pub fn with_coord_encoder_cann_dump_om_model(self, x: bool) -> Self

Source

pub fn with_coord_encoder_nnapi_cpu_only(self, x: bool) -> Self

Source

pub fn with_coord_encoder_nnapi_disable_cpu(self, x: bool) -> Self

Source

pub fn with_coord_encoder_nnapi_fp16(self, x: bool) -> Self

Source

pub fn with_coord_encoder_nnapi_nchw(self, x: bool) -> Self

Source

pub fn with_coord_encoder_armnn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_coord_encoder_migraphx_fp16(self, x: bool) -> Self

Source

pub fn with_coord_encoder_migraphx_exhaustive_tune(self, x: bool) -> Self

Source§

impl Config

Source

pub fn with_coord_decoder_file(self, file: &str) -> Self

Source

pub fn with_coord_decoder_external_data_file(self, x: bool) -> Self

Source

pub fn with_coord_decoder_dtype(self, dtype: DType) -> Self

Source

pub fn with_coord_decoder_device(self, device: Device) -> Self

Source

pub fn with_coord_decoder_num_dry_run(self, x: usize) -> Self

Source

pub fn with_coord_decoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self

Source

pub fn with_coord_decoder_graph_opt_level(self, x: u8) -> Self

Source

pub fn with_coord_decoder_num_intra_threads(self, x: usize) -> Self

Source

pub fn with_coord_decoder_num_inter_threads(self, x: usize) -> Self

Source

pub fn with_coord_decoder_cpu_arena_allocator(self, x: bool) -> Self

Source

pub fn with_coord_decoder_openvino_dynamic_shapes(self, x: bool) -> Self

Source

pub fn with_coord_decoder_openvino_opencl_throttling(self, x: bool) -> Self

Source

pub fn with_coord_decoder_openvino_qdq_optimizer(self, x: bool) -> Self

Source

pub fn with_coord_decoder_openvino_num_threads(self, x: usize) -> Self

Source

pub fn with_coord_decoder_onednn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_coord_decoder_tensorrt_fp16(self, x: bool) -> Self

Source

pub fn with_coord_decoder_tensorrt_engine_cache(self, x: bool) -> Self

Source

pub fn with_coord_decoder_tensorrt_timing_cache(self, x: bool) -> Self

Source

pub fn with_coord_decoder_coreml_static_input_shapes(self, x: bool) -> Self

Source

pub fn with_coord_decoder_coreml_subgraph_running(self, x: bool) -> Self

Source

pub fn with_coord_decoder_cann_graph_inference(self, x: bool) -> Self

Source

pub fn with_coord_decoder_cann_dump_graphs(self, x: bool) -> Self

Source

pub fn with_coord_decoder_cann_dump_om_model(self, x: bool) -> Self

Source

pub fn with_coord_decoder_nnapi_cpu_only(self, x: bool) -> Self

Source

pub fn with_coord_decoder_nnapi_disable_cpu(self, x: bool) -> Self

Source

pub fn with_coord_decoder_nnapi_fp16(self, x: bool) -> Self

Source

pub fn with_coord_decoder_nnapi_nchw(self, x: bool) -> Self

Source

pub fn with_coord_decoder_armnn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_coord_decoder_migraphx_fp16(self, x: bool) -> Self

Source

pub fn with_coord_decoder_migraphx_exhaustive_tune(self, x: bool) -> Self

Source§

impl Config

Source

pub fn with_visual_projection_file(self, file: &str) -> Self

Source

pub fn with_visual_projection_external_data_file(self, x: bool) -> Self

Source

pub fn with_visual_projection_dtype(self, dtype: DType) -> Self

Source

pub fn with_visual_projection_device(self, device: Device) -> Self

Source

pub fn with_visual_projection_num_dry_run(self, x: usize) -> Self

Source

pub fn with_visual_projection_ixx( self, i: usize, ii: usize, x: MinOptMax, ) -> Self

Source

pub fn with_visual_projection_graph_opt_level(self, x: u8) -> Self

Source

pub fn with_visual_projection_num_intra_threads(self, x: usize) -> Self

Source

pub fn with_visual_projection_num_inter_threads(self, x: usize) -> Self

Source

pub fn with_visual_projection_cpu_arena_allocator(self, x: bool) -> Self

Source

pub fn with_visual_projection_openvino_dynamic_shapes(self, x: bool) -> Self

Source

pub fn with_visual_projection_openvino_opencl_throttling(self, x: bool) -> Self

Source

pub fn with_visual_projection_openvino_qdq_optimizer(self, x: bool) -> Self

Source

pub fn with_visual_projection_openvino_num_threads(self, x: usize) -> Self

Source

pub fn with_visual_projection_onednn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_visual_projection_tensorrt_fp16(self, x: bool) -> Self

Source

pub fn with_visual_projection_tensorrt_engine_cache(self, x: bool) -> Self

Source

pub fn with_visual_projection_tensorrt_timing_cache(self, x: bool) -> Self

Source

pub fn with_visual_projection_coreml_static_input_shapes(self, x: bool) -> Self

Source

pub fn with_visual_projection_coreml_subgraph_running(self, x: bool) -> Self

Source

pub fn with_visual_projection_cann_graph_inference(self, x: bool) -> Self

Source

pub fn with_visual_projection_cann_dump_graphs(self, x: bool) -> Self

Source

pub fn with_visual_projection_cann_dump_om_model(self, x: bool) -> Self

Source

pub fn with_visual_projection_nnapi_cpu_only(self, x: bool) -> Self

Source

pub fn with_visual_projection_nnapi_disable_cpu(self, x: bool) -> Self

Source

pub fn with_visual_projection_nnapi_fp16(self, x: bool) -> Self

Source

pub fn with_visual_projection_nnapi_nchw(self, x: bool) -> Self

Source

pub fn with_visual_projection_armnn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_visual_projection_migraphx_fp16(self, x: bool) -> Self

Source

pub fn with_visual_projection_migraphx_exhaustive_tune(self, x: bool) -> Self

Source§

impl Config

Source

pub fn with_textual_projection_file(self, file: &str) -> Self

Source

pub fn with_textual_projection_external_data_file(self, x: bool) -> Self

Source

pub fn with_textual_projection_dtype(self, dtype: DType) -> Self

Source

pub fn with_textual_projection_device(self, device: Device) -> Self

Source

pub fn with_textual_projection_num_dry_run(self, x: usize) -> Self

Source

pub fn with_textual_projection_ixx( self, i: usize, ii: usize, x: MinOptMax, ) -> Self

Source

pub fn with_textual_projection_graph_opt_level(self, x: u8) -> Self

Source

pub fn with_textual_projection_num_intra_threads(self, x: usize) -> Self

Source

pub fn with_textual_projection_num_inter_threads(self, x: usize) -> Self

Source

pub fn with_textual_projection_cpu_arena_allocator(self, x: bool) -> Self

Source

pub fn with_textual_projection_openvino_dynamic_shapes(self, x: bool) -> Self

Source

pub fn with_textual_projection_openvino_opencl_throttling(self, x: bool) -> Self

Source

pub fn with_textual_projection_openvino_qdq_optimizer(self, x: bool) -> Self

Source

pub fn with_textual_projection_openvino_num_threads(self, x: usize) -> Self

Source

pub fn with_textual_projection_onednn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_textual_projection_tensorrt_fp16(self, x: bool) -> Self

Source

pub fn with_textual_projection_tensorrt_engine_cache(self, x: bool) -> Self

Source

pub fn with_textual_projection_tensorrt_timing_cache(self, x: bool) -> Self

Source

pub fn with_textual_projection_coreml_static_input_shapes(self, x: bool) -> Self

Source

pub fn with_textual_projection_coreml_subgraph_running(self, x: bool) -> Self

Source

pub fn with_textual_projection_cann_graph_inference(self, x: bool) -> Self

Source

pub fn with_textual_projection_cann_dump_graphs(self, x: bool) -> Self

Source

pub fn with_textual_projection_cann_dump_om_model(self, x: bool) -> Self

Source

pub fn with_textual_projection_nnapi_cpu_only(self, x: bool) -> Self

Source

pub fn with_textual_projection_nnapi_disable_cpu(self, x: bool) -> Self

Source

pub fn with_textual_projection_nnapi_fp16(self, x: bool) -> Self

Source

pub fn with_textual_projection_nnapi_nchw(self, x: bool) -> Self

Source

pub fn with_textual_projection_armnn_arena_allocator(self, x: bool) -> Self

Source

pub fn with_textual_projection_migraphx_fp16(self, x: bool) -> Self

Source

pub fn with_textual_projection_migraphx_exhaustive_tune(self, x: bool) -> Self

Source§

impl Config

Source

pub fn with_image_width(self, image_width: u32) -> Self

Source

pub fn with_image_height(self, image_height: u32) -> Self

Source

pub fn with_do_resize(self, do_resize: bool) -> Self

Source

pub fn with_resize_mode(self, resize_mode: ResizeMode) -> Self

Source

pub fn with_resize_filter(self, resize_filter: &'static str) -> Self

Source

pub fn with_padding_value(self, padding_value: u8) -> Self

Source

pub fn with_normalize(self, normalize: bool) -> Self

Source

pub fn with_image_std(self, image_std: &[f32]) -> Self

Source

pub fn with_image_mean(self, image_mean: &[f32]) -> Self

Source

pub fn with_nchw(self, nchw: bool) -> Self

Source

pub fn with_unsigned(self, unsigned: bool) -> Self

Source

pub fn with_pad_image(self, pad_image: bool) -> Self

Source

pub fn with_pad_size(self, pad_size: usize) -> Self

Source

pub fn with_up_scale(self, up_scale: f32) -> Self

Source

pub fn with_image_tensor_layout( self, image_tensor_layout: ImageTensorLayout, ) -> Self

Source

pub fn with_model_max_length(self, model_max_length: u64) -> Self

Source

pub fn with_tokenizer_file(self, tokenizer_file: &str) -> Self

Source

pub fn with_config_file(self, config_file: &str) -> Self

Source

pub fn with_special_tokens_map_file(self, special_tokens_map_file: &str) -> Self

Source

pub fn with_tokenizer_config_file(self, tokenizer_config_file: &str) -> Self

Source

pub fn with_generation_config_file(self, generation_config_file: &str) -> Self

Source

pub fn with_vocab_file(self, vocab_file: &str) -> Self

Source

pub fn with_vocab_txt(self, vocab_txt: &str) -> Self

Source

pub fn with_temperature(self, temperature: f32) -> Self

Source

pub fn with_topp(self, topp: f32) -> Self

Source§

impl Config

Source

pub fn yolo() -> Self

Creates a base YOLO configuration with common settings.

Sets up default input dimensions (640x640) and image processing parameters.

Source

pub fn yolo_classify() -> Self

Creates a configuration for YOLO image classification.

Configures the model for ImageNet classification with:

  • 224x224 input size
  • Exact resize mode with bilinear interpolation
  • ImageNet 1000 class names
Source

pub fn yolo_detect() -> Self

Creates a configuration for YOLO object detection.

Configures the model for COCO dataset object detection with 80 classes.

Source

pub fn yolo_pose() -> Self

Creates a configuration for YOLO pose estimation.

Configures the model for human keypoint detection with 17 COCO keypoints.

Source

pub fn yolo_segment() -> Self

Creates a configuration for YOLO instance segmentation.

Configures the model for COCO dataset instance segmentation with 80 classes.

Source

pub fn yolo_obb() -> Self

Creates a configuration for YOLO oriented object detection.

Configures the model for detecting rotated objects with:

  • 1024x1024 input size
  • DOTA v1 dataset classes
Source

pub fn doclayout_yolo_docstructbench() -> Self

Creates a configuration for document layout analysis using YOLOv10.

Configures the model for detecting document structure elements with:

  • Variable input size up to 1024x1024
  • 10 document layout classes
Source

pub fn fastsam_s() -> Self

Source

pub fn fastsam_x() -> Self

Source

pub fn ultralytics_rtdetr_l() -> Self

Source

pub fn ultralytics_rtdetr_x() -> Self

Trait Implementations§

Source§

impl Clone for Config

Source§

fn clone(&self) -> Config

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Config

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Config

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl TryFrom<Config> for YOLO

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(config: Config) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<R, P> ReadPrimitive<R> for P
where R: Read + ReadEndian<P>, P: Default,

Source§

fn read_from_little_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
Source§

fn read_from_big_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
Source§

fn read_from_native_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V