Skip to content

Commit

Permalink
Add code without changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rlorenzo committed Dec 17, 2024
1 parent fdf0426 commit cad1eb5
Show file tree
Hide file tree
Showing 297 changed files with 63,275 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.pyc
*.pth
*.pt
*.zip
*.deb
*.bin
*.onnx
58 changes: 58 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
ARG PYTORCH="1.8.0"
ARG CUDA="11.1"
ARG CUDNN="8"

FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel
COPY ./cuda-keyring_1.0-1_all.deb cuda-keyring_1.0-1_all.deb
RUN rm /etc/apt/sources.list.d/cuda.list && rm /etc/apt/sources.list.d/nvidia-ml.list && dpkg -i cuda-keyring_1.0-1_all.deb
RUN apt-get update

RUN apt-get install -y software-properties-common
RUN apt-get update
RUN add-apt-repository ppa:ubuntu-toolchain-r/test
RUN apt install -y gcc-9
RUN apt-get install libstdc++6
RUN apt-get update


ENV TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0+PTX"
ENV TORCH_NVCC_FLAGS="-Xfatbin -compress-all"
ENV CMAKE_PREFIX_PATH="$(dirname $(which conda))/../"

# Refer a advise in the issues page
#RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
#RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub


RUN apt-get update && apt-get install -y git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6 libgl1-mesa-glx\
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Install xtcocotools
RUN pip install cython
RUN pip install xtcocotools

# Install MMCV
RUN pip install mmcv-full==1.3.17 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.8.0/index.html


#System full upgrade
RUN apt-get update && apt-get --with-new-pkgs upgrade -y


#Install for python rgbdetect
RUN pip install mmdet==2.28.2
RUN git clone https://github.com/ViTAE-Transformer/ViTPose/
WORKDIR /workspace/ViTPose
RUN pip install -v -e .
RUN pip install timm==0.4.9 einops
RUN pip install print-color
RUN pip install --extra-index-url https://rospypi.github.io/simple/ rospy
RUN pip install -U --extra-index-url https://rospypi.github.io/simple/_pre sensor_msgs tf2_ros tf2_sensor_msgs tf tf2-py
RUN pip install -U --extra-index-url https://rospypi.github.io/simple/_pre cv_bridge
RUN pip install albumentations==1.1.0
RUN pip install onnxruntime
RUN pip uninstall opencv-python -y
RUN pip install opencv-python==4.10.0.84

WORKDIR /workspace/rgbd_pose_and_depth
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,19 @@ The pipeline consists of the following main components :
- Gaze estimation

## Installation
How to install with docker
How to install with docker and launch interactively

- Build docker

```bash
docker build -t inria_docker:rgbd_detect .
```

- Launch docker

```bash
sh launch.sh
```

## ROS Interface
Input / output topics and format
Expand All @@ -21,3 +33,14 @@ Flags to run with options

## Acknoledgments
MMDet, MMPose, 6DRepNet...


## TODO
- Clean the code of unnecesary options (keep only sixdrep)
- Remove unecessary dependencies
- Keep only rgbd_detect_3d_dir.py
- Add models in external links, LFS or directly from their source in the corresponding repos
- Add a description of all options
- Add ROS interface description
- Add illustration
- Add instructions and `requirements.txt` for local installation
Loading

0 comments on commit cad1eb5

Please sign in to comment.