Here’s a glimpse of the YOLOv8 Dataset Designer interface. It’s designed to be intuitive, clean, and user-friendly for a seamless experience in dataset creation.
The YOLOv8 Dataset Designer is an end-to-end dataset generation toolkit designed for computer vision practitioners, AI engineers, and researchers who want to quickly create custom datasets for YOLOv8.
It provides two complementary modes:
- 🚀 Command-line mode (CLI) for automation and batch dataset creation.
- 🎨 Graphical User Interface (GUI) for intuitive, visual dataset design without the need to write any code.
With this tool, you can transform raw images → high-quality YOLOv8-ready datasets in just a few simple steps.
- 🔧 Two Modes in One Project: Switch between GUI and CLI depending on your workflow.
- 🖼️ Flexible Input Handling: Supports image paths directly or interactively through the UI.
- 🎚️ Customizable Parameters: Adjust geometry levels, color transformations, JPEG quality, validation ratio, and more.
- 📦 Seamless Dataset Export: Automatically generates datasets that adhere to YOLOv8 conventions.
- 🔒 Reproducibility: Use random seeds to create deterministic datasets.
- 🛠️ Modular Codebase: Clean architecture with separate modules for
AppRunner,DatasetGenerator, andConfigto ensure maintainability. - 🧩 Minimal External Dependencies: Easy to set up in a fresh Python environment.
YOLOv8-Dataset-Designer/ ├── app/ │ ├── ui/ # UI components │ ├── config.py # Configuration management │ └── ... ├── main.py # Entry point ├── requirements.txt # Dependencies └── README.md # Project documentation
Clone and set up the project:
git clone https://github.com/Behdad-kanaani/YOLOv8-Dataset-Designer.git
cd YOLOv8-Dataset-Designer(Optional but recommended) Create a virtual environment:
python -m venv venv source venv/bin/activate # Linux/macOS venv\Scripts\activate # Windows
Install dependencies:
pip install -r requirements.txt
python main.py
This will launch the GUI, where you can visually select images, adjust dataset parameters, and start the dataset generation process interactively.
Generate datasets without GUI (ideal for automation):
python main.py --no-ui --image-path /path/to/your/image.jpg
| Argument | Type | Default | Description |
|---|---|---|---|
--no-ui |
flag | False |
Run without GUI (headless mode). |
--image-path |
string | path/to/default/image.jpg |
Input image path for dataset generation. |
python main.py --no-ui
python main.py --no-ui --image-path ./samples/car.jpg
python main.py
All configuration is managed through the Config class. Example:
cfg = Config( image_path="path/to/image.jpg", output_root="./dataset_yolov8", total=400, val_ratio=0.15, geo="medium", col="medium", jpeg_q=95, seed=123 )
With this, you can fine-tune the following parameters:
- Dataset size
- Train/Validation split ratio
- Color/Geometry augmentation level
- JPEG compression quality
- Random seed for reproducibility
We welcome contributions of all forms — bug fixes, new features, UI improvements, or documentation enhancements.
- Fork this repository
- Create a new branch:
git checkout -b feature/my-feature - Commit your changes:
git commit -m "Add my feature" - Push to the branch:
git push origin feature/my-feature - Submit a Pull Request 🎉
Before contributing, please check the Issues page for open discussions.
Distributed under the GNU Affero General Public License v3 (AGPL-3.0). See the full license text in the LICENSE file.
- Built with 💙 in Python.
- Inspired by the need for faster, smarter dataset pipelines for YOLOv8.
- Thanks to the open-source community for continuous inspiration.
- Author: Behdad Kanaani
- Issues: Report a Bug
- Pull Requests: Contributions welcome!
If you find this project useful, don’t forget to ⭐ star the repo and share it with the community! 🚀
