From 6951882c0c4513e3833e65702e03fb67713365b0 Mon Sep 17 00:00:00 2001 From: LyqSpace Date: Thu, 26 May 2022 21:30:17 -0500 Subject: [PATCH 1/4] Update README.md --- README.md | 4 ++-- batch-train.sh | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 batch-train.sh diff --git a/README.md b/README.md index c6e2b8b5..e01a5189 100644 --- a/README.md +++ b/README.md @@ -44,11 +44,11 @@ docker build -f azure/Dockerfile . -t diffuser ``` docker run -it --rm --gpus all \ --mount type=bind,source=$PWD,target=/home/code \ + --mount type=bind,source=$PWD/logs,target=/logs/docker \ --mount type=bind,source=$HOME/.d4rl,target=/root/.d4rl \ diffuser \ bash -c \ - "export PYTHONPATH=$PYTHONPATH:/home/code && \ - python /home/code/scripts/train.py --dataset hopper-medium-expert-v2 --logbase logs/docker" + "python /home/code/scripts/train.py --dataset hopper-medium-expert-v2 --logbase logs/docker" ``` diff --git a/batch-train.sh b/batch-train.sh new file mode 100644 index 00000000..ea345f04 --- /dev/null +++ b/batch-train.sh @@ -0,0 +1,8 @@ +docker run -it --rm --gpus all \ + --mount type=bind,source=$PWD,target=/home/code \ + --mount type=bind,source=$PWD/logs,target=/logs/docker \ + --mount type=bind,source=/Ship03/dataset/d4rl,target=/root/.d4rl \ + diffuser + # bash -c \ + # "export PYTHONPATH=$PYTHONPATH:/home/code && \ + # python /home/code/scripts/train.py --dataset hopper-medium-expert-v2 --logbase logs/docker" \ No newline at end of file From 3de083c7d4b53628024891add20463a8766e612c Mon Sep 17 00:00:00 2001 From: LyqSpace Date: Thu, 26 May 2022 21:31:56 -0500 Subject: [PATCH 2/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c6e2b8b5..e01a5189 100644 --- a/README.md +++ b/README.md @@ -44,11 +44,11 @@ docker build -f azure/Dockerfile . -t diffuser ``` docker run -it --rm --gpus all \ --mount type=bind,source=$PWD,target=/home/code \ + --mount type=bind,source=$PWD/logs,target=/logs/docker \ --mount type=bind,source=$HOME/.d4rl,target=/root/.d4rl \ diffuser \ bash -c \ - "export PYTHONPATH=$PYTHONPATH:/home/code && \ - python /home/code/scripts/train.py --dataset hopper-medium-expert-v2 --logbase logs/docker" + "python /home/code/scripts/train.py --dataset hopper-medium-expert-v2 --logbase logs/docker" ``` From a85bff884adb49280184ada24a14d0dc4d2c064c Mon Sep 17 00:00:00 2001 From: LyqSpace Date: Thu, 26 May 2022 21:33:02 -0500 Subject: [PATCH 3/4] rm bash --- batch-train.sh | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 batch-train.sh diff --git a/batch-train.sh b/batch-train.sh deleted file mode 100644 index ea345f04..00000000 --- a/batch-train.sh +++ /dev/null @@ -1,8 +0,0 @@ -docker run -it --rm --gpus all \ - --mount type=bind,source=$PWD,target=/home/code \ - --mount type=bind,source=$PWD/logs,target=/logs/docker \ - --mount type=bind,source=/Ship03/dataset/d4rl,target=/root/.d4rl \ - diffuser - # bash -c \ - # "export PYTHONPATH=$PYTHONPATH:/home/code && \ - # python /home/code/scripts/train.py --dataset hopper-medium-expert-v2 --logbase logs/docker" \ No newline at end of file From 9f4da24fb64199a58291772794dfdfb141263ccb Mon Sep 17 00:00:00 2001 From: Yongqing Liang Date: Tue, 31 May 2022 19:28:37 -0500 Subject: [PATCH 4/4] update --- .gitignore | 3 +++ docker-interactive.sh | 1 + 2 files changed, 4 insertions(+) create mode 100644 docker-interactive.sh diff --git a/.gitignore b/.gitignore index 1be77204..6dd52f03 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +.vscode/ +.d4rl/ + bin/ logs/ wandb/ diff --git a/docker-interactive.sh b/docker-interactive.sh new file mode 100644 index 00000000..e6898c99 --- /dev/null +++ b/docker-interactive.sh @@ -0,0 +1 @@ +docker run -it --rm --gpus all --mount type=bind,source=$PWD,target=/home/code --mount type=bind,source=$PWD/logs,target=/logs/docker --mount type=bind,source=$PWD/.d4rl,target=/root/.d4rl -p 1222:1222 diffuser \ No newline at end of file