Skip to content
Back to skills

Custom Training And Data

ASecurity

"Prepare ImageAI 3.x custom training datasets, conversion helpers,

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
toolspythonbashapibackend

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill custom-training-and-data --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Custom Training And Data?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Custom Training And Data
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-custom-training-and-data/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-custom-training-and-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: custom-training-and-data
description: "Prepare ImageAI 3.x custom training datasets, conversion helpers,
  trainer calls, and artifact handoff guidance."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Custom Training and Data

Use this operating sub-skill when the task is to prepare data or start custom
ImageAI 3.x training for either:

- custom image classification with `ClassificationModelTrainer`; or
- custom YOLOv3 / TinyYOLOv3 object detection with `DetectionModelTrainer`.

Do not use this sub-skill to run inference with the produced artifacts. After
training, route classification inference to the `classification-workflows`
sub-skill, custom image detection to `object-detection-workflows`, and custom
video detection to `video-detection-workflows`.

## Route by user intent

| User intent | Use this file first | Then use |
| --- | --- | --- |
| Check whether a classification dataset is trainable | [references/data-formats.md](references/data-formats.md) and `scripts/validate_imageai_dataset.py --task classification` | [references/troubleshooting.md](references/troubleshooting.md) for failures |
| Check whether a YOLO detection dataset is trainable | [references/data-formats.md](references/data-formats.md) and `scripts/validate_imageai_dataset.py --task detection` | [references/training-workflows.md](references/training-workflows.md) for trainer setup |
| Convert Pascal VOC XML detection data to ImageAI 3.x YOLO txt layout | `scripts/pascal_voc_to_yolo.py` | Validate the generated output before training |
| Train custom classification | [references/training-workflows.md](references/training-workflows.md#custom-classification-training) | Route generated `.pt` + classes JSON to `classification-workflows` |
| Train custom detection | [references/training-workflows.md](references/training-workflows.md#custom-yolo-detection-training) | Route generated `.pt` + detection config JSON to `object-detection-workflows` or `video-detection-workflows` |
| Resolve stale ImageAI 2.x / TensorFlow-era parameters | [references/troubleshooting.md](references/troubleshooting.md#deprecated-or-stale-parameter-issues) | Use current PyTorch 3.x signatures only |

## Current ImageAI 3.x constraints

- ImageAI 3.x uses the PyTorch backend for the active package path.
- `.h5` TensorFlow-era pretrained or custom models are not accepted by the
  current trainer/inference extension checks; use `.pt` or `.pth` weights.
- Stale parameters such as `enhance_data`, `num_objects` for classification
  training, `loadModel(num_objects=...)`, speed modes, and standalone detection
  `evaluateModel()` belong to older TensorFlow-era docs and must not be passed
  to the current PyTorch APIs.
- `pycocotools` is not part of the current custom YOLO training path covered by
  this sub-skill.

## Bundled helpers

Run helpers from this sub-skill directory or pass absolute dataset paths from
outside. The helper scripts do not import ImageAI and do not start model
training.

```bash
python scripts/validate_imageai_dataset.py --task classification --dataset-dir path/to/dataset --strict
python scripts/validate_imageai_dataset.py --task detection --dataset-dir path/to/dataset --strict
python scripts/pascal_voc_to_yolo.py --dataset-dir path/to/voc-dataset --output-dir path/to/yolo-dataset
```

The converter writes `classes.txt`; use that class order as
`object_names_array` for `DetectionModelTrainer.setTrainConfig(...)`.

## Verification boundary

Safe checks for this sub-skill are dataset validation, Pascal VOC conversion on
tiny fixtures, import/signature checks, and artifact-name reasoning. Full custom
training is compute- and asset-dependent; do not claim it was cheaply verified
unless a real dataset, release/pretrained weights if needed, and a bounded GPU or
CPU training run were actually supplied and executed.

Files in this skill

  • SKILL.md3.8 KB
  • references/data-formats.md4.8 KB
  • references/training-workflows.md8 KB
  • references/troubleshooting.md8.2 KB
  • scripts/pascal_voc_to_yolo.py13.7 KB
  • scripts/validate_imageai_dataset.py13.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.