Skip to content

Example: Image Recognition Agent

Build an agent that classifies images.

Project Overview

Create an agent that: - Recognizes objects in images - Classifies image categories - Detects patterns

Quick Start

iovalence create-agent --name image-classifier --type classification

Image Data Format

data/
├── train/
│   ├── dogs/
│   │   ├── dog1.jpg
│   │   ├── dog2.jpg
│   └── cats/
│       ├── cat1.jpg
│       └── cat2.jpg
└── test/
    ├── dogs/
    └── cats/

Configuration

agent:
  type: classification

data:
  source: data/train/
  type: image
  image_size: [224, 224]

training:
  model: resnet50  # Pre-trained model
  transfer_learning: true

Full Example Workflow

See Classification Example for step-by-step guide.


Back to Examples →