Skip to content

Commit

Permalink
Merge pull request #494 from huggingface/ThomasSimonini/Unit5Update
Browse files Browse the repository at this point in the history
Unit 5: Update Hands on
  • Loading branch information
simoninithomas authored Feb 26, 2024
2 parents 89f68ae + 00c6120 commit c8e9422
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions notebooks/unit5/unit5.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -814,4 +814,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
7 changes: 3 additions & 4 deletions units/en/unit5/hands-on.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.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
Expand Down

0 comments on commit c8e9422

Please sign in to comment.