diff --git a/docs/en/modes/predict.md b/docs/en/modes/predict.md index 546451baf..8450e0bda 100644 --- a/docs/en/modes/predict.md +++ b/docs/en/modes/predict.md @@ -247,14 +247,14 @@ Below are code examples for using each source type: === "txt" - Run inference on a collection of images, URLs, videos and directories listed in a txt file. + Run inference on a collection of images, videos and directories listed in a txt file. ```python from ultralytics import YOLO # Load a pretrained YOLOv8n model model = YOLO("yolov8n.pt") - # Define a path to a txt file with images, URLs, videos and directories + # Define a path to a txt file with images, videos and directories source = "path/to/file.txt" # Run inference on the source diff --git a/ultralytics/engine/predictor.py b/ultralytics/engine/predictor.py index 8ace18f61..9eea6efe3 100644 --- a/ultralytics/engine/predictor.py +++ b/ultralytics/engine/predictor.py @@ -8,7 +8,7 @@ Usage - sources: vid.mp4 # video screen # screenshot path/ # directory - list.txt # list of images + list.txt # list of images, videos, directories list.streams # list of streams 'path/*.jpg' # glob 'https://youtu.be/LNwODJXcvt4' # YouTube