From 0535a45230d4b6c976f12693cae70eb9fd86e814 Mon Sep 17 00:00:00 2001 From: Thomas Simonini Date: Mon, 26 Feb 2024 09:59:54 +0100 Subject: [PATCH 1/3] Update hands-on.mdx * Change pyramids environment --- units/en/unit5/hands-on.mdx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/units/en/unit5/hands-on.mdx b/units/en/unit5/hands-on.mdx index cd4a1574..15c70efe 100644 --- a/units/en/unit5/hands-on.mdx +++ b/units/en/unit5/hands-on.mdx @@ -288,17 +288,16 @@ Now let's try a more challenging environment called Pyramids. - We need to download it and place it into `./training-envs-executables/linux/` - We use a linux executable because we're using colab, and the colab machine's OS is Ubuntu (linux) -Download the file Pyramids.zip from https://drive.google.com/uc?export=download&id=1UiFNdKlsH0NTu32xV-giYUEVKV4-vc7H using `wget`. Check out the full solution to download large files from GDrive [here](https://bcrf.biochem.wisc.edu/2021/02/05/download-google-drive-files-using-wget/) +We downloaded the file Pyramids-linux.zip from from https://huggingface.co/spaces/unity/ML-Agents-Pyramids/resolve/main/Pyramids.zip using `wget` ```python -!wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1UiFNdKlsH0NTu32xV-giYUEVKV4-vc7H' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1UiFNdKlsH0NTu32xV-giYUEVKV4-vc7H" -O ./training-envs-executables/linux/Pyramids.zip && rm -rf /tmp/cookies.txt +wget "https://huggingface.co/spaces/unity/ML-Agents-Pyramids/resolve/main/Pyramids.zip" -O ./training-envs-executables/linux/Pyramids.zip ``` Unzip it ```python -%%capture -!unzip -d ./training-envs-executables/linux/ ./training-envs-executables/linux/Pyramids.zip +unzip -d ./training-envs-executables/linux/ ./training-envs-executables/linux/Pyramids.zip ``` Make sure your file is accessible From 8cde698f60850bdddd782ebd961de8233d6a1c07 Mon Sep 17 00:00:00 2001 From: Thomas Simonini Date: Mon, 26 Feb 2024 10:02:14 +0100 Subject: [PATCH 2/3] Update unit5.ipynb --- notebooks/unit5/unit5.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notebooks/unit5/unit5.ipynb b/notebooks/unit5/unit5.ipynb index 622960e5..633d2049 100644 --- a/notebooks/unit5/unit5.ipynb +++ b/notebooks/unit5/unit5.ipynb @@ -601,7 +601,7 @@ { "cell_type": "markdown", "source": [ - "We downloaded the file Pyramids-linux.zip from from https://huggingface.co/spaces/unity/ML-Agents-Pyramids/resolve/main/Pyramids-linux.zip using `wget`" + "We downloaded the file Pyramids.zip from from https://huggingface.co/spaces/unity/ML-Agents-Pyramids/resolve/main/Pyramids.zip using `wget`" ], "metadata": { "id": "x2C48SGZjZYw" @@ -814,4 +814,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +} From 00c6120fe67dde9fed96c2cbd6ff34b46adb6f14 Mon Sep 17 00:00:00 2001 From: Thomas Simonini Date: Mon, 26 Feb 2024 10:10:56 +0100 Subject: [PATCH 3/3] Update hands-on.mdx --- units/en/unit5/hands-on.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/units/en/unit5/hands-on.mdx b/units/en/unit5/hands-on.mdx index 15c70efe..1b9dfc35 100644 --- a/units/en/unit5/hands-on.mdx +++ b/units/en/unit5/hands-on.mdx @@ -288,7 +288,7 @@ Now let's try a more challenging environment called Pyramids. - We need to download it and place it into `./training-envs-executables/linux/` - We use a linux executable because we're using colab, and the colab machine's OS is Ubuntu (linux) -We downloaded the file Pyramids-linux.zip from from https://huggingface.co/spaces/unity/ML-Agents-Pyramids/resolve/main/Pyramids.zip using `wget` +We downloaded the file Pyramids.zip from from https://huggingface.co/spaces/unity/ML-Agents-Pyramids/resolve/main/Pyramids.zip using `wget` ```python wget "https://huggingface.co/spaces/unity/ML-Agents-Pyramids/resolve/main/Pyramids.zip" -O ./training-envs-executables/linux/Pyramids.zip