Continuing from the previous article, Yolo v8 offers two modes of operation: you can write and execute a Python file yourself, or use the Command Line Interface (CLI). Here, we will unify the process by operating through the Terminal.
Open the terminal:
yolo predict model=yolov8n.pt source='<https://ultralytics.com/images/bus.jpg>'
Here, it will download an image file named 'bus.jpg' from the official website to your computer. Then, it will use the yolov8n model to predict (predict) the contents of this image. The results of the prediction will be stored in the 'runs/detect/predict' directory (by default, this will be in your user-level folder).
Original Image:
The results predicted by Yolov8n:
Below are the types of models trained using Yolo, totaling 5 varieties:
For lighter training, you can choose YOLOv8n as the training model. This concludes the basic image prediction with Yolo.
Next, we will proceed with image model training, which is the well-known machine learning (Machine Learning). We aim to train our model to increase the accuracy of object detection to meet our expectations.
The official training file is 'coco.yaml'. Click here to view the official document file. Here, we use their trained yaml file as an example for our training.