Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9c52b6a
Showing
75 changed files
with
5,855 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## Steps to reproduce | ||
|
||
1. _____ | ||
2. _____ | ||
3. _____ | ||
|
||
## Observed Results | ||
|
||
* What happened? This could be a description, log output, etc. | ||
|
||
## Expected Results | ||
|
||
* What did you expect to happen? | ||
|
||
## Relevant Code | ||
|
||
``` | ||
// TODO(you): code here to reproduce the problem | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## Motivation and Context | ||
|
||
<!--- Why is this change required? What problem does it solve? --> | ||
<!--- Please link to an existing issue here if one exists. --> | ||
<!--- (we recommend to have an existing issue for each pull request) --> | ||
|
||
## How Has This Been Tested | ||
|
||
<!--- Please describe here how your modifications have been tested. --> | ||
|
||
## Types of changes | ||
|
||
<!--- What types of changes does your code introduce? Leave all the items that apply: --> | ||
- Docs change / refactoring / dependency upgrade | ||
- Bug fix (non-breaking change which fixes an issue) | ||
- New feature (non-breaking change which adds functionality) | ||
- Breaking change (fix or feature that would cause existing functionality to change) | ||
|
||
## Checklist | ||
|
||
<!--- Go over all the following points, and put an `x` in all the boxes that apply. --> | ||
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> | ||
- [ ] My code follows the code style of this project. | ||
- [ ] My change requires a change to the documentation. | ||
- [ ] I have updated the documentation accordingly. | ||
- [ ] I have read the **CONTRIBUTING** document. | ||
- [ ] I have completed my CLA (see **CONTRIBUTING**) | ||
- [ ] I have added tests to cover my changes. | ||
- [ ] All new and existing tests passed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
*/env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*,cover | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# DotEnv configuration | ||
.env | ||
|
||
# Database | ||
*.db | ||
*.rdb | ||
|
||
# Pycharm | ||
.idea | ||
|
||
# VS Code | ||
.vscode/ | ||
|
||
# Spyder | ||
.spyproject/ | ||
|
||
# Jupyter NB Checkpoints | ||
.ipynb_checkpoints/ | ||
|
||
# exclude data from source control by default | ||
/data/ | ||
|
||
# Mac OS-specific storage files | ||
.DS_Store | ||
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
# pre-commit | ||
.pre-commit-config.yaml | ||
pyproject.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
language: python | ||
python: | ||
- "3.6" | ||
install: | ||
- pip install pytest black | ||
- pip install . | ||
script: | ||
- black --check habitat test --line-length 79 | ||
- pytest test/test_install.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Code of Conduct | ||
|
||
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. | ||
Please read the [full text](https://code.fb.com/codeofconduct/) | ||
so that you can understand what actions will and will not be tolerated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Contributing to habitat-api | ||
We want to make contributing to this project as easy and transparent as | ||
possible. | ||
|
||
## Pull Requests | ||
We actively welcome your pull requests. | ||
|
||
1. Fork the repo and create your branch from `master`. | ||
2. If you've added code that should be tested, add tests. | ||
3. If you've changed APIs, update the documentation. | ||
4. Ensure the test suite passes. | ||
5. Make sure your code lints. | ||
6. If you haven't already, complete the Contributor License Agreement ("CLA"). | ||
|
||
## Contributor License Agreement ("CLA") | ||
In order to accept your pull request, we need you to submit a CLA. You only need | ||
to do this once to work on any of Facebook's open source projects. | ||
|
||
Complete your CLA here: <https://code.facebook.com/cla> | ||
|
||
## Issues | ||
We use GitHub issues to track public bugs. Please ensure your description is | ||
clear and has sufficient instructions to be able to reproduce the issue. | ||
|
||
## Test | ||
We use pytest testing framework and testing data that needs to be downloaded, please make sure that test are passing: | ||
``` | ||
pytest | ||
``` | ||
|
||
## Check typing | ||
We use mypy to check Python typing and guard API consistency, please make sure next command doesn't complain prior to submission: | ||
``` | ||
mypy . --ignore-missing-imports | ||
``` | ||
|
||
## Coding Style | ||
We use black to format our code, you can use the following commands to format your code prior to submission: | ||
|
||
``` | ||
pip install black | ||
black habitat test --line-length 79 | ||
``` | ||
|
||
## License | ||
By contributing to habitat-api, you agree that your contributions will be licensed | ||
under the LICENSE file in the root directory of this source tree. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Base image | ||
FROM nvidia/cudagl:9.0-runtime-ubuntu16.04 | ||
|
||
# Setup basic packages | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
git \ | ||
curl \ | ||
vim \ | ||
ca-certificates \ | ||
libjpeg-dev \ | ||
libpng-dev \ | ||
libglfw3-dev \ | ||
libglm-dev \ | ||
libx11-dev \ | ||
libomp-dev \ | ||
libegl1-mesa-dev \ | ||
pkg-config \ | ||
wget \ | ||
zip \ | ||
unzip &&\ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install conda | ||
RUN curl -o ~/miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh &&\ | ||
chmod +x ~/miniconda.sh &&\ | ||
~/miniconda.sh -b -p /opt/conda &&\ | ||
rm ~/miniconda.sh &&\ | ||
/opt/conda/bin/conda install numpy pyyaml scipy ipython mkl mkl-include &&\ | ||
/opt/conda/bin/conda clean -ya | ||
ENV PATH /opt/conda/bin:$PATH | ||
|
||
# Install cmake | ||
ADD cmake-3.13.3-Linux-x86_64.sh /cmake-3.13.3-Linux-x86_64.sh | ||
RUN mkdir /opt/cmake | ||
RUN sh /cmake-3.13.3-Linux-x86_64.sh --prefix=/opt/cmake --skip-license | ||
RUN ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake | ||
RUN cmake --version | ||
|
||
# Conda environment | ||
RUN conda create -n habitat python=3.6 | ||
|
||
# Setup habtiat-sim | ||
RUN git clone https://github.com/facebookresearch/habitat-sim.git | ||
RUN /bin/bash -c ". activate habitat; cd habitat-sim; python setup.py install --headless" | ||
|
||
# Install habitat-api | ||
RUN git clone https://github.com/facebookresearch/habitat-api.git | ||
RUN /bin/bash -c ". activate habitat; cd habitat-api; pip install -e ." | ||
|
||
# Download test data | ||
RUN wget http://dl.fbaipublicfiles.com/habitat/habitat-test-scenes.zip | ||
RUN unzip habitat-test-scenes.zip -d habitat-api/ | ||
RUN rm habitat-test-scenes.zip | ||
|
||
# Silence habitat-sim logs | ||
ENV GLOG_minloglevel=2 | ||
ENV MAGNUM_LOG="quiet" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) Facebook, Inc. and its affiliates. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.