Reference for ultralytics/models/yolo/detect/predict.py
Note
This file is available at https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/detect/predict.py. If you spot a problem please help fix it by contributing a Pull Request 🛠️. Thank you 🙏!
ultralytics.models.yolo.detect.predict.DetectionPredictor
Bases: BasePredictor
A class extending the BasePredictor class for prediction based on a detection model.
Example
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cfg | str | Path to a configuration file. Defaults to DEFAULT_CFG. | DEFAULT_CFG |
overrides | dict | Configuration overrides. Defaults to None. | None |
Source code in ultralytics/engine/predictor.py
postprocess
Post-processes predictions and returns a list of Results objects.
Source code in ultralytics/models/yolo/detect/predict.py
📅 Created 11 months ago ✏️ Updated 1 month ago