Giter Site home page Giter Site logo

liuguoyou / blenderproc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dlr-rm/blenderproc

0.0 1.0 0.0 42.77 MB

A procedural Blender pipeline for photorealistic training image generation

License: GNU General Public License v3.0

Python 100.00%

blenderproc's Introduction

BlenderProc

Front readme image

A procedural Blender pipeline for photorealistic training image generation.

Check out our arXiv paper (we are updating it from time to time) and our workshop paper on sim2real transfer presented at RSS 2020.

Overview Video

BlenderProc video

There is also an extended introduction video to BlenderProc, it covers the basics and a bit of the background story and how it all started. It can be found here.

Contents

General

In general, one run of the pipeline first loads or constructs a 3D scene, then sets some camera positions inside this scene and renders different types of images (rgb, distance, normals etc.) for each of them. The blender pipeline consists of different modules, where each of them performs one step in the described process. The modules are selected, ordered and configured via a .yaml file.

To run the blender pipeline one just has to call the run.py script in the main directory together with the desired config file and any additional arguments. An exemplary config.yaml can be found in the respective example folder.

python run.py config.yaml <additional arguments>

This runs all modules specified in the config file in a step-by-step fashion in the configured order.

Currently, BlenderProc officialy supports Linux and MacOS. There is also a community driven support for Windows.

Functionality

The following modules are already implemented and ready to use:

  • Loading: *.obj, *.ply, SunCG, Replica scenes, BOP datasets, etc.
  • Objects: Sample object poses, apply physics and collision checking.
  • Materials: Set or sample physically-based materials and textures
  • Lighting: Set or sample lights, automatic lighting of SunCG scenes.
  • Cameras: set, sample or load camera poses from file.
  • Rendering: RGB, stereo, depth, normal and segmentation images/sequences.
  • Writing: .hdf5 containers, COCO & BOP annotations.

..and many more. For advanced/custom functionalities, you can easily write and integrate your own modules.

Examples

We provide a lot of examples which explain all features in detail and should help you understand how the config files work. Exploring our examples is the best way to learn about what you can do with BlenderProc.

  • Basic scene: Basic example
  • Simple SUNCG scene: Loads a SUNCG scene and camera positions from file before rendering color, normal, segmentation and a distance images.
  • SUNCG scene with camera sampling: Loads a SUNCG scene and automatically samples camera poses in every room before rendering color, normal, segmentation and a distance images.
  • Replica dataset: Load a replica room, sample camera poses and render normal images.
  • COCO annotations: Write COCO annotations to a .json file for selected objects in the scene.
  • BOP Challenge: Generate the pose-annotated data used at the BOP Challenge 2020

... And much more!

Source Code

Now it's a good time to take a look at the source code: All modules are there. Explore and look at the short guide about writing your own modules.

Contributions

Found a bug? help us by reporting it. Want a new feature in the next BlenderProc release? Create an issue. Made something useful or fixed a bug? Start a PR. Check the contributions guidelines.

Change log

See our change log.

Citation

If you use BlenderProc in a research project, please cite as follows:

@article{denninger2019blenderproc,
  title={BlenderProc},
  author={Denninger, Maximilian and Sundermeyer, Martin and Winkelbauer, Dominik and Zidan, Youssef and Olefir, Dmitry and Elbadrawy, Mohamad and Lodhi, Ahsan and Katam, Harinandan},
  journal={arXiv preprint arXiv:1911.01911},
  year={2019}
}

blenderproc's People

Contributors

abahnasy avatar apenzko avatar cjgammon avatar cornerfarmer avatar davidrisch avatar guangyun-xu avatar harinandan1995 avatar ideas-man avatar joe3141 avatar ljs7619480 avatar markusknauer avatar martinsmeyer avatar maximilianmuehlbauer avatar mayman99 avatar moizsajid avatar neixlo avatar themasterlink avatar thodan avatar ttsesm avatar wangg12 avatar wboerdijk avatar zzilch avatar

Watchers

 avatar

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.