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
impl Config
Sourcepub fn with_version(self, x: Version) -> Self
pub fn with_version(self, x: Version) -> Self
Sets the optional version field.
§Arguments
x- The value that will be automatically wrapped inSome
§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
Sourcepub fn with_task(self, x: Task) -> Self
pub fn with_task(self, x: Task) -> Self
Sets the optional task field.
§Arguments
x- The value that will be automatically wrapped inSome
§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
Sourcepub fn with_scale(self, x: Scale) -> Self
pub fn with_scale(self, x: Scale) -> Self
Sets the optional scale field.
§Arguments
x- The value that will be automatically wrapped inSome
§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
Sourcepub fn with_model(self, x: ORTConfig) -> Self
pub fn with_model(self, x: ORTConfig) -> Self
Sourcepub fn with_visual(self, x: ORTConfig) -> Self
pub fn with_visual(self, x: ORTConfig) -> Self
Sourcepub fn with_textual(self, x: ORTConfig) -> Self
pub fn with_textual(self, x: ORTConfig) -> Self
Sourcepub fn with_encoder(self, x: ORTConfig) -> Self
pub fn with_encoder(self, x: ORTConfig) -> Self
Sourcepub fn with_decoder(self, x: ORTConfig) -> Self
pub fn with_decoder(self, x: ORTConfig) -> Self
Sourcepub fn with_visual_encoder(self, x: ORTConfig) -> Self
pub fn with_visual_encoder(self, x: ORTConfig) -> Self
Sourcepub fn visual_encoder(&self) -> &ORTConfig
pub fn visual_encoder(&self) -> &ORTConfig
Sourcepub fn with_textual_encoder(self, x: ORTConfig) -> Self
pub fn with_textual_encoder(self, x: ORTConfig) -> Self
Sourcepub fn textual_encoder(&self) -> &ORTConfig
pub fn textual_encoder(&self) -> &ORTConfig
Sourcepub fn with_visual_decoder(self, x: ORTConfig) -> Self
pub fn with_visual_decoder(self, x: ORTConfig) -> Self
Sourcepub fn visual_decoder(&self) -> &ORTConfig
pub fn visual_decoder(&self) -> &ORTConfig
Sourcepub fn with_textual_decoder(self, x: ORTConfig) -> Self
pub fn with_textual_decoder(self, x: ORTConfig) -> Self
Sourcepub fn textual_decoder(&self) -> &ORTConfig
pub fn textual_decoder(&self) -> &ORTConfig
Sourcepub fn with_textual_decoder_merged(self, x: ORTConfig) -> Self
pub fn with_textual_decoder_merged(self, x: ORTConfig) -> Self
Sourcepub fn textual_decoder_merged(&self) -> &ORTConfig
pub fn textual_decoder_merged(&self) -> &ORTConfig
Sourcepub fn with_size_encoder(self, x: ORTConfig) -> Self
pub fn with_size_encoder(self, x: ORTConfig) -> Self
Sourcepub fn size_encoder(&self) -> &ORTConfig
pub fn size_encoder(&self) -> &ORTConfig
Sourcepub fn with_size_decoder(self, x: ORTConfig) -> Self
pub fn with_size_decoder(self, x: ORTConfig) -> Self
Sourcepub fn size_decoder(&self) -> &ORTConfig
pub fn size_decoder(&self) -> &ORTConfig
Sourcepub fn with_coord_encoder(self, x: ORTConfig) -> Self
pub fn with_coord_encoder(self, x: ORTConfig) -> Self
Sourcepub fn coord_encoder(&self) -> &ORTConfig
pub fn coord_encoder(&self) -> &ORTConfig
Sourcepub fn with_coord_decoder(self, x: ORTConfig) -> Self
pub fn with_coord_decoder(self, x: ORTConfig) -> Self
Sourcepub fn coord_decoder(&self) -> &ORTConfig
pub fn coord_decoder(&self) -> &ORTConfig
Sourcepub fn with_visual_projection(self, x: ORTConfig) -> Self
pub fn with_visual_projection(self, x: ORTConfig) -> Self
Sourcepub fn visual_projection(&self) -> &ORTConfig
pub fn visual_projection(&self) -> &ORTConfig
Sourcepub fn with_textual_projection(self, x: ORTConfig) -> Self
pub fn with_textual_projection(self, x: ORTConfig) -> Self
Sourcepub fn textual_projection(&self) -> &ORTConfig
pub fn textual_projection(&self) -> &ORTConfig
Sourcepub fn with_processor(self, x: ProcessorConfig) -> Self
pub fn with_processor(self, x: ProcessorConfig) -> Self
Sourcepub fn processor(&self) -> &ProcessorConfig
pub fn processor(&self) -> &ProcessorConfig
Sourcepub fn with_class_names(self, x: &[&str]) -> Self
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 toVec<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
Sourcepub fn with_class_names_owned(self, x: &[String]) -> Self
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 ofStringto 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
Sourcepub fn class_names(&self) -> &[String]
pub fn class_names(&self) -> &[String]
Sourcepub fn with_class_names2(self, x: &[&str]) -> Self
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 toVec<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
Sourcepub fn with_class_names2_owned(self, x: &[String]) -> Self
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 ofStringto 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
Sourcepub fn class_names2(&self) -> &[String]
pub fn class_names2(&self) -> &[String]
Sourcepub fn with_keypoint_names(self, x: &[&str]) -> Self
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 toVec<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
Sourcepub fn with_keypoint_names_owned(self, x: &[String]) -> Self
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 ofStringto 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
Sourcepub fn keypoint_names(&self) -> &[String]
pub fn keypoint_names(&self) -> &[String]
Sourcepub fn with_text_names(self, x: &[&str]) -> Self
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 toVec<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
Sourcepub fn with_text_names_owned(self, x: &[String]) -> Self
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 ofStringto 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
Sourcepub fn text_names(&self) -> &[String]
pub fn text_names(&self) -> &[String]
Sourcepub fn with_class_confs(self, x: &[f32]) -> Self
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
Sourcepub fn class_confs(&self) -> &[f32]
pub fn class_confs(&self) -> &[f32]
Sourcepub fn with_keypoint_confs(self, x: &[f32]) -> Self
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
Sourcepub fn keypoint_confs(&self) -> &[f32]
pub fn keypoint_confs(&self) -> &[f32]
Sourcepub fn with_text_confs(self, x: &[f32]) -> Self
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
Sourcepub fn text_confs(&self) -> &[f32]
pub fn text_confs(&self) -> &[f32]
Sourcepub fn with_apply_softmax(self, x: bool) -> Self
pub fn with_apply_softmax(self, x: bool) -> Self
Sets the optional apply_softmax field.
§Arguments
x- The value that will be automatically wrapped inSome
§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
Sourcepub fn apply_softmax(&self) -> Option<bool>
pub fn apply_softmax(&self) -> Option<bool>
Sourcepub fn with_topk(self, x: usize) -> Self
pub fn with_topk(self, x: usize) -> Self
Sets the optional topk field.
§Arguments
x- The value that will be automatically wrapped inSome
§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
Sourcepub fn with_nc(self, x: usize) -> Self
pub fn with_nc(self, x: usize) -> Self
Sets the optional num_classes field.
§Arguments
x- The value that will be automatically wrapped inSome
§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
Sourcepub fn with_nk(self, x: usize) -> Self
pub fn with_nk(self, x: usize) -> Self
Sets the optional num_keypoints field.
§Arguments
x- The value that will be automatically wrapped inSome
§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
Sourcepub fn with_nm(self, x: usize) -> Self
pub fn with_nm(self, x: usize) -> Self
Sets the optional num_masks field.
§Arguments
x- The value that will be automatically wrapped inSome
§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
Sourcepub fn with_iou(self, x: f32) -> Self
pub fn with_iou(self, x: f32) -> Self
Sets the optional iou field.
§Arguments
x- The value that will be automatically wrapped inSome
§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
Sourcepub fn with_apply_nms(self, x: bool) -> Self
pub fn with_apply_nms(self, x: bool) -> Self
Sets the optional apply_nms field.
§Arguments
x- The value that will be automatically wrapped inSome
§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
Sourcepub fn with_find_contours(self, x: bool) -> Self
pub fn with_find_contours(self, x: bool) -> Self
Sourcepub fn find_contours(&self) -> bool
pub fn find_contours(&self) -> bool
Sourcepub fn with_yolo_preds_format(self, x: YOLOPredsFormat) -> Self
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 inSome
§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
Sourcepub fn yolo_preds_format(&self) -> Option<&YOLOPredsFormat>
pub fn yolo_preds_format(&self) -> Option<&YOLOPredsFormat>
Sourcepub fn with_classes_excluded(self, x: &[usize]) -> Self
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
Sourcepub fn classes_excluded(&self) -> &[usize]
pub fn classes_excluded(&self) -> &[usize]
Sourcepub fn with_classes_retained(self, x: &[usize]) -> Self
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
Sourcepub fn classes_retained(&self) -> &[usize]
pub fn classes_retained(&self) -> &[usize]
Sourcepub fn with_min_width(self, x: f32) -> Self
pub fn with_min_width(self, x: f32) -> Self
Sets the optional min_width field.
§Arguments
x- The value that will be automatically wrapped inSome
§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
Sourcepub fn with_min_height(self, x: f32) -> Self
pub fn with_min_height(self, x: f32) -> Self
Sets the optional min_height field.
§Arguments
x- The value that will be automatically wrapped inSome
§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
Sourcepub fn min_height(&self) -> Option<f32>
pub fn min_height(&self) -> Option<f32>
Sourcepub fn with_db_unclip_ratio(self, x: f32) -> Self
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 inSome
§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
Sourcepub fn db_unclip_ratio(&self) -> Option<f32>
pub fn db_unclip_ratio(&self) -> Option<f32>
Sourcepub fn with_db_binary_thresh(self, x: f32) -> Self
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 inSome
§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
Sourcepub fn db_binary_thresh(&self) -> Option<f32>
pub fn db_binary_thresh(&self) -> Option<f32>
Sourcepub fn with_max_tokens(self, x: usize) -> Self
pub fn with_max_tokens(self, x: usize) -> Self
Sets the optional max_tokens field.
§Arguments
x- The value that will be automatically wrapped inSome
§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§impl Config
impl Config
pub fn exclude_classes(self, xs: &[usize]) -> Self
pub fn retain_classes(self, xs: &[usize]) -> Self
pub fn commit(self) -> Result<Self>
pub fn with_num_dry_run_all(self, x: usize) -> Self
pub fn with_batch_size_all_min_opt_max( self, min: usize, opt: usize, max: usize, ) -> Self
pub fn with_batch_size_all(self, batch_size: usize) -> Self
pub fn with_device_all(self, device: Device) -> Self
pub fn with_dtype_all(self, dtype: DType) -> Self
pub fn with_graph_opt_level_all(self, level: u8) -> Self
pub fn with_num_intra_threads_all(self, num_threads: usize) -> Self
pub fn with_num_inter_threads_all(self, num_threads: usize) -> Self
pub fn with_cpu_arena_allocator_all(self, x: bool) -> Self
pub fn with_openvino_dynamic_shapes_all(self, x: bool) -> Self
pub fn with_openvino_opencl_throttling_all(self, x: bool) -> Self
pub fn with_openvino_qdq_optimizer_all(self, x: bool) -> Self
pub fn with_openvino_num_threads_all(self, num_threads: usize) -> Self
pub fn with_onednn_arena_allocator_all(self, x: bool) -> Self
pub fn with_tensorrt_fp16_all(self, x: bool) -> Self
pub fn with_tensorrt_engine_cache_all(self, x: bool) -> Self
pub fn with_tensorrt_timing_cache_all(self, x: bool) -> Self
pub fn with_coreml_static_input_shapes_all(self, x: bool) -> Self
pub fn with_coreml_subgraph_running_all(self, x: bool) -> Self
pub fn with_cann_graph_inference_all(self, x: bool) -> Self
pub fn with_cann_dump_graphs_all(self, x: bool) -> Self
pub fn with_cann_dump_om_model_all(self, x: bool) -> Self
pub fn with_nnapi_cpu_only_all(self, x: bool) -> Self
pub fn with_nnapi_disable_cpu_all(self, x: bool) -> Self
pub fn with_nnapi_fp16_all(self, x: bool) -> Self
pub fn with_nnapi_nchw_all(self, x: bool) -> Self
pub fn with_armnn_arena_allocator_all(self, x: bool) -> Self
pub fn with_migraphx_fp16_all(self, x: bool) -> Self
pub fn with_migraphx_exhaustive_tune_all(self, x: bool) -> Self
Source§impl Config
impl Config
pub fn with_model_file(self, file: &str) -> Self
pub fn with_model_external_data_file(self, x: bool) -> Self
pub fn with_model_dtype(self, dtype: DType) -> Self
pub fn with_model_device(self, device: Device) -> Self
pub fn with_model_num_dry_run(self, x: usize) -> Self
pub fn with_model_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self
pub fn with_model_graph_opt_level(self, x: u8) -> Self
pub fn with_model_num_intra_threads(self, x: usize) -> Self
pub fn with_model_num_inter_threads(self, x: usize) -> Self
pub fn with_model_cpu_arena_allocator(self, x: bool) -> Self
pub fn with_model_openvino_dynamic_shapes(self, x: bool) -> Self
pub fn with_model_openvino_opencl_throttling(self, x: bool) -> Self
pub fn with_model_openvino_qdq_optimizer(self, x: bool) -> Self
pub fn with_model_openvino_num_threads(self, x: usize) -> Self
pub fn with_model_onednn_arena_allocator(self, x: bool) -> Self
pub fn with_model_tensorrt_fp16(self, x: bool) -> Self
pub fn with_model_tensorrt_engine_cache(self, x: bool) -> Self
pub fn with_model_tensorrt_timing_cache(self, x: bool) -> Self
pub fn with_model_coreml_static_input_shapes(self, x: bool) -> Self
pub fn with_model_coreml_subgraph_running(self, x: bool) -> Self
pub fn with_model_cann_graph_inference(self, x: bool) -> Self
pub fn with_model_cann_dump_graphs(self, x: bool) -> Self
pub fn with_model_cann_dump_om_model(self, x: bool) -> Self
pub fn with_model_nnapi_cpu_only(self, x: bool) -> Self
pub fn with_model_nnapi_disable_cpu(self, x: bool) -> Self
pub fn with_model_nnapi_fp16(self, x: bool) -> Self
pub fn with_model_nnapi_nchw(self, x: bool) -> Self
pub fn with_model_armnn_arena_allocator(self, x: bool) -> Self
pub fn with_model_migraphx_fp16(self, x: bool) -> Self
pub fn with_model_migraphx_exhaustive_tune(self, x: bool) -> Self
Source§impl Config
impl Config
pub fn with_visual_file(self, file: &str) -> Self
pub fn with_visual_external_data_file(self, x: bool) -> Self
pub fn with_visual_dtype(self, dtype: DType) -> Self
pub fn with_visual_device(self, device: Device) -> Self
pub fn with_visual_num_dry_run(self, x: usize) -> Self
pub fn with_visual_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self
pub fn with_visual_graph_opt_level(self, x: u8) -> Self
pub fn with_visual_num_intra_threads(self, x: usize) -> Self
pub fn with_visual_num_inter_threads(self, x: usize) -> Self
pub fn with_visual_cpu_arena_allocator(self, x: bool) -> Self
pub fn with_visual_openvino_dynamic_shapes(self, x: bool) -> Self
pub fn with_visual_openvino_opencl_throttling(self, x: bool) -> Self
pub fn with_visual_openvino_qdq_optimizer(self, x: bool) -> Self
pub fn with_visual_openvino_num_threads(self, x: usize) -> Self
pub fn with_visual_onednn_arena_allocator(self, x: bool) -> Self
pub fn with_visual_tensorrt_fp16(self, x: bool) -> Self
pub fn with_visual_tensorrt_engine_cache(self, x: bool) -> Self
pub fn with_visual_tensorrt_timing_cache(self, x: bool) -> Self
pub fn with_visual_coreml_static_input_shapes(self, x: bool) -> Self
pub fn with_visual_coreml_subgraph_running(self, x: bool) -> Self
pub fn with_visual_cann_graph_inference(self, x: bool) -> Self
pub fn with_visual_cann_dump_graphs(self, x: bool) -> Self
pub fn with_visual_cann_dump_om_model(self, x: bool) -> Self
pub fn with_visual_nnapi_cpu_only(self, x: bool) -> Self
pub fn with_visual_nnapi_disable_cpu(self, x: bool) -> Self
pub fn with_visual_nnapi_fp16(self, x: bool) -> Self
pub fn with_visual_nnapi_nchw(self, x: bool) -> Self
pub fn with_visual_armnn_arena_allocator(self, x: bool) -> Self
pub fn with_visual_migraphx_fp16(self, x: bool) -> Self
pub fn with_visual_migraphx_exhaustive_tune(self, x: bool) -> Self
Source§impl Config
impl Config
pub fn with_textual_file(self, file: &str) -> Self
pub fn with_textual_external_data_file(self, x: bool) -> Self
pub fn with_textual_dtype(self, dtype: DType) -> Self
pub fn with_textual_device(self, device: Device) -> Self
pub fn with_textual_num_dry_run(self, x: usize) -> Self
pub fn with_textual_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self
pub fn with_textual_graph_opt_level(self, x: u8) -> Self
pub fn with_textual_num_intra_threads(self, x: usize) -> Self
pub fn with_textual_num_inter_threads(self, x: usize) -> Self
pub fn with_textual_cpu_arena_allocator(self, x: bool) -> Self
pub fn with_textual_openvino_dynamic_shapes(self, x: bool) -> Self
pub fn with_textual_openvino_opencl_throttling(self, x: bool) -> Self
pub fn with_textual_openvino_qdq_optimizer(self, x: bool) -> Self
pub fn with_textual_openvino_num_threads(self, x: usize) -> Self
pub fn with_textual_onednn_arena_allocator(self, x: bool) -> Self
pub fn with_textual_tensorrt_fp16(self, x: bool) -> Self
pub fn with_textual_tensorrt_engine_cache(self, x: bool) -> Self
pub fn with_textual_tensorrt_timing_cache(self, x: bool) -> Self
pub fn with_textual_coreml_static_input_shapes(self, x: bool) -> Self
pub fn with_textual_coreml_subgraph_running(self, x: bool) -> Self
pub fn with_textual_cann_graph_inference(self, x: bool) -> Self
pub fn with_textual_cann_dump_graphs(self, x: bool) -> Self
pub fn with_textual_cann_dump_om_model(self, x: bool) -> Self
pub fn with_textual_nnapi_cpu_only(self, x: bool) -> Self
pub fn with_textual_nnapi_disable_cpu(self, x: bool) -> Self
pub fn with_textual_nnapi_fp16(self, x: bool) -> Self
pub fn with_textual_nnapi_nchw(self, x: bool) -> Self
pub fn with_textual_armnn_arena_allocator(self, x: bool) -> Self
pub fn with_textual_migraphx_fp16(self, x: bool) -> Self
pub fn with_textual_migraphx_exhaustive_tune(self, x: bool) -> Self
Source§impl Config
impl Config
pub fn with_encoder_file(self, file: &str) -> Self
pub fn with_encoder_external_data_file(self, x: bool) -> Self
pub fn with_encoder_dtype(self, dtype: DType) -> Self
pub fn with_encoder_device(self, device: Device) -> Self
pub fn with_encoder_num_dry_run(self, x: usize) -> Self
pub fn with_encoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self
pub fn with_encoder_graph_opt_level(self, x: u8) -> Self
pub fn with_encoder_num_intra_threads(self, x: usize) -> Self
pub fn with_encoder_num_inter_threads(self, x: usize) -> Self
pub fn with_encoder_cpu_arena_allocator(self, x: bool) -> Self
pub fn with_encoder_openvino_dynamic_shapes(self, x: bool) -> Self
pub fn with_encoder_openvino_opencl_throttling(self, x: bool) -> Self
pub fn with_encoder_openvino_qdq_optimizer(self, x: bool) -> Self
pub fn with_encoder_openvino_num_threads(self, x: usize) -> Self
pub fn with_encoder_onednn_arena_allocator(self, x: bool) -> Self
pub fn with_encoder_tensorrt_fp16(self, x: bool) -> Self
pub fn with_encoder_tensorrt_engine_cache(self, x: bool) -> Self
pub fn with_encoder_tensorrt_timing_cache(self, x: bool) -> Self
pub fn with_encoder_coreml_static_input_shapes(self, x: bool) -> Self
pub fn with_encoder_coreml_subgraph_running(self, x: bool) -> Self
pub fn with_encoder_cann_graph_inference(self, x: bool) -> Self
pub fn with_encoder_cann_dump_graphs(self, x: bool) -> Self
pub fn with_encoder_cann_dump_om_model(self, x: bool) -> Self
pub fn with_encoder_nnapi_cpu_only(self, x: bool) -> Self
pub fn with_encoder_nnapi_disable_cpu(self, x: bool) -> Self
pub fn with_encoder_nnapi_fp16(self, x: bool) -> Self
pub fn with_encoder_nnapi_nchw(self, x: bool) -> Self
pub fn with_encoder_armnn_arena_allocator(self, x: bool) -> Self
pub fn with_encoder_migraphx_fp16(self, x: bool) -> Self
pub fn with_encoder_migraphx_exhaustive_tune(self, x: bool) -> Self
Source§impl Config
impl Config
pub fn with_decoder_file(self, file: &str) -> Self
pub fn with_decoder_external_data_file(self, x: bool) -> Self
pub fn with_decoder_dtype(self, dtype: DType) -> Self
pub fn with_decoder_device(self, device: Device) -> Self
pub fn with_decoder_num_dry_run(self, x: usize) -> Self
pub fn with_decoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self
pub fn with_decoder_graph_opt_level(self, x: u8) -> Self
pub fn with_decoder_num_intra_threads(self, x: usize) -> Self
pub fn with_decoder_num_inter_threads(self, x: usize) -> Self
pub fn with_decoder_cpu_arena_allocator(self, x: bool) -> Self
pub fn with_decoder_openvino_dynamic_shapes(self, x: bool) -> Self
pub fn with_decoder_openvino_opencl_throttling(self, x: bool) -> Self
pub fn with_decoder_openvino_qdq_optimizer(self, x: bool) -> Self
pub fn with_decoder_openvino_num_threads(self, x: usize) -> Self
pub fn with_decoder_onednn_arena_allocator(self, x: bool) -> Self
pub fn with_decoder_tensorrt_fp16(self, x: bool) -> Self
pub fn with_decoder_tensorrt_engine_cache(self, x: bool) -> Self
pub fn with_decoder_tensorrt_timing_cache(self, x: bool) -> Self
pub fn with_decoder_coreml_static_input_shapes(self, x: bool) -> Self
pub fn with_decoder_coreml_subgraph_running(self, x: bool) -> Self
pub fn with_decoder_cann_graph_inference(self, x: bool) -> Self
pub fn with_decoder_cann_dump_graphs(self, x: bool) -> Self
pub fn with_decoder_cann_dump_om_model(self, x: bool) -> Self
pub fn with_decoder_nnapi_cpu_only(self, x: bool) -> Self
pub fn with_decoder_nnapi_disable_cpu(self, x: bool) -> Self
pub fn with_decoder_nnapi_fp16(self, x: bool) -> Self
pub fn with_decoder_nnapi_nchw(self, x: bool) -> Self
pub fn with_decoder_armnn_arena_allocator(self, x: bool) -> Self
pub fn with_decoder_migraphx_fp16(self, x: bool) -> Self
pub fn with_decoder_migraphx_exhaustive_tune(self, x: bool) -> Self
Source§impl Config
impl Config
pub fn with_visual_encoder_file(self, file: &str) -> Self
pub fn with_visual_encoder_external_data_file(self, x: bool) -> Self
pub fn with_visual_encoder_dtype(self, dtype: DType) -> Self
pub fn with_visual_encoder_device(self, device: Device) -> Self
pub fn with_visual_encoder_num_dry_run(self, x: usize) -> Self
pub fn with_visual_encoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self
pub fn with_visual_encoder_graph_opt_level(self, x: u8) -> Self
pub fn with_visual_encoder_num_intra_threads(self, x: usize) -> Self
pub fn with_visual_encoder_num_inter_threads(self, x: usize) -> Self
pub fn with_visual_encoder_cpu_arena_allocator(self, x: bool) -> Self
pub fn with_visual_encoder_openvino_dynamic_shapes(self, x: bool) -> Self
pub fn with_visual_encoder_openvino_opencl_throttling(self, x: bool) -> Self
pub fn with_visual_encoder_openvino_qdq_optimizer(self, x: bool) -> Self
pub fn with_visual_encoder_openvino_num_threads(self, x: usize) -> Self
pub fn with_visual_encoder_onednn_arena_allocator(self, x: bool) -> Self
pub fn with_visual_encoder_tensorrt_fp16(self, x: bool) -> Self
pub fn with_visual_encoder_tensorrt_engine_cache(self, x: bool) -> Self
pub fn with_visual_encoder_tensorrt_timing_cache(self, x: bool) -> Self
pub fn with_visual_encoder_coreml_static_input_shapes(self, x: bool) -> Self
pub fn with_visual_encoder_coreml_subgraph_running(self, x: bool) -> Self
pub fn with_visual_encoder_cann_graph_inference(self, x: bool) -> Self
pub fn with_visual_encoder_cann_dump_graphs(self, x: bool) -> Self
pub fn with_visual_encoder_cann_dump_om_model(self, x: bool) -> Self
pub fn with_visual_encoder_nnapi_cpu_only(self, x: bool) -> Self
pub fn with_visual_encoder_nnapi_disable_cpu(self, x: bool) -> Self
pub fn with_visual_encoder_nnapi_fp16(self, x: bool) -> Self
pub fn with_visual_encoder_nnapi_nchw(self, x: bool) -> Self
pub fn with_visual_encoder_armnn_arena_allocator(self, x: bool) -> Self
pub fn with_visual_encoder_migraphx_fp16(self, x: bool) -> Self
pub fn with_visual_encoder_migraphx_exhaustive_tune(self, x: bool) -> Self
Source§impl Config
impl Config
pub fn with_textual_encoder_file(self, file: &str) -> Self
pub fn with_textual_encoder_external_data_file(self, x: bool) -> Self
pub fn with_textual_encoder_dtype(self, dtype: DType) -> Self
pub fn with_textual_encoder_device(self, device: Device) -> Self
pub fn with_textual_encoder_num_dry_run(self, x: usize) -> Self
pub fn with_textual_encoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self
pub fn with_textual_encoder_graph_opt_level(self, x: u8) -> Self
pub fn with_textual_encoder_num_intra_threads(self, x: usize) -> Self
pub fn with_textual_encoder_num_inter_threads(self, x: usize) -> Self
pub fn with_textual_encoder_cpu_arena_allocator(self, x: bool) -> Self
pub fn with_textual_encoder_openvino_dynamic_shapes(self, x: bool) -> Self
pub fn with_textual_encoder_openvino_opencl_throttling(self, x: bool) -> Self
pub fn with_textual_encoder_openvino_qdq_optimizer(self, x: bool) -> Self
pub fn with_textual_encoder_openvino_num_threads(self, x: usize) -> Self
pub fn with_textual_encoder_onednn_arena_allocator(self, x: bool) -> Self
pub fn with_textual_encoder_tensorrt_fp16(self, x: bool) -> Self
pub fn with_textual_encoder_tensorrt_engine_cache(self, x: bool) -> Self
pub fn with_textual_encoder_tensorrt_timing_cache(self, x: bool) -> Self
pub fn with_textual_encoder_coreml_static_input_shapes(self, x: bool) -> Self
pub fn with_textual_encoder_coreml_subgraph_running(self, x: bool) -> Self
pub fn with_textual_encoder_cann_graph_inference(self, x: bool) -> Self
pub fn with_textual_encoder_cann_dump_graphs(self, x: bool) -> Self
pub fn with_textual_encoder_cann_dump_om_model(self, x: bool) -> Self
pub fn with_textual_encoder_nnapi_cpu_only(self, x: bool) -> Self
pub fn with_textual_encoder_nnapi_disable_cpu(self, x: bool) -> Self
pub fn with_textual_encoder_nnapi_fp16(self, x: bool) -> Self
pub fn with_textual_encoder_nnapi_nchw(self, x: bool) -> Self
pub fn with_textual_encoder_armnn_arena_allocator(self, x: bool) -> Self
pub fn with_textual_encoder_migraphx_fp16(self, x: bool) -> Self
pub fn with_textual_encoder_migraphx_exhaustive_tune(self, x: bool) -> Self
Source§impl Config
impl Config
pub fn with_visual_decoder_file(self, file: &str) -> Self
pub fn with_visual_decoder_external_data_file(self, x: bool) -> Self
pub fn with_visual_decoder_dtype(self, dtype: DType) -> Self
pub fn with_visual_decoder_device(self, device: Device) -> Self
pub fn with_visual_decoder_num_dry_run(self, x: usize) -> Self
pub fn with_visual_decoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self
pub fn with_visual_decoder_graph_opt_level(self, x: u8) -> Self
pub fn with_visual_decoder_num_intra_threads(self, x: usize) -> Self
pub fn with_visual_decoder_num_inter_threads(self, x: usize) -> Self
pub fn with_visual_decoder_cpu_arena_allocator(self, x: bool) -> Self
pub fn with_visual_decoder_openvino_dynamic_shapes(self, x: bool) -> Self
pub fn with_visual_decoder_openvino_opencl_throttling(self, x: bool) -> Self
pub fn with_visual_decoder_openvino_qdq_optimizer(self, x: bool) -> Self
pub fn with_visual_decoder_openvino_num_threads(self, x: usize) -> Self
pub fn with_visual_decoder_onednn_arena_allocator(self, x: bool) -> Self
pub fn with_visual_decoder_tensorrt_fp16(self, x: bool) -> Self
pub fn with_visual_decoder_tensorrt_engine_cache(self, x: bool) -> Self
pub fn with_visual_decoder_tensorrt_timing_cache(self, x: bool) -> Self
pub fn with_visual_decoder_coreml_static_input_shapes(self, x: bool) -> Self
pub fn with_visual_decoder_coreml_subgraph_running(self, x: bool) -> Self
pub fn with_visual_decoder_cann_graph_inference(self, x: bool) -> Self
pub fn with_visual_decoder_cann_dump_graphs(self, x: bool) -> Self
pub fn with_visual_decoder_cann_dump_om_model(self, x: bool) -> Self
pub fn with_visual_decoder_nnapi_cpu_only(self, x: bool) -> Self
pub fn with_visual_decoder_nnapi_disable_cpu(self, x: bool) -> Self
pub fn with_visual_decoder_nnapi_fp16(self, x: bool) -> Self
pub fn with_visual_decoder_nnapi_nchw(self, x: bool) -> Self
pub fn with_visual_decoder_armnn_arena_allocator(self, x: bool) -> Self
pub fn with_visual_decoder_migraphx_fp16(self, x: bool) -> Self
pub fn with_visual_decoder_migraphx_exhaustive_tune(self, x: bool) -> Self
Source§impl Config
impl Config
pub fn with_textual_decoder_file(self, file: &str) -> Self
pub fn with_textual_decoder_external_data_file(self, x: bool) -> Self
pub fn with_textual_decoder_dtype(self, dtype: DType) -> Self
pub fn with_textual_decoder_device(self, device: Device) -> Self
pub fn with_textual_decoder_num_dry_run(self, x: usize) -> Self
pub fn with_textual_decoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self
pub fn with_textual_decoder_graph_opt_level(self, x: u8) -> Self
pub fn with_textual_decoder_num_intra_threads(self, x: usize) -> Self
pub fn with_textual_decoder_num_inter_threads(self, x: usize) -> Self
pub fn with_textual_decoder_cpu_arena_allocator(self, x: bool) -> Self
pub fn with_textual_decoder_openvino_dynamic_shapes(self, x: bool) -> Self
pub fn with_textual_decoder_openvino_opencl_throttling(self, x: bool) -> Self
pub fn with_textual_decoder_openvino_qdq_optimizer(self, x: bool) -> Self
pub fn with_textual_decoder_openvino_num_threads(self, x: usize) -> Self
pub fn with_textual_decoder_onednn_arena_allocator(self, x: bool) -> Self
pub fn with_textual_decoder_tensorrt_fp16(self, x: bool) -> Self
pub fn with_textual_decoder_tensorrt_engine_cache(self, x: bool) -> Self
pub fn with_textual_decoder_tensorrt_timing_cache(self, x: bool) -> Self
pub fn with_textual_decoder_coreml_static_input_shapes(self, x: bool) -> Self
pub fn with_textual_decoder_coreml_subgraph_running(self, x: bool) -> Self
pub fn with_textual_decoder_cann_graph_inference(self, x: bool) -> Self
pub fn with_textual_decoder_cann_dump_graphs(self, x: bool) -> Self
pub fn with_textual_decoder_cann_dump_om_model(self, x: bool) -> Self
pub fn with_textual_decoder_nnapi_cpu_only(self, x: bool) -> Self
pub fn with_textual_decoder_nnapi_disable_cpu(self, x: bool) -> Self
pub fn with_textual_decoder_nnapi_fp16(self, x: bool) -> Self
pub fn with_textual_decoder_nnapi_nchw(self, x: bool) -> Self
pub fn with_textual_decoder_armnn_arena_allocator(self, x: bool) -> Self
pub fn with_textual_decoder_migraphx_fp16(self, x: bool) -> Self
pub fn with_textual_decoder_migraphx_exhaustive_tune(self, x: bool) -> Self
Source§impl Config
impl Config
pub fn with_textual_decoder_merged_file(self, file: &str) -> Self
pub fn with_textual_decoder_merged_external_data_file(self, x: bool) -> Self
pub fn with_textual_decoder_merged_dtype(self, dtype: DType) -> Self
pub fn with_textual_decoder_merged_device(self, device: Device) -> Self
pub fn with_textual_decoder_merged_num_dry_run(self, x: usize) -> Self
pub fn with_textual_decoder_merged_ixx( self, i: usize, ii: usize, x: MinOptMax, ) -> Self
pub fn with_textual_decoder_merged_graph_opt_level(self, x: u8) -> Self
pub fn with_textual_decoder_merged_num_intra_threads(self, x: usize) -> Self
pub fn with_textual_decoder_merged_num_inter_threads(self, x: usize) -> Self
pub fn with_textual_decoder_merged_cpu_arena_allocator(self, x: bool) -> Self
pub fn with_textual_decoder_merged_openvino_dynamic_shapes( self, x: bool, ) -> Self
pub fn with_textual_decoder_merged_openvino_opencl_throttling( self, x: bool, ) -> Self
pub fn with_textual_decoder_merged_openvino_qdq_optimizer(self, x: bool) -> Self
pub fn with_textual_decoder_merged_openvino_num_threads(self, x: usize) -> Self
pub fn with_textual_decoder_merged_onednn_arena_allocator(self, x: bool) -> Self
pub fn with_textual_decoder_merged_tensorrt_fp16(self, x: bool) -> Self
pub fn with_textual_decoder_merged_tensorrt_engine_cache(self, x: bool) -> Self
pub fn with_textual_decoder_merged_tensorrt_timing_cache(self, x: bool) -> Self
pub fn with_textual_decoder_merged_coreml_static_input_shapes( self, x: bool, ) -> Self
pub fn with_textual_decoder_merged_coreml_subgraph_running( self, x: bool, ) -> Self
pub fn with_textual_decoder_merged_cann_graph_inference(self, x: bool) -> Self
pub fn with_textual_decoder_merged_cann_dump_graphs(self, x: bool) -> Self
pub fn with_textual_decoder_merged_cann_dump_om_model(self, x: bool) -> Self
pub fn with_textual_decoder_merged_nnapi_cpu_only(self, x: bool) -> Self
pub fn with_textual_decoder_merged_nnapi_disable_cpu(self, x: bool) -> Self
pub fn with_textual_decoder_merged_nnapi_fp16(self, x: bool) -> Self
pub fn with_textual_decoder_merged_nnapi_nchw(self, x: bool) -> Self
pub fn with_textual_decoder_merged_armnn_arena_allocator(self, x: bool) -> Self
pub fn with_textual_decoder_merged_migraphx_fp16(self, x: bool) -> Self
pub fn with_textual_decoder_merged_migraphx_exhaustive_tune( self, x: bool, ) -> Self
Source§impl Config
impl Config
pub fn with_size_encoder_file(self, file: &str) -> Self
pub fn with_size_encoder_external_data_file(self, x: bool) -> Self
pub fn with_size_encoder_dtype(self, dtype: DType) -> Self
pub fn with_size_encoder_device(self, device: Device) -> Self
pub fn with_size_encoder_num_dry_run(self, x: usize) -> Self
pub fn with_size_encoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self
pub fn with_size_encoder_graph_opt_level(self, x: u8) -> Self
pub fn with_size_encoder_num_intra_threads(self, x: usize) -> Self
pub fn with_size_encoder_num_inter_threads(self, x: usize) -> Self
pub fn with_size_encoder_cpu_arena_allocator(self, x: bool) -> Self
pub fn with_size_encoder_openvino_dynamic_shapes(self, x: bool) -> Self
pub fn with_size_encoder_openvino_opencl_throttling(self, x: bool) -> Self
pub fn with_size_encoder_openvino_qdq_optimizer(self, x: bool) -> Self
pub fn with_size_encoder_openvino_num_threads(self, x: usize) -> Self
pub fn with_size_encoder_onednn_arena_allocator(self, x: bool) -> Self
pub fn with_size_encoder_tensorrt_fp16(self, x: bool) -> Self
pub fn with_size_encoder_tensorrt_engine_cache(self, x: bool) -> Self
pub fn with_size_encoder_tensorrt_timing_cache(self, x: bool) -> Self
pub fn with_size_encoder_coreml_static_input_shapes(self, x: bool) -> Self
pub fn with_size_encoder_coreml_subgraph_running(self, x: bool) -> Self
pub fn with_size_encoder_cann_graph_inference(self, x: bool) -> Self
pub fn with_size_encoder_cann_dump_graphs(self, x: bool) -> Self
pub fn with_size_encoder_cann_dump_om_model(self, x: bool) -> Self
pub fn with_size_encoder_nnapi_cpu_only(self, x: bool) -> Self
pub fn with_size_encoder_nnapi_disable_cpu(self, x: bool) -> Self
pub fn with_size_encoder_nnapi_fp16(self, x: bool) -> Self
pub fn with_size_encoder_nnapi_nchw(self, x: bool) -> Self
pub fn with_size_encoder_armnn_arena_allocator(self, x: bool) -> Self
pub fn with_size_encoder_migraphx_fp16(self, x: bool) -> Self
pub fn with_size_encoder_migraphx_exhaustive_tune(self, x: bool) -> Self
Source§impl Config
impl Config
pub fn with_size_decoder_file(self, file: &str) -> Self
pub fn with_size_decoder_external_data_file(self, x: bool) -> Self
pub fn with_size_decoder_dtype(self, dtype: DType) -> Self
pub fn with_size_decoder_device(self, device: Device) -> Self
pub fn with_size_decoder_num_dry_run(self, x: usize) -> Self
pub fn with_size_decoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self
pub fn with_size_decoder_graph_opt_level(self, x: u8) -> Self
pub fn with_size_decoder_num_intra_threads(self, x: usize) -> Self
pub fn with_size_decoder_num_inter_threads(self, x: usize) -> Self
pub fn with_size_decoder_cpu_arena_allocator(self, x: bool) -> Self
pub fn with_size_decoder_openvino_dynamic_shapes(self, x: bool) -> Self
pub fn with_size_decoder_openvino_opencl_throttling(self, x: bool) -> Self
pub fn with_size_decoder_openvino_qdq_optimizer(self, x: bool) -> Self
pub fn with_size_decoder_openvino_num_threads(self, x: usize) -> Self
pub fn with_size_decoder_onednn_arena_allocator(self, x: bool) -> Self
pub fn with_size_decoder_tensorrt_fp16(self, x: bool) -> Self
pub fn with_size_decoder_tensorrt_engine_cache(self, x: bool) -> Self
pub fn with_size_decoder_tensorrt_timing_cache(self, x: bool) -> Self
pub fn with_size_decoder_coreml_static_input_shapes(self, x: bool) -> Self
pub fn with_size_decoder_coreml_subgraph_running(self, x: bool) -> Self
pub fn with_size_decoder_cann_graph_inference(self, x: bool) -> Self
pub fn with_size_decoder_cann_dump_graphs(self, x: bool) -> Self
pub fn with_size_decoder_cann_dump_om_model(self, x: bool) -> Self
pub fn with_size_decoder_nnapi_cpu_only(self, x: bool) -> Self
pub fn with_size_decoder_nnapi_disable_cpu(self, x: bool) -> Self
pub fn with_size_decoder_nnapi_fp16(self, x: bool) -> Self
pub fn with_size_decoder_nnapi_nchw(self, x: bool) -> Self
pub fn with_size_decoder_armnn_arena_allocator(self, x: bool) -> Self
pub fn with_size_decoder_migraphx_fp16(self, x: bool) -> Self
pub fn with_size_decoder_migraphx_exhaustive_tune(self, x: bool) -> Self
Source§impl Config
impl Config
pub fn with_coord_encoder_file(self, file: &str) -> Self
pub fn with_coord_encoder_external_data_file(self, x: bool) -> Self
pub fn with_coord_encoder_dtype(self, dtype: DType) -> Self
pub fn with_coord_encoder_device(self, device: Device) -> Self
pub fn with_coord_encoder_num_dry_run(self, x: usize) -> Self
pub fn with_coord_encoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self
pub fn with_coord_encoder_graph_opt_level(self, x: u8) -> Self
pub fn with_coord_encoder_num_intra_threads(self, x: usize) -> Self
pub fn with_coord_encoder_num_inter_threads(self, x: usize) -> Self
pub fn with_coord_encoder_cpu_arena_allocator(self, x: bool) -> Self
pub fn with_coord_encoder_openvino_dynamic_shapes(self, x: bool) -> Self
pub fn with_coord_encoder_openvino_opencl_throttling(self, x: bool) -> Self
pub fn with_coord_encoder_openvino_qdq_optimizer(self, x: bool) -> Self
pub fn with_coord_encoder_openvino_num_threads(self, x: usize) -> Self
pub fn with_coord_encoder_onednn_arena_allocator(self, x: bool) -> Self
pub fn with_coord_encoder_tensorrt_fp16(self, x: bool) -> Self
pub fn with_coord_encoder_tensorrt_engine_cache(self, x: bool) -> Self
pub fn with_coord_encoder_tensorrt_timing_cache(self, x: bool) -> Self
pub fn with_coord_encoder_coreml_static_input_shapes(self, x: bool) -> Self
pub fn with_coord_encoder_coreml_subgraph_running(self, x: bool) -> Self
pub fn with_coord_encoder_cann_graph_inference(self, x: bool) -> Self
pub fn with_coord_encoder_cann_dump_graphs(self, x: bool) -> Self
pub fn with_coord_encoder_cann_dump_om_model(self, x: bool) -> Self
pub fn with_coord_encoder_nnapi_cpu_only(self, x: bool) -> Self
pub fn with_coord_encoder_nnapi_disable_cpu(self, x: bool) -> Self
pub fn with_coord_encoder_nnapi_fp16(self, x: bool) -> Self
pub fn with_coord_encoder_nnapi_nchw(self, x: bool) -> Self
pub fn with_coord_encoder_armnn_arena_allocator(self, x: bool) -> Self
pub fn with_coord_encoder_migraphx_fp16(self, x: bool) -> Self
pub fn with_coord_encoder_migraphx_exhaustive_tune(self, x: bool) -> Self
Source§impl Config
impl Config
pub fn with_coord_decoder_file(self, file: &str) -> Self
pub fn with_coord_decoder_external_data_file(self, x: bool) -> Self
pub fn with_coord_decoder_dtype(self, dtype: DType) -> Self
pub fn with_coord_decoder_device(self, device: Device) -> Self
pub fn with_coord_decoder_num_dry_run(self, x: usize) -> Self
pub fn with_coord_decoder_ixx(self, i: usize, ii: usize, x: MinOptMax) -> Self
pub fn with_coord_decoder_graph_opt_level(self, x: u8) -> Self
pub fn with_coord_decoder_num_intra_threads(self, x: usize) -> Self
pub fn with_coord_decoder_num_inter_threads(self, x: usize) -> Self
pub fn with_coord_decoder_cpu_arena_allocator(self, x: bool) -> Self
pub fn with_coord_decoder_openvino_dynamic_shapes(self, x: bool) -> Self
pub fn with_coord_decoder_openvino_opencl_throttling(self, x: bool) -> Self
pub fn with_coord_decoder_openvino_qdq_optimizer(self, x: bool) -> Self
pub fn with_coord_decoder_openvino_num_threads(self, x: usize) -> Self
pub fn with_coord_decoder_onednn_arena_allocator(self, x: bool) -> Self
pub fn with_coord_decoder_tensorrt_fp16(self, x: bool) -> Self
pub fn with_coord_decoder_tensorrt_engine_cache(self, x: bool) -> Self
pub fn with_coord_decoder_tensorrt_timing_cache(self, x: bool) -> Self
pub fn with_coord_decoder_coreml_static_input_shapes(self, x: bool) -> Self
pub fn with_coord_decoder_coreml_subgraph_running(self, x: bool) -> Self
pub fn with_coord_decoder_cann_graph_inference(self, x: bool) -> Self
pub fn with_coord_decoder_cann_dump_graphs(self, x: bool) -> Self
pub fn with_coord_decoder_cann_dump_om_model(self, x: bool) -> Self
pub fn with_coord_decoder_nnapi_cpu_only(self, x: bool) -> Self
pub fn with_coord_decoder_nnapi_disable_cpu(self, x: bool) -> Self
pub fn with_coord_decoder_nnapi_fp16(self, x: bool) -> Self
pub fn with_coord_decoder_nnapi_nchw(self, x: bool) -> Self
pub fn with_coord_decoder_armnn_arena_allocator(self, x: bool) -> Self
pub fn with_coord_decoder_migraphx_fp16(self, x: bool) -> Self
pub fn with_coord_decoder_migraphx_exhaustive_tune(self, x: bool) -> Self
Source§impl Config
impl Config
pub fn with_visual_projection_file(self, file: &str) -> Self
pub fn with_visual_projection_external_data_file(self, x: bool) -> Self
pub fn with_visual_projection_dtype(self, dtype: DType) -> Self
pub fn with_visual_projection_device(self, device: Device) -> Self
pub fn with_visual_projection_num_dry_run(self, x: usize) -> Self
pub fn with_visual_projection_ixx( self, i: usize, ii: usize, x: MinOptMax, ) -> Self
pub fn with_visual_projection_graph_opt_level(self, x: u8) -> Self
pub fn with_visual_projection_num_intra_threads(self, x: usize) -> Self
pub fn with_visual_projection_num_inter_threads(self, x: usize) -> Self
pub fn with_visual_projection_cpu_arena_allocator(self, x: bool) -> Self
pub fn with_visual_projection_openvino_dynamic_shapes(self, x: bool) -> Self
pub fn with_visual_projection_openvino_opencl_throttling(self, x: bool) -> Self
pub fn with_visual_projection_openvino_qdq_optimizer(self, x: bool) -> Self
pub fn with_visual_projection_openvino_num_threads(self, x: usize) -> Self
pub fn with_visual_projection_onednn_arena_allocator(self, x: bool) -> Self
pub fn with_visual_projection_tensorrt_fp16(self, x: bool) -> Self
pub fn with_visual_projection_tensorrt_engine_cache(self, x: bool) -> Self
pub fn with_visual_projection_tensorrt_timing_cache(self, x: bool) -> Self
pub fn with_visual_projection_coreml_static_input_shapes(self, x: bool) -> Self
pub fn with_visual_projection_coreml_subgraph_running(self, x: bool) -> Self
pub fn with_visual_projection_cann_graph_inference(self, x: bool) -> Self
pub fn with_visual_projection_cann_dump_graphs(self, x: bool) -> Self
pub fn with_visual_projection_cann_dump_om_model(self, x: bool) -> Self
pub fn with_visual_projection_nnapi_cpu_only(self, x: bool) -> Self
pub fn with_visual_projection_nnapi_disable_cpu(self, x: bool) -> Self
pub fn with_visual_projection_nnapi_fp16(self, x: bool) -> Self
pub fn with_visual_projection_nnapi_nchw(self, x: bool) -> Self
pub fn with_visual_projection_armnn_arena_allocator(self, x: bool) -> Self
pub fn with_visual_projection_migraphx_fp16(self, x: bool) -> Self
pub fn with_visual_projection_migraphx_exhaustive_tune(self, x: bool) -> Self
Source§impl Config
impl Config
pub fn with_textual_projection_file(self, file: &str) -> Self
pub fn with_textual_projection_external_data_file(self, x: bool) -> Self
pub fn with_textual_projection_dtype(self, dtype: DType) -> Self
pub fn with_textual_projection_device(self, device: Device) -> Self
pub fn with_textual_projection_num_dry_run(self, x: usize) -> Self
pub fn with_textual_projection_ixx( self, i: usize, ii: usize, x: MinOptMax, ) -> Self
pub fn with_textual_projection_graph_opt_level(self, x: u8) -> Self
pub fn with_textual_projection_num_intra_threads(self, x: usize) -> Self
pub fn with_textual_projection_num_inter_threads(self, x: usize) -> Self
pub fn with_textual_projection_cpu_arena_allocator(self, x: bool) -> Self
pub fn with_textual_projection_openvino_dynamic_shapes(self, x: bool) -> Self
pub fn with_textual_projection_openvino_opencl_throttling(self, x: bool) -> Self
pub fn with_textual_projection_openvino_qdq_optimizer(self, x: bool) -> Self
pub fn with_textual_projection_openvino_num_threads(self, x: usize) -> Self
pub fn with_textual_projection_onednn_arena_allocator(self, x: bool) -> Self
pub fn with_textual_projection_tensorrt_fp16(self, x: bool) -> Self
pub fn with_textual_projection_tensorrt_engine_cache(self, x: bool) -> Self
pub fn with_textual_projection_tensorrt_timing_cache(self, x: bool) -> Self
pub fn with_textual_projection_coreml_static_input_shapes(self, x: bool) -> Self
pub fn with_textual_projection_coreml_subgraph_running(self, x: bool) -> Self
pub fn with_textual_projection_cann_graph_inference(self, x: bool) -> Self
pub fn with_textual_projection_cann_dump_graphs(self, x: bool) -> Self
pub fn with_textual_projection_cann_dump_om_model(self, x: bool) -> Self
pub fn with_textual_projection_nnapi_cpu_only(self, x: bool) -> Self
pub fn with_textual_projection_nnapi_disable_cpu(self, x: bool) -> Self
pub fn with_textual_projection_nnapi_fp16(self, x: bool) -> Self
pub fn with_textual_projection_nnapi_nchw(self, x: bool) -> Self
pub fn with_textual_projection_armnn_arena_allocator(self, x: bool) -> Self
pub fn with_textual_projection_migraphx_fp16(self, x: bool) -> Self
pub fn with_textual_projection_migraphx_exhaustive_tune(self, x: bool) -> Self
Source§impl Config
impl Config
pub fn with_image_width(self, image_width: u32) -> Self
pub fn with_image_height(self, image_height: u32) -> Self
pub fn with_do_resize(self, do_resize: bool) -> Self
pub fn with_resize_mode(self, resize_mode: ResizeMode) -> Self
pub fn with_resize_filter(self, resize_filter: &'static str) -> Self
pub fn with_padding_value(self, padding_value: u8) -> Self
pub fn with_normalize(self, normalize: bool) -> Self
pub fn with_image_std(self, image_std: &[f32]) -> Self
pub fn with_image_mean(self, image_mean: &[f32]) -> Self
pub fn with_nchw(self, nchw: bool) -> Self
pub fn with_unsigned(self, unsigned: bool) -> Self
pub fn with_pad_image(self, pad_image: bool) -> Self
pub fn with_pad_size(self, pad_size: usize) -> Self
pub fn with_up_scale(self, up_scale: f32) -> Self
pub fn with_image_tensor_layout( self, image_tensor_layout: ImageTensorLayout, ) -> Self
pub fn with_model_max_length(self, model_max_length: u64) -> Self
pub fn with_tokenizer_file(self, tokenizer_file: &str) -> Self
pub fn with_config_file(self, config_file: &str) -> Self
pub fn with_special_tokens_map_file(self, special_tokens_map_file: &str) -> Self
pub fn with_tokenizer_config_file(self, tokenizer_config_file: &str) -> Self
pub fn with_generation_config_file(self, generation_config_file: &str) -> Self
pub fn with_vocab_file(self, vocab_file: &str) -> Self
pub fn with_vocab_txt(self, vocab_txt: &str) -> Self
pub fn with_temperature(self, temperature: f32) -> Self
pub fn with_topp(self, topp: f32) -> Self
Source§impl Config
impl Config
Sourcepub fn yolo() -> Self
pub fn yolo() -> Self
Creates a base YOLO configuration with common settings.
Sets up default input dimensions (640x640) and image processing parameters.
Sourcepub fn yolo_classify() -> Self
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
Sourcepub fn yolo_detect() -> Self
pub fn yolo_detect() -> Self
Creates a configuration for YOLO object detection.
Configures the model for COCO dataset object detection with 80 classes.
Sourcepub fn yolo_pose() -> Self
pub fn yolo_pose() -> Self
Creates a configuration for YOLO pose estimation.
Configures the model for human keypoint detection with 17 COCO keypoints.
Sourcepub fn yolo_segment() -> Self
pub fn yolo_segment() -> Self
Creates a configuration for YOLO instance segmentation.
Configures the model for COCO dataset instance segmentation with 80 classes.
Sourcepub fn yolo_obb() -> Self
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
Sourcepub fn doclayout_yolo_docstructbench() -> Self
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
pub fn fastsam_s() -> Self
pub fn fastsam_x() -> Self
pub fn ultralytics_rtdetr_l() -> Self
pub fn ultralytics_rtdetr_x() -> Self
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.