Apply new Ruff actions to Python codeblocks (#13783)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
c0305f4e15
commit
6bddeda34b
13 changed files with 95 additions and 99 deletions
|
|
@ -41,7 +41,7 @@ def on_predict_batch_end(predictor):
|
|||
|
||||
|
||||
# Create a YOLO model instance
|
||||
model = YOLO(f"yolov8n.pt")
|
||||
model = YOLO("yolov8n.pt")
|
||||
|
||||
# Add the custom callback to the model
|
||||
model.add_callback("on_predict_batch_end", on_predict_batch_end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue