Deci-AI / super-gradients

Easily train or fine-tune SOTA computer vision models with one open source training library. The home of Yolo-NAS.
https://www.supergradients.com
Apache License 2.0
4.59k stars 510 forks source link

Support training with multi-scale #1064

Closed dFuong closed 1 year ago

dFuong commented 1 year ago

Does Yolo-nas support training with multi-scale ?

dagshub[bot] commented 1 year ago

Join the discussion on DagsHub!

shaydeci commented 1 year ago

Training in SG generally supports multi-scale. For YoloNAS, you will need to pass DetectionMultiscalePrePredictionCallback through the "pre_prediction_callback" training parameter. See its docs here.

BloodAxe commented 1 year ago

To add to @shaydeci answer, you can use collate function from PPYolo-E training recipe that does multi-scale training on batch level - https://github.com/Deci-AI/super-gradients/blob/d775481084d8e8fc57324ebd34b33a0644de2817/src/super_gradients/recipes/dataset_params/coco_detection_ppyoloe_dataset_params.yaml#L57 What you need to do is replace collate_fn in the dataset config YAML for YOLO-NAS.