pub struct TrainArgs {Show 16 fields
pub model: ModelKind,
pub backend: BackendKind,
pub max_boxes: usize,
pub lambda_box: f32,
pub lambda_obj: f32,
pub input_source: TrainingInputSource,
pub warehouse_manifest: String,
pub dataset_root: String,
pub labels_subdir: String,
pub images_subdir: String,
pub epochs: usize,
pub batch_size: usize,
pub lr: f32,
pub infer_obj_thresh: f32,
pub infer_iou_thresh: f32,
pub checkpoint_out: Option<String>,
}Fields§
§model: ModelKindModel to train.
backend: BackendKindBackend to use (ndarray or wgpu if enabled).
max_boxes: usizeMaximum boxes per image (pads/truncates to this for training).
lambda_box: f32Loss weight for box regression.
lambda_obj: f32Loss weight for objectness.
input_source: TrainingInputSourceTraining input source (warehouse by default).
warehouse_manifest: StringWarehouse manifest path (used with –input-source warehouse).
dataset_root: StringCapture-log dataset root containing labels/ and images/.
labels_subdir: StringLabels subdirectory relative to dataset root (capture-logs only).
images_subdir: StringImages subdirectory relative to dataset root (capture-logs only).
epochs: usizeNumber of epochs.
batch_size: usizeBatch size.
lr: f32Learning rate.
infer_obj_thresh: f32Objectness threshold (for future eval).
infer_iou_thresh: f32IoU threshold (for future eval).
checkpoint_out: Option<String>Checkpoint output path (defaults by model if not provided).
Trait Implementations§
Source§impl Args for TrainArgs
impl Args for TrainArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for TrainArgs
impl CommandFactory for TrainArgs
Source§impl FromArgMatches for TrainArgs
impl FromArgMatches for TrainArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for TrainArgs
impl Parser for TrainArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for TrainArgs
impl RefUnwindSafe for TrainArgs
impl Send for TrainArgs
impl Sync for TrainArgs
impl Unpin for TrainArgs
impl UnsafeUnpin for TrainArgs
impl UnwindSafe for TrainArgs
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
Mutably borrows from an owned value. Read more
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>
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 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>
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