Segmentation Train Config
Bases: TrainConfig
Source code in src/rfdetr/config.py
Functions¶
expand_paths(v)
classmethod
¶
Expand user paths (e.g., '~' or paths with separators) but leave simple filenames (like 'rf-detr-base.pth') unchanged so they can match hosted model keys.
Source code in src/rfdetr/config.py
validate_batch_size(v)
classmethod
¶
Validate batch_size is a positive integer or the literal 'auto'.
Source code in src/rfdetr/config.py
validate_ema_headroom(v)
classmethod
¶
Validate auto_batch_ema_headroom is in (0, 1].
Source code in src/rfdetr/config.py
validate_positive_intervals(v)
classmethod
¶
Validate interval fields are >= 1.
Source code in src/rfdetr/config.py
validate_positive_train_steps(v)
classmethod
¶
Validate accumulation, target-effective batch, and max targets are >= 1.
Source code in src/rfdetr/config.py
validate_prefetch_factor(v)
classmethod
¶
Validate prefetch_factor is None or >= 1.