Skip to content

This code generates image datasets with annotations and labels for training your neural network by one click.

Notifications You must be signed in to change notification settings

Siidej/Datasets-auto-generator-based-on-Blender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Datasets-auto-generator-based-on-Blender

This code generates image datasets with annotations and labels for training your neural network by one click.

Platform

Using Blender 2.91 on Pop!_OS 20.04 LTS

Getting Started

  1. Prepare your 3D models (*.blend files) and backgrounds (*.hdr files).
  2. Paste the code into Blender Scripting Window and change to absolute paths of your models folder and backgrounds folder, unless you know where your blender script placed.
  3. Chage some variables like image numbers etc.
  4. Note that this code also generates KITTI format dataset for my other project, and it's not 100% correct for other general using. But the COCO dataset does.

Result

Detection using YOLOv5 trained by generated dataset image image

For real object detection

According to this paper, pay attention to the texture of model to render.

real object detection using YOLOv5 trained by fake dataset

image image
Note: For saving time, used Evee (Blender real-time render engine) to render the training set (1500 images) and Cycles to render the validation set (500 images). So, theoretically, using Cycles for both will have a better performance.

About

This code generates image datasets with annotations and labels for training your neural network by one click.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages