ultralytics 8.0.141 create new SettingsManager (#3790)
This commit is contained in:
parent
42afe772d5
commit
20f5efd40a
215 changed files with 917 additions and 749 deletions
|
|
@ -20,10 +20,10 @@ In this example, we want to return the original frame with each result object. H
|
|||
def on_predict_batch_end(predictor):
|
||||
# Retrieve the batch data
|
||||
_, im0s, _, _ = predictor.batch
|
||||
|
||||
|
||||
# Ensure that im0s is a list
|
||||
im0s = im0s if isinstance(im0s, list) else [im0s]
|
||||
|
||||
|
||||
# Combine the prediction results with the corresponding frames
|
||||
predictor.results = zip(predictor.results, im0s)
|
||||
|
||||
|
|
@ -85,4 +85,4 @@ Here are all supported callbacks. See callbacks [source code](https://github.com
|
|||
| Callback | Description |
|
||||
|-------------------|------------------------------------------|
|
||||
| `on_export_start` | Triggered when the export process starts |
|
||||
| `on_export_end` | Triggered when the export process ends |
|
||||
| `on_export_end` | Triggered when the export process ends |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue