MVP Batch renderer integration WIP #863
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
"Batch rendering" means rendering (drawing) multiple environments at the same time. The purpose is to speed up rendering (and training).
See also the Hab sim PR that implements
ReplayBatchRenderer
and related python: facebookresearch/habitat-sim#1745 .This PR integrates a very simple batch renderer that just reuses our existing Hab 2.0 renderer. How it works:
ReplayBatchRenderer
(c++), we start with empty copies of all environments' visual SceneGraphs.batch_renderer.py
, we re-create the same visual sensors used by the environments.create_renderer=False
).batch_renderer.py
, we gather all keyframes and restore all visual SceneGraphs (using built-in gfx-replay functionality, which includes loading render assets).observations
dictionaries just before returning them to PPOTrainer.Some notable architectural decisions here:
This is a draft PR meant to spur architecture discussion. It doesn't quite work yet; there's a bit more python bookkeeping to do. This PR would eventually merge into
main
, nothab_suite_baselines
.How Has This Been Tested
WIP. I'm testing with Hab 2.0 rearrangement training. See also the c++ integration test here.
Types of changes
Checklist