TrainConfig
- class plugins.train.trainer.base.TrainConfig(folders: list[str], batch_size: int, augment_color: bool, flip: bool, warp: bool, cache_landmarks: bool, lr_finder: bool = False, snapshot_interval: int = -1)
Bases:
objectConfiguration for training a model
- Parameters:
image_folders – List of folders to be used as inputs to the model. Folders are provided in processing order (eg: [A, B, …])
batch_size (int) – The batch size to load data from each of the loaders
augment_color (bool) –
Trueto perform color augmentation otherwiseFalseflip (bool) –
Trueto perform image flipping otherwiseFalsewarp (bool) –
Falseto disable warpingTrueto enable warpingcache_landmarks (bool) –
Trueto cache landmarks from the other side for Warp to landmarksuse_lr_finder –
Trueto use the learning rate finder. Default:Falseinterval (snapshot) – The number of iterations between snapshots. Default -1 (Disabled)
folders (list[str])
lr_finder (bool)
snapshot_interval (int)
Attributes Summary
Trueto use the learning rate finderThe number of iterations between snapshots
Attributes Documentation
- lr_finder: bool = False
Trueto use the learning rate finder
- snapshot_interval: int = -1
The number of iterations between snapshots
- augment_color: bool = <dataclasses._MISSING_TYPE object>
Trueto perform color augmentation otherwiseFalse
- batch_size: int = <dataclasses._MISSING_TYPE object>
The batch size to load data from each of the loaders
- cache_landmarks: bool = <dataclasses._MISSING_TYPE object>
Trueto cache landmarks from the other side for Warp to landmarks
- flip: bool = <dataclasses._MISSING_TYPE object>
Falseto disable warpingTrueto enable warping
- folders: list[str] = <dataclasses._MISSING_TYPE object>
List of folders to be used as inputs to the model. Folders are provided in processing order (eg: [A, B, …])
- lr_finder: bool = False
Trueto use the learning rate finder
- snapshot_interval: int = -1
The number of iterations between snapshots
- warp: bool = <dataclasses._MISSING_TYPE object>
Falseto disable warpingTrueto enable warping