Add `fraction`, `single_cls` and `classes` to `RTDETRDataset` (#17633)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/17634/head^2
Mohammed Yasin 6 days ago committed by GitHub
parent 14495a46f7
commit 35b6fed814
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      ultralytics/models/rtdetr/train.py

@ -68,8 +68,11 @@ class RTDETRTrainer(DetectionTrainer):
hyp=self.args,
rect=False,
cache=self.args.cache or None,
single_cls=self.args.single_cls or False,
prefix=colorstr(f"{mode}: "),
classes=self.args.classes,
data=self.data,
fraction=self.args.fraction if mode == "train" else 1.0,
)
def get_validator(self):

Loading…
Cancel
Save