-
Notifications
You must be signed in to change notification settings - Fork 0
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
16 changed files
with
978 additions
and
71 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
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
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
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
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 @@ | ||
**/*.ckpt | ||
data | ||
ckpt | ||
wandb_ckpt | ||
wandb | ||
.git |
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,7 @@ | ||
{ | ||
"file_format_version" : "1.0.0", | ||
"ICD" : { | ||
"library_path" : "libEGL_nvidia.so.0" | ||
} | ||
} | ||
|
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,76 @@ | ||
FROM nvcr.io/nvidia/pytorch:21.09-py3 | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# dependencies for gym | ||
# | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
libxcursor-dev \ | ||
libxrandr-dev \ | ||
libxinerama-dev \ | ||
libxi-dev \ | ||
mesa-common-dev \ | ||
zip \ | ||
unzip \ | ||
make \ | ||
gcc-8 \ | ||
g++-8 \ | ||
vulkan-utils \ | ||
mesa-vulkan-drivers \ | ||
pigz \ | ||
git \ | ||
libegl1 \ | ||
git-lfs | ||
|
||
# Force gcc 8 to avoid CUDA 10 build issues on newer base OS | ||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 8 | ||
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 8 | ||
|
||
# WAR for eglReleaseThread shutdown crash in libEGL_mesa.so.0 (ensure it's never detected/loaded) | ||
# Can't remove package libegl-mesa0 directly (because of libegl1 which we need) | ||
RUN rm /usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0 /usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0.0.0 /usr/share/glvnd/egl_vendor.d/50_mesa.json | ||
|
||
COPY docker/nvidia_icd.json /usr/share/vulkan/icd.d/nvidia_icd.json | ||
COPY docker/10_nvidia.json /usr/share/glvnd/egl_vendor.d/10_nvidia.json | ||
|
||
RUN groupadd -g 1027 torchuser | ||
RUN useradd -r -u 1027 -g torchuser --create-home torchuser | ||
|
||
ENV PATH="/home/torchuser/.local/bin:$PATH" | ||
|
||
# WORKDIR /home/torchuser/adaptiveAC | ||
|
||
# COPY --chown=torchuser . . | ||
|
||
WORKDIR /home/torchuser | ||
|
||
USER torchuser | ||
|
||
RUN conda create -n aloha python=3.8.10 | ||
|
||
USER root | ||
|
||
RUN chown 1027:1027 /home/torchuser/.conda/envs/.conda_envs_dir_test | ||
|
||
USER torchuser | ||
|
||
# RUN source activate aloha \ | ||
# && pip install torchvision \ | ||
# && pip install torch \ | ||
# && pip install pyquaternion \ | ||
# && pip install pyyaml \ | ||
# && pip install rospkg \ | ||
# && pip install pexpect \ | ||
# && pip install mujoco==2.3.7 \ | ||
# && pip install dm_control==1.0.14 \ | ||
# && pip install opencv-python \ | ||
# && pip install matplotlib \ | ||
# && pip install einops \ | ||
# && pip install packaging \ | ||
# && pip install h5py \ | ||
# && pip install ipython \ | ||
# && cd adaptiveAC/detr && pip install -e . | ||
# RUN cd python && pip install -q -e . | ||
|
||
|
||
ENV NVIDIA_VISIBLE_DEVICES=all NVIDIA_DRIVER_CAPABILITIES=all |
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 @@ | ||
set -e | ||
set -u | ||
SCRIPTROOT="$( cd "$(dirname "$0")" ; pwd -P )" | ||
cd "${SCRIPTROOT}/.." | ||
|
||
docker build --network host -t act -f docker/Dockerfile . |
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,8 @@ | ||
#!/bin/bash | ||
su_=$1 | ||
|
||
if [ "$su_" = "true" ]; then | ||
docker exec -it -u 0 torch_container_gui /bin/bash | ||
else | ||
docker exec -it torch_container_gui /bin/bash | ||
fi |
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,7 @@ | ||
{ | ||
"file_format_version" : "1.0.0", | ||
"ICD": { | ||
"library_path": "libGLX_nvidia.so.0", | ||
"api_version" : "1.1.95" | ||
} | ||
} |
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,52 @@ | ||
#!/bin/bash | ||
set -e | ||
set -u | ||
|
||
if [ $# -eq 0 ] | ||
then | ||
echo "running docker without display" | ||
docker run -it --network=host --gpus=all -v ~/adaptiveAC:/home/torchuser/adaptiveAC/ \ | ||
--name=torch_container act /bin/bash \ | ||
-c "source activate aloha && pip install torchvision==0.14.0 \ | ||
&& pip install torch==1.13.0 \ | ||
&& pip install pyquaternion \ | ||
&& pip install pyyaml \ | ||
&& pip install rospkg \ | ||
&& pip install pexpect \ | ||
&& pip install mujoco==2.3.7 \ | ||
&& pip install dm_control==1.0.14 \ | ||
&& pip install opencv-python \ | ||
&& pip install matplotlib \ | ||
&& pip install einops \ | ||
&& pip install packaging \ | ||
&& pip install h5py \ | ||
&& pip install ipython \ | ||
&& pip install wandb\ | ||
&& cd adaptiveAC/detr && pip install -e . \ | ||
&& tail -f /dev/null" | ||
else | ||
export DISPLAY=$DISPLAY | ||
echo "setting display to $DISPLAY" | ||
xhost + | ||
docker run -it -v "$HOME/.Xauthority:/home/torchuser/.Xauthority:rw" -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY \ | ||
--ipc=host --network=host --privileged=true \ | ||
-v ~/adaptiveAC:/home/torchuser/adaptiveAC/ --gpus=all --name=torch_container_gui act /bin/bash \ | ||
-c "source activate aloha && pip install torchvision==0.14.0 \ | ||
&& pip install torch==1.13.0 \ | ||
&& pip install pyquaternion \ | ||
&& pip install pyyaml \ | ||
&& pip install rospkg \ | ||
&& pip install pexpect \ | ||
&& pip install mujoco==2.3.7 \ | ||
&& pip install dm_control==1.0.14 \ | ||
&& pip install opencv-python \ | ||
&& pip install matplotlib \ | ||
&& pip install einops \ | ||
&& pip install packaging \ | ||
&& pip install h5py \ | ||
&& pip install ipython \ | ||
&& pip install wandb \ | ||
&& cd adaptiveAC/detr && pip install -e . \ | ||
&& tail -f /dev/null" | ||
xhost - | ||
fi |
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
Oops, something went wrong.