platform. AGPL-3.0: commercial closed-source use needs an Ultralytics enterprise license.
Who it is forA team building detection for its own objects, like products on a shelf.
The problemPretrained classes rarely match the objects you care about.
The outcomeA trained model with validation metrics.
What you need first
- Python 3.8 or newer with pip (PyTorch is installed with the package requirements)
- A GPU is optional for prediction and recommended for training
- Images or video to run on, or a dataset config for training
Steps
- Install with
pip install ultralytics - In Python load the model with YOLO("yolo26n.pt")
- Call model.train with data set to your dataset yaml (the README uses coco8.yaml), epochs and imgsz
- Call model.val() to evaluate on the validation set
Prompt for your agent
With ultralytics/ultralytics, write a Python script that loads YOLO("yolo26n.pt"), trains on <my dataset yaml> for 100 epochs at imgsz 640 like the README example, runs model.val(), and prints the key metrics.
Caveat. Training on CPU works per the README example but is slow.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for ultralytics/ultralytics and "Train and validate a YOLO model on your dataset"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer