-
Notifications
You must be signed in to change notification settings - Fork 10
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
Showing
620 changed files
with
108,116 additions
and
25 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,6 @@ | ||
**/__pycache__* | ||
**/.idea | ||
**/build | ||
Pyrado/data | ||
Dockerfile | ||
setup_docker.sh |
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,38 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [ master, cicd ] | ||
pull_request: | ||
branches: [ master, cicd ] | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build the Docker image | ||
run: docker build . --file Dockerfile --tag simurlacra | ||
- name: Execute tests | ||
env: | ||
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} | ||
run: | | ||
wget https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 | ||
export COVPATH=$(realpath .) | ||
chmod +x test-reporter-latest-linux-amd64 | ||
./test-reporter-latest-linux-amd64 before-build | ||
docker run --rm -i -v $COVPATH:/cov simurlacra conda run -n pyrado bash -c "pytest Pyrado/tests --cov=./Pyrado --cov-report=xml --verbose -m 'not visualization and not longtime'; sudo cp ./coverage.xml /cov" | ||
sudo mkdir /home/user/ | ||
sudo mkdir /home/user/SimuRLacra | ||
sudo ln -s $COVPATH /home/user/SimuRLacra | ||
./test-reporter-latest-linux-amd64 format-coverage coverage.xml -t coverage.py -p /home/user/SimuRLacra | ||
./test-reporter-latest-linux-amd64 upload-coverage | ||
- uses: codecov/codecov-action@v1 | ||
with: | ||
file: coverage.xml # optional | ||
flags: unittests # optional | ||
name: codecov-umbrella # optional | ||
fail_ci_if_error: true |
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,20 @@ | ||
name: Publish Docker image | ||
on: | ||
release: | ||
types: [published] | ||
push: | ||
branches: [ master, cicd ] | ||
jobs: | ||
push_to_registry: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
- name: Push to Docker Hub | ||
uses: docker/build-push-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
repository: simurlacra/simurlacra | ||
tag_with_ref: true |
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,77 @@ | ||
# Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and | ||
# Technical University of Darmstadt. | ||
# All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# 1. Redistributions of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# 2. Redistributions in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in the | ||
# documentation and/or other materials provided with the distribution. | ||
# 3. Neither the name of the Fabio Muratore, Honda Research Institute Europe GmbH, | ||
# or Technical University of Darmstadt. nor the names of its contributors may | ||
# be used to endorse or promote products derived from this software without | ||
# specific prior written permission. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
# DISCLAIMED. IN NO EVENT SHALL FABIO MURATORE, HONDA RESEARCH INSTITUTE EUROPE GMBH, | ||
# OR TECHNICAL UNIVERSITY DAMRSTADT BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | ||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER | ||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
|
||
FROM nvidia/cuda:10.1-base-ubuntu18.04 | ||
|
||
ENV LC_ALL=C.UTF-8 | ||
ENV LANG=C.UTF-8 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
curl ca-certificates sudo git bzip2 libx11-6 \ | ||
gcc g++ make cmake zlib1g-dev swig libsm6 libxext6 \ | ||
build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev \ | ||
wget llvm libncurses5-dev xz-utils tk-dev libxrender1\ | ||
libxml2-dev libxmlsec1-dev libffi-dev libcairo2-dev libjpeg-dev libgif-dev chromium-browser | ||
|
||
RUN adduser --disabled-password --gecos '' --shell /bin/bash user && chown -R user:user /home/user | ||
RUN echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/90-pyrado | ||
USER user | ||
WORKDIR /home/user | ||
|
||
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \ | ||
&& bash Miniconda3-latest-Linux-x86_64.sh -b \ | ||
&& rm Miniconda3-latest-Linux-x86_64.sh | ||
|
||
ENV PATH /home/user/miniconda3/bin:$PATH | ||
|
||
RUN conda update conda \ | ||
&& conda update --all | ||
|
||
COPY --chown=user:user . SimuRLacra | ||
|
||
WORKDIR /home/user/SimuRLacra | ||
RUN bash setup_env.sh | ||
SHELL ["conda", "run", "-n", "pyrado", "/bin/bash", "-c"] | ||
|
||
RUN echo "export PATH=/home/user/miniconda3/bin:$PATH" >> ~/.bashrc | ||
RUN echo "conda activate pyrado" >> ~/.bashrc | ||
|
||
RUN python setup_deps.py dep_libraries -j4 | ||
#RUN python setup_deps.py all --use-cuda -j4 | ||
|
||
#RUN conda install pytorch torchvision | ||
RUN conda install pytorch cudatoolkit=10.1 -c pytorch | ||
|
||
RUN python setup_deps.py separate_pytorch -j4 | ||
RUN python setup_deps.py pytorch_based -j4 | ||
ENV PATH /opt/conda/envs/pyrado/bin:$PATH | ||
ENV PYTHONPATH /home/user/SimuRLacra/RcsPySim/build/lib:/home/user/SimuRLacra/Pyrado/:$PYTHONPATH | ||
ENV RCSVIEWER_SIMPLEGRAPHICS 1 | ||
RUN sudo rm -rf /var/lib/apt/lists/* |
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+10.2 KB
Pyrado/data/perma/experiments/wam-bic/cem_dualrbf/2020-06-30_15-09-33/env.pkl
Binary file not shown.
23 changes: 23 additions & 0 deletions
23
Pyrado/data/perma/experiments/wam-bic/cem_dualrbf/2020-06-30_15-09-33/hyperparams.yaml
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,23 @@ | ||
env: | ||
fixed_initial_state: false | ||
max_steps: 1500 | ||
seed: None | ||
policy: | ||
dim_mask: 2 | ||
rbf_hparam: | ||
bounds: !!python/tuple | ||
- 0.0 | ||
- 1.0 | ||
num_feat_per_dim: 6 | ||
scale: None | ||
algo: | ||
expl_std_init: 0.3 | ||
expl_std_min: 0.01 | ||
extra_expl_decay_iter: 3 | ||
extra_expl_std_init: 0.3 | ||
max_iter: 10 | ||
num_is_samples: 5 | ||
num_rollouts: 5 | ||
num_sampler_envs: 8 | ||
pop_size: 100 | ||
algo_name: cem |
Binary file added
BIN
+12.1 KB
Pyrado/data/perma/experiments/wam-bic/cem_dualrbf/2020-06-30_15-09-33/policy.pt
Binary file not shown.
11 changes: 11 additions & 0 deletions
11
Pyrado/data/perma/experiments/wam-bic/cem_dualrbf/2020-06-30_15-09-33/progress.csv
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
Binary file added
BIN
+82.2 KB
Pyrado/data/perma/experiments/wam-bic/cem_dualrbf/2020-06-30_15-09-33/qpos.npy
Binary file not shown.
Binary file added
BIN
+82.2 KB
Pyrado/data/perma/experiments/wam-bic/cem_dualrbf/2020-06-30_15-09-33/qpos_des.npy
Binary file not shown.
Binary file added
BIN
+82.2 KB
Pyrado/data/perma/experiments/wam-bic/cem_dualrbf/2020-06-30_15-09-33/qpos_real.npy
Binary file not shown.
Binary file added
BIN
+82.2 KB
Pyrado/data/perma/experiments/wam-bic/cem_dualrbf/2020-06-30_15-09-33/qpos_sim.npy
Binary file not shown.
Binary file added
BIN
+82.2 KB
Pyrado/data/perma/experiments/wam-bic/cem_dualrbf/2020-06-30_15-09-33/qvel.npy
Binary file not shown.
Binary file added
BIN
+82.2 KB
Pyrado/data/perma/experiments/wam-bic/cem_dualrbf/2020-06-30_15-09-33/qvel_des.npy
Binary file not shown.
Binary file added
BIN
+82.2 KB
Pyrado/data/perma/experiments/wam-bic/cem_dualrbf/2020-06-30_15-09-33/qvel_real.npy
Binary file not shown.
Binary file added
BIN
+82.2 KB
Pyrado/data/perma/experiments/wam-bic/cem_dualrbf/2020-06-30_15-09-33/qvel_sim.npy
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
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,104 @@ | ||
# Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and | ||
# Technical University of Darmstadt. | ||
# All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# 1. Redistributions of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# 2. Redistributions in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in the | ||
# documentation and/or other materials provided with the distribution. | ||
# 3. Neither the name of Fabio Muratore, Honda Research Institute Europe GmbH, | ||
# or Technical University of Darmstadt, nor the names of its contributors may | ||
# be used to endorse or promote products derived from this software without | ||
# specific prior written permission. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
# DISCLAIMED. IN NO EVENT SHALL FABIO MURATORE, HONDA RESEARCH INSTITUTE EUROPE GMBH, | ||
# OR TECHNICAL UNIVERSITY OF DARMSTADT BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | ||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER | ||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
|
||
# Configuration file for the Sphinx documentation builder. | ||
# This file only contains a selection of the most common options. For a full list see the documentation: | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
||
# ---------- | ||
# Path setup | ||
# ---------- | ||
# If extensions (or modules to document with autodoc) are in another directory, | ||
# add these directories to sys.path here. If the directory is relative to the | ||
# documentation root, use os.path.abspath to make it absolute, like shown here. | ||
# | ||
import os | ||
import sys | ||
|
||
from pyrado import VERSION | ||
|
||
|
||
# Add packages to the path | ||
sys.path.insert(0, os.path.abspath('..')) # doc folder | ||
sys.path.insert(0, os.path.abspath('../..')) # Pyrado folder | ||
|
||
# ------------------- | ||
# Project information | ||
# ------------------- | ||
project = 'Pyrado' | ||
version = '.'.join(VERSION.split('.')) # short version | ||
release = VERSION # full version including tags | ||
copyright = '2020' | ||
author = 'Fabio Muratore & Felix Treede & Robin Menzenbach & Chrisitan Eilers' | ||
|
||
# --------------------- | ||
# General configuration | ||
# --------------------- | ||
# Add any Sphinx extension module names here, as strings | ||
# They can be extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones | ||
extensions = [ | ||
'sphinx.ext.inheritance_diagram', | ||
'sphinx.ext.autosectionlabel', | ||
'sphinx_math_dollar', | ||
'sphinx.ext.mathjax', | ||
'sphinx.ext.autosummary', | ||
'sphinx.ext.intersphinx', | ||
'sphinx.ext.todo', | ||
'sphinx.ext.viewcode', | ||
] | ||
|
||
# Add any paths that contain templates here, relative to this directory | ||
templates_path = ['_templates'] | ||
|
||
# List of patterns, relative to source directory, that match files and dirs to ignore when looking for source files | ||
# This pattern also affects html_static_path and html_extra_path | ||
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] | ||
|
||
# The name of the Pygments (syntax highlighting) style to use | ||
pygments_style = 'sphinx' | ||
|
||
source_suffix = { | ||
'.rst': 'restructuredtext', | ||
'.txt': 'restructuredtext', | ||
'.md': 'markdown', | ||
} | ||
|
||
# The master toctree document | ||
master_doc = 'index' | ||
|
||
# ----------------------- | ||
# Options for HTML output | ||
# ----------------------- | ||
# The theme to use for HTML and HTML Help pages. See the documentation for a list of builtin themes | ||
html_theme = 'sphinx_rtd_theme' | ||
|
||
# Add any paths that contain custom static files (such as style sheets) here, relative to this directory. | ||
# They are copied after the builtin static files, so a file named "default.css" will overwrite the builtin "default.css". | ||
html_static_path = ['_static'] | ||
|
||
add_module_names = False |
Oops, something went wrong.