Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install scripts, bdist_wheel, x86 docker and instructions #174

Merged
merged 146 commits into from
Dec 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
b995396
Added install.bash
passalis Dec 14, 2021
dd2ab4d
Updated install.sh
passalis Dec 14, 2021
69bc707
Updated install and activate scripts
passalis Dec 14, 2021
8a67e1e
Updated install scripts
passalis Dec 14, 2021
8d701b1
Updated install scripts
passalis Dec 14, 2021
9764c9b
Added setup.py
passalis Dec 14, 2021
5b39827
Updated install.bash
passalis Dec 14, 2021
55e4d9c
pep8 fixes
passalis Dec 14, 2021
31b0dd8
updated setup.py
passalis Dec 14, 2021
035ac7b
updated setup.py
passalis Dec 14, 2021
fe73142
updated setup.py
passalis Dec 14, 2021
229cefe
updated setup.py and install.sh
passalis Dec 14, 2021
dd1c79c
updated install.bash
passalis Dec 14, 2021
8837410
renamed install/setup scripts
passalis Dec 14, 2021
f12f19b
Updated installation script
passalis Dec 14, 2021
62f0080
Initial README.md
passalis Dec 14, 2021
68af819
Installation instructions + script update
passalis Dec 14, 2021
ed6080d
Dockerfile added
passalis Dec 14, 2021
e859b5e
Installation instructions refinement
passalis Dec 14, 2021
ea4c54f
refactoring + __version__ variable
passalis Dec 14, 2021
f06ca0a
Merge branch 'master' into install_scripts
passalis Dec 14, 2021
6980754
documentation link added
passalis Dec 14, 2021
cc262dd
documentation link added
passalis Dec 14, 2021
670d41b
documentation link added
passalis Dec 14, 2021
69ec117
pep8 fixes
passalis Dec 14, 2021
3b9be42
docker fixes
passalis Dec 14, 2021
cc81905
pep8 fixes
passalis Dec 14, 2021
324c162
Added venv to skipped pep8 dirs
passalis Dec 14, 2021
cb11735
Added CUDA installation instructions
passalis Dec 14, 2021
4bea177
pep8 fixes
passalis Dec 14, 2021
64e4f9f
Added missing license
passalis Dec 14, 2021
5c522bf
import fix
passalis Dec 15, 2021
8096003
fixed opendr device
passalis Dec 15, 2021
eb5e0a0
Update installation.md
passalis Dec 15, 2021
25461d5
Update installation.md
passalis Dec 15, 2021
760eaa3
Update installation.md
passalis Dec 15, 2021
dafca7f
Update README.md
passalis Dec 15, 2021
4498dfe
Update README.md
passalis Dec 15, 2021
20acb1e
Update README.md
passalis Dec 15, 2021
fe25984
Fixed version import
passalis Dec 15, 2021
ed7c6d4
Merge branch 'install_scripts' of https://github.com/tasostefas/opend…
passalis Dec 15, 2021
8ef560b
Fixed version import
passalis Dec 15, 2021
f1bc70e
Merge branch 'master' into install_scripts
passalis Dec 15, 2021
f394365
Added missing __init__.py
passalis Dec 15, 2021
86b2e36
Added missing __init__.py
passalis Dec 15, 2021
0f972c9
Update installation.md
passalis Dec 15, 2021
8a5b24f
Update installation.md
passalis Dec 15, 2021
dd6bddd
Added cython to setup.py
passalis Dec 15, 2021
7ceda2b
Merge remote-tracking branch 'origin/install_scripts' into install_sc…
passalis Dec 15, 2021
4c01f04
Merge branch 'master' into install_scripts
passalis Dec 15, 2021
7d8de34
Update install.sh
passalis Dec 15, 2021
5852bfa
Added installation test
passalis Dec 15, 2021
e2d8406
Merge branch 'master' into install_scripts
passalis Dec 15, 2021
8307e43
Restore workflow
passalis Dec 15, 2021
d9c69fa
Update README.md
passalis Dec 15, 2021
137dc76
Update README.md
passalis Dec 15, 2021
10aa11e
Merge branch 'master' into install_scripts
ad-daniel Dec 15, 2021
2761b0c
Merge branch 'master' into install_scripts
ad-daniel Dec 15, 2021
44ffb68
Merge branch 'master' into install_scripts
passalis Dec 16, 2021
695a879
Merge branch 'master' into install_scripts
passalis Dec 16, 2021
9973a7c
Updated conflicting dependencies with detectron
passalis Dec 16, 2021
b7c314b
Update test_pep8.py
passalis Dec 16, 2021
e2c3d76
restored pycoco
passalis Dec 16, 2021
24f568b
restored pillow dep
passalis Dec 16, 2021
7509460
Removed detectron from pip wheel requirements
passalis Dec 16, 2021
5e9ce32
Update installation.md
passalis Dec 16, 2021
fff8f6a
Merge branch 'master' into install_scripts
passalis Dec 16, 2021
996b438
Removed redundant pip install
passalis Dec 16, 2021
ff049f3
Update installation.md
passalis Dec 16, 2021
b4f072b
Update installation.md
passalis Dec 16, 2021
e18d98a
Update installation.md
passalis Dec 16, 2021
5a097c5
Merge branch 'master' into install_scripts
ad-daniel Dec 17, 2021
cdc52ff
Update README.md
passalis Dec 17, 2021
188a496
Update README.md
passalis Dec 17, 2021
7623a21
Update docs/reference/installation.md
passalis Dec 17, 2021
0922739
Update docs/reference/installation.md
passalis Dec 17, 2021
85066a7
Update bin/activate.sh
passalis Dec 17, 2021
f6e198a
Update docs/reference/installation.md
passalis Dec 17, 2021
461d9c0
Update docs/reference/installation.md
passalis Dec 17, 2021
c8cfe5d
Update docs/reference/installation.md
passalis Dec 17, 2021
11b4a50
Update docs/reference/installation.md
passalis Dec 17, 2021
e9722c3
Update docs/reference/installation.md
passalis Dec 17, 2021
39789cb
Update bin/install.sh
passalis Dec 17, 2021
2b9f862
Switching to faster cloning options + docker link
passalis Dec 17, 2021
2a27867
Merge branch 'master' into install_scripts
ad-daniel Dec 17, 2021
73ff655
Update installation.md
passalis Dec 17, 2021
17e95a0
Added dependencies for pip installation
passalis Dec 17, 2021
75239a4
Added missing dependencies
passalis Dec 17, 2021
9630aa6
Added pip dependencies
passalis Dec 17, 2021
bb61df1
Update installation.md
passalis Dec 18, 2021
9c77d08
Update install.sh
passalis Dec 18, 2021
7810c97
Update install.sh
passalis Dec 18, 2021
02e71de
Merge branch 'master' into install_scripts
ad-daniel Dec 18, 2021
3a55200
Updated dockerfile repo url
passalis Dec 18, 2021
bb3b16b
Cuda dockerfile
passalis Dec 19, 2021
41b5f2f
Documentation update
passalis Dec 19, 2021
1e7b131
Update installation.md
passalis Dec 19, 2021
3f34bba
Update installation.md
passalis Dec 19, 2021
6de8aee
Update installation.md
passalis Dec 19, 2021
472d5fb
Update README.md
passalis Dec 20, 2021
4ee371d
Added information regarding CUDA
passalis Dec 21, 2021
fe83fcd
setup.py fixes
passalis Dec 21, 2021
85a0cdc
pip installation update
passalis Dec 21, 2021
ce8a851
pip installation update
passalis Dec 21, 2021
a27f048
typo fix
passalis Dec 21, 2021
8c18667
pep8 fix
passalis Dec 21, 2021
4de9e77
Updated instructions
passalis Dec 21, 2021
0724812
Update docs/reference/installation.md
passalis Dec 21, 2021
1fe2ac7
Update docs/reference/installation.md
passalis Dec 21, 2021
eb25893
Update README.md
passalis Dec 21, 2021
dde3544
Update installation.md
passalis Dec 21, 2021
59d908c
Update installation.md
passalis Dec 21, 2021
1e62334
Updated dockerfile links
passalis Dec 21, 2021
e1cfe00
Replace `python` with `python3` references
passalis Dec 21, 2021
2ad1ffb
Added link to jupyter localhost server
passalis Dec 21, 2021
33cc965
Merge branch 'master' into install_scripts
ad-daniel Dec 21, 2021
e800f9a
Update installation.md
passalis Dec 21, 2021
0b10173
Update installation.md
passalis Dec 21, 2021
e54cdac
Update installation.md
passalis Dec 21, 2021
8836483
Change docker instructions and links
ad-daniel Dec 21, 2021
5782929
Merge branch 'master' into install_scripts
ad-daniel Dec 21, 2021
21a0933
Fix documentation typo on cuda instructions
passalis Dec 21, 2021
9a008a6
Merge branch 'master' into install_scripts
passalis Dec 21, 2021
9468048
Update Dockerfile-cuda
passalis Dec 21, 2021
318ca3e
Update Dockerfile-cuda
passalis Dec 22, 2021
66dfa7e
Update Dockerfile-cuda
passalis Dec 22, 2021
acee0fe
Avoid gcc9 switch
passalis Dec 22, 2021
5cdc978
Add gpu docker instructions
ad-daniel Dec 22, 2021
fddc10c
fix
ad-daniel Dec 22, 2021
4dbeab9
GPU command fix
passalis Dec 22, 2021
928ef07
Fix my mess up
ad-daniel Dec 22, 2021
9f16add
rephrase
ad-daniel Dec 22, 2021
bb9bd07
Added instruction for stopping the container
passalis Dec 22, 2021
958a46c
pip git requirements
passalis Dec 22, 2021
69e0715
added requirements + renamed to pip_requirements.txt
passalis Dec 22, 2021
f5748f7
updated pip requirements
passalis Dec 22, 2021
12d6b9a
Update installation.md
passalis Dec 22, 2021
794dc31
Simplified pip installation instructions
passalis Dec 22, 2021
17f1f49
updated pip requirements
passalis Dec 22, 2021
35e6307
Merge remote-tracking branch 'origin/install_scripts' into install_sc…
passalis Dec 22, 2021
41a19eb
Added estimated RAM usage and testing instructions
passalis Dec 22, 2021
7219900
Refined installation time estimation
passalis Dec 22, 2021
221c9e3
Split self-build of docker from installation to avoid confusion
ad-daniel Dec 22, 2021
08bad82
Instructions for docker GTK app support
passalis Dec 23, 2021
37afb1f
Removed install_script references
passalis Dec 23, 2021
15525c7
Added xhost +local:root instruction
passalis Dec 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/tests_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,3 @@ jobs:
source tests/sources/tools/control/mobile_manipulation/run_ros.sh
python -m unittest discover -s tests/sources/tools/${{ matrix.package }}
fi

25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM ubuntu:20.04

# Install dependencies
RUN apt-get update && \
apt-get --yes install git sudo
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata

# Add Tini
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]

# Clone the repo and install the toolkit
RUN git clone --depth 1 --recurse-submodules -j8 https://github.com/opendr-eu/opendr
WORKDIR "/opendr"
RUN ./bin/install.sh

# Create script for starting Jupyter Notebook
RUN /bin/bash -c "source ./bin/activate.sh; pip3 install jupyter"
RUN echo "#!/bin/bash\n source ./bin/activate.sh\n ./venv/bin/jupyter notebook --port=8888 --no-browser --ip 0.0.0.0 --allow-root" > start.sh
RUN chmod +x start.sh

# Start Jupyter Notebook inside OpenDR
CMD ["./start.sh"]
56 changes: 56 additions & 0 deletions Dockerfile-cuda
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
FROM nvidia/cuda:11.0-base

# Install dependencies
RUN apt-get update && \
apt-get --yes install git sudo apt-utils
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata

# Install CUDA 10.2
RUN apt-get --yes install gcc-8 g++-8 wget && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100 --slave /usr/bin/g++ g++ /usr/bin/g++-8 && \
update-alternatives --auto gcc && \
apt-get --yes install zlib1g-dev libbz2-dev libreadline-dev libssl-dev libsqlite3-dev libffi-dev && \
wget https://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda_10.2.89_440.33.01_linux.run && \
wget http://people.cs.uchicago.edu/~kauffman/nvidia/cudnn/cudnn-10.2-linux-x64-v8.2.0.53.tgz

RUN sudo apt-get --yes install libxml2 && \
sh cuda_10.2.89_440.33.01_linux.run --silent --toolkit --override --librarypath=/usr/local/cuda-10.2 && \
ln -s /usr/local/cuda-10.2/ /usr/local/cuda && \
tar -xzvf cudnn-10.2-linux-x64-v8.2.0.53.tgz && \
cp cuda/include/cudnn.h /usr/local/cuda/include && \
cp cuda/lib64/libcudnn* /usr/local/cuda/lib64 && \
chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn* && \
bash -c 'echo "/usr/local/cuda-10.2/lib64" > /etc/ld.so.conf.d/nvidia.conf' && \
ln -sf /usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn_adv_train.so.8.2.0 /usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn_adv_train.so.8 && \
ln -sf /usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8.2.0 /usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8 && \
ln -sf /usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8.0.0 /usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8 && \
ln -sf /usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8.2.0 /usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8 && \
ln -sf /usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn_ops_train.so.8.2.0 /usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn_ops_train.so.8 && \
ln -sf /usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8.2.0 /usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8 && \
ln -sf /usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn.so.8.2.0 /usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn.so.8 && \
ldconfig

# Add Tini
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]

# Avoid switching back to gcc9 when install build-essential
RUN sudo apt-get --yes install build-essential && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100 --slave /usr/bin/g++ g++ /usr/bin/g++-8 && \
update-alternatives --auto gcc

# Clone the repo and install the toolkit
ENV OPENDR_DEVICE gpu
RUN git clone --depth 1 --recurse-submodules -j8 https://github.com/opendr-eu/opendr
WORKDIR "/opendr"
RUN ./bin/install.sh

# Create script for starting Jupyter Notebook
RUN /bin/bash -c "source ./bin/activate.sh; pip3 install jupyter"
RUN echo "#!/bin/bash\n source ./bin/activate.sh\n ./venv/bin/jupyter notebook --port=8888 --no-browser --ip 0.0.0.0 --allow-root" > start.sh
RUN chmod +x start.sh

# Start Jupyter Notebook inside OpenDR
CMD ["./start.sh"]
62 changes: 56 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,62 @@
# OpenDR Toolkit
OpenDR Internal Repository
<div align="center">

<img src="docs/reference/images/opendr_logo.png" width="400px">

This is the internal repository of [OpenDR Project](https://opendr.eu) that contains the development version of OpenDR toolkit.
Note that this version is not yet production ready, so this repository is not yet intended to be used for any purpose, since it might contain unstable code that undergoes heavy development.
The first public version of OpenDR toolkit is scheduled to be released on Dec. 2021.
**A modular, open and non-proprietary toolkit for core robotic functionalities by harnessing deep learning**
______________________________________________________________________

<p align="center">
<a href="https://www.opendr.eu/">Website</a> •
<a href="#about">About</a> •
<a href="docs/reference/installation.md">Installation</a> •
<a href="#using-opendr-toolkit">Using OpenDR toolkit</a> •
<a href="projects">Examples</a> •
<a href="#roadmap">Roadmap</a> •
<a href="LICENSE">License</a>
</p>

*OpenDR project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 871449.*
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

</div>

## About

The aim of [OpenDR Project](https://opendr.eu) is to develop a **modular, open** and **non-proprietary toolkit** for core **robotic functionalities** by harnessing **deep learning** to provide advanced perception and cognition capabilities, meeting in this way the general requirements of robotics applications in the applications areas of healthcare, agri-food and agile production.
OpenDR provides the means to link the **robotics applications to software libraries** (deep learning frameworks, e.g., [PyTorch](https://pytorch.org/) and [Tensorflow](https://www.tensorflow.org/)) to the **operating environment ([ROS](https://www.ros.org/))**.
OpenDR focuses on the **AI and Cognition core technology** in order to provide tools that make robotic systems cognitive, giving them the ability to:
1. interact with people and environments by developing deep learning methods for **human centric and environment active perception and cognition**,
2. **learn and categorize** by developing deep learning **tools for training and inference in common robotics settings**, and
3. **make decisions and derive knowledge** by developing deep learning tools for cognitive robot action and decision making.

As a result, the developed OpenDR toolkit will also enable cooperative human-robot interaction as well as the development of cognitive mechatronics where sensing and actuation are closely coupled with cognitive systems thus contributing to another two core technologies beyond AI and Cognition.
OpenDR aims to develop, train, deploy and evaluate deep learning models that improve the technical capabilities of the core technologies beyond the current state of the art.

## Installing OpenDR Toolkit

OpenDR can be installed in the following ways:
1. By *cloning* this repository (CPU/GPU support)
2. Using *pip* (CPU only)
3. Using *docker* (CPU/GPU support)

You can find detailed installation instruction in the [documentation](docs/reference/installation.md).

## Using OpenDR toolkit
OpenDR provides an intuitive and easy to use **[Python interface](src/opendr)**, a **[C API](src/c_api) for performance critical application**, a wealth of **[usage examples and supporting tools](projects)**, as well as **ready-to-use [ROS nodes](projects/opendr_ws)**.
OpenDR is built to support [Webots Open Source Robot Simulator](https://cyberbotics.com/), while it also extensively follows industry standards, such as [ONNX model format](https://onnx.ai/) and [OpenAI Gym Interface](https://gym.openai.com/).
You can find detailed documentation in OpenDR [wiki](https://github.com/tasostefas/opendr_internal/wiki), as well as in the [tools index](docs/reference/index.md).

## Roadmap
OpenDR has the following roadmap:
- **v1.0 (2021)**: Baseline deep learning tools for core robotic functionalities
- **v2.0 (2022)**: Optimized lightweight and high-resolution deep learning tools for robotics
- **v3.0 (2023)**: Active perception-enabled deep learning tools for improved robotic perception

## How to contribute
Please follow the instructions provided in the [wiki](https://github.com/tasostefas/opendr_internal/wiki).


## Acknowledgments
*OpenDR project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 871449.*
<div align="center">
<img src="https://user-images.githubusercontent.com/16520105/123549590-6a9f4b00-d772-11eb-998a-ed4c70133617.png" height="70"> <img src="https://user-images.githubusercontent.com/16520105/123549536-31ff7180-d772-11eb-9c81-6cc98b7d2e1e.png" height="70">
</div>
12 changes: 12 additions & 0 deletions bin/activate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
export OPENDR_HOME=$PWD
export PYTHONPATH=$OPENDR_HOME/src:$PYTHONPATH
export PYTHON=python3
export LD_LIBRARY_PATH=$OPENDR_HOME/src:$LD_LIBRARY_PATH

if [[ -z "${OPENDR_DEVICE}" ]]; then
echo "[INFO] Set available device to CPU. You can manually change this by running 'export OPENDR_DEVICE=gpu'."
export OPENDR_DEVICE=cpu
fi

source venv/bin/activate
52 changes: 52 additions & 0 deletions bin/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#!/bin/bash
export OPENDR_HOME=$PWD
export PYTHONPATH=$OPENDR_HOME/src:$PYTHONPATH
export PYTHON=python3
export DISABLE_BCOLZ_AVX2=true

if [[ -z "${OPENDR_DEVICE}" ]]; then
echo "[INFO] Set available device to CPU. You can manually change this by running 'export OPENDR_DEVICE=gpu'."
export OPENDR_DEVICE=cpu
fi

# Install base ubuntu deps
sudo apt-get install --yes libfreetype6-dev lsb-release git python3-pip curl wget python3.8-venv

# Get all submodules
git submodule init
git submodule update

case $(lsb_release -r |cut -f2) in
"18.04")
export ROS_DISTRO=melodic;;
"20.04")
export ROS_DISTRO=noetic;;
*)
echo "Not tested for this ubuntu version" && exit 1;;
esac

# Create a virtual environment and update
python3 -m venv venv
source venv/bin/activate
python3 -m pip install -U pip
pip3 install setuptools configparser

# Add repositories for ROS
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' \
&& curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -

# Build OpenDR
make install_compilation_dependencies
make install_runtime_dependencies
make libopendr

# Prepare requirements.txt for wheel distributions
pip3 freeze > requirements.txt

# Remove detectron, since it was installed from git repo
sed -i '/detectron2/d' requirements.txt
sed -i '/git/d' requirements.txt
python3 setup.py bdist_wheel

deactivate

23 changes: 0 additions & 23 deletions bin/setup.bash

This file was deleted.

4 changes: 2 additions & 2 deletions dependencies/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fi
pip install ConfigParser

# Install global dependencies
python parse_dependencies.py $TYPE --global
python3 parse_dependencies.py $TYPE --global
if [ -f "linux_dependencies.txt" ]; then
cat linux_dependencies.txt | xargs sudo apt-get install --yes
rm linux_dependencies.txt
Expand All @@ -29,7 +29,7 @@ if [ -f "python_dependencies.txt" ]; then
fi

# Install the dependencies from the work packages
python parse_dependencies.py $TYPE
python3 parse_dependencies.py $TYPE
if [ -f "linux_dependencies.txt" ]; then
cat linux_dependencies.txt | xargs sudo apt-get install --yes
rm linux_dependencies.txt
Expand Down
2 changes: 1 addition & 1 deletion dependencies/install_onnx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ ! -f /usr/local/lib/libonnxruntime.so ]; then


VERSION="1.6.0"
if [[ "$OPENDR_DEVICE" == "cuda" ]]
if [[ "$OPENDR_DEVICE" == "gpu" ]]
then
echo "Downloading and installing onnxruntime (gpu support) ..."
DEVICE="-gpu"
Expand Down
7 changes: 7 additions & 0 deletions dependencies/pip_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
numpy==1.17.5
Cython
torch==1.7.1
wheel
git+https://github.com/cidl-auth/cocoapi@03ee5a19844e253b8365dbbf35c1e5d8ca2e7281#subdirectory=PythonAPI
git+https://github.com/cocodataset/panopticapi.git@7bb4655548f98f3fedc07bf37e9040a992b054b0
git+https://github.com/MatthewHowe/DCNv2@194f5733c667cf13e5bd478a8c5bf27573ffa98c
Loading