Computer Vision resources for DSA 2024 in Nyeri
# Intro to Computer Vision ML using YOLOv8 @DSA2024
© DSA2024. Apache License 2.0.
Contributors : `Yuri Njathi`, `Victor Ruto`, `Lorna Mugambi`, `Dr. Andrew Katumba`
Reviewers : `Sam Mbatia`
**Introduction**
As a branch of artificial intelligence, computer vision utilizes machine learning and neural networks to guide computers in extracting valuable insights from digital images, videos, and visual data. This capability allows them to offer recommendations or trigger actions when identifying flaws or issues [[1]](
ibm.com).
Computer Vision is a broad concept. It covers more than 15 different applications [[2]](
huggingface.co). Here we will look at 3 variations of computer vision, these are : `Image Classification`,`Object Detection` and `Instance Segmentation`. The variations will be `pretrained` and `fine-tuned` prediction. Zero-Shot classification is use of pretrained models to obtain predictions without training.
Here we will use DSAIL-Porini and a bone xray dataset to go through a typical end-to-end machine learning workflow for classification, detection and segementation.
**Topics:**
Content: `Computer Vision`, `YOLOv8`
Level: `Beginner`
**Learning Objectives:**
- Introduce you to end-to-end machine learning.
**Prerequisites:**
- Basic knowledge of Python Programming
- A Google Colab account
- A roboflow account
- A Hugging Face account
### A. Image Classification with YOLOv8
Here we shall utilize DSAIL-Porini images to obtain classification predictions and evaluate the model's performance. Luckily, the dataset authors have provided the images and classifications. I'll take you through how to annotate using roboflow.
Here we'll use YOLOv8-cls to obtain predictions for Zebra, Impala and Other classes. We're only going to use images that have a single species of animal and the animals are detectable by YOLOv8-det.
Steps
1. We'll first practice with Image Classification prediction using pretr …