Giter Club home page Giter Club logo

blender_synthetics's Introduction

Blender Synthetics

Create your own synthetic dataset for object detection.

Description

This repo creates random scenes on blender, imports custom 3D models with randomised configurations, and renders numerous images with annotations to train an object detection model.

Getting Started

Install blender (Tested on 3.2 and 3.3)

  • Follow installation instructions here
  • Add blender to PATH
    • echo 'export PATH=/path/to/blender/directory:$PATH' >> ~/.bashrc
  • Ensure your GPU is supported on blender. Refer here

Clone repo

git clone https://github.com/wish2023/blender-synthetics.git

Install packages

sh install_requirements.sh

Generate synthetics

  • Update config/models.yaml and config/render_parameters.yaml as required. Refer to models and render parameters for details.
  • Generate images
    • blender -b -P src/render_blender.py
  • Generate annotations
    • python3 src/create_labels.py

Models

Currently supports fbx/obj/blend. Ensure your models only contain one object that has the same name as its filename.

Classes

Your targets of interest. Bounding boxes will be drawn around these objects.

Obstacles (Optional)

Other objects which will be present in the scene. These won't be annotated.

Scenes (Optional)

Textures that your scene may have. Explore possible textures from texture haven and store all texture subfolders in a main folder.

Parameters

Occlusion awareness

When not occlusion aware, bounding boxes will surround regions of the object that aren't visible by the camera.

occ diagram

Visibility threshold

The fraction of an object that must be visible by the camera for it to be considered visible to a human annotator.

camera diagram

Component visibility threshold

The fraction of an object components that must be visible by the camera for it to be considered visible to a human annotator.

camera diagram

Camera configurations

camera diagram

Sun

The sun's energy is the light intensity on the scene. The tilt is responsible for casting shadows and works similar to the camera's tilt.

blender_synthetics's People

Contributors

wish2023 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

tehwenyi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.