https://yushaing.vercel.app/assets/images/1-557400e07b3f45c447c004483b69bef4.png

Installation

Today, I'm going to introduce a powerful tool for image recognition — Yolo v8 (You Only Look Once version 8). For this topic, I plan to write three sections, covering Yolo's environment setup, model training and prediction, and how to label (Labeling) unprocessed data.

1. Setting Up the Environment

Firstly, since Yolo is trained under the Pytorch environment, to avoid any issues with version and package conflicts, we will use Anaconda, a powerful Integrated Development Environment (IDE), to manage the installation of packages. Installing Anaconda is straightforward (simply go to the official website, click Download, and then keep clicking next until the installation is complete). Visit the link here . The system I am using here is MacOS (2020 M1), so all the following commands and installation demonstrations will be conducted and shown under Apple's operating system.

https://yushaing.vercel.app/assets/images/2-57d90e2bd8e51029cf2b07f388ca47fc.png

2. Yolo v8 Documentation

After installing Anaconda, click the following link to visit the Yolo v8 GitHub page to see how to install it. Yolo v8 GitHub

After entering the site, scroll down to find the 'Documentation' section and then click on "YOLOv8 Docs".

https://yushaing.vercel.app/assets/images/3-704fa9be337b32b12ce4f2550396f705.png

Click on "Get Started"

https://yushaing.vercel.app/assets/images/4-5f3da0a9198c846ae8e5e4e9173c8df5.png

After entering the site, the webpage will automatically detect whether your system is Windows, Linux, or Mac.

https://yushaing.vercel.app/assets/images/5-69d20bf65f2a8b1dc12deb5b9fecc089.png

3. Creating a New Environment

Here, we will start using the recently downloaded Anaconda to create a new, clean environment. Please open Anaconda and follow these steps:

  1. Click on 'Environments' in the top left corner.

https://yushaing.vercel.app/assets/images/6-f781063346528a8beb982b52dee95ef4.png

  1. Click on 'Create', set your desired environment name (here, I use 'yolo'), and select Python, specifying the version as the latest one available (3.11.5). Finally, click on 'Create' at the bottom right corner.

https://yushaing.vercel.app/assets/images/7-513948447cf77d124802ac1b7b99512a.png