From 6ab84a4e8e8586e836766e433e9844baa225ae99 Mon Sep 17 00:00:00 2001 From: Thomas Simonini Date: Fri, 16 Feb 2024 17:35:15 +0100 Subject: [PATCH] Using wget instead --- notebooks/bonus-unit1/bonus-unit1.ipynb | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/notebooks/bonus-unit1/bonus-unit1.ipynb b/notebooks/bonus-unit1/bonus-unit1.ipynb index 58f20cf6..39e32cbc 100644 --- a/notebooks/bonus-unit1/bonus-unit1.ipynb +++ b/notebooks/bonus-unit1/bonus-unit1.ipynb @@ -217,24 +217,24 @@ ] }, { - "cell_type": "code", + "cell_type": "markdown", "source": [ - "!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=1zv3M95ZJTWHUVOWT6ckq_cm98nft8gdF' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\\1\\n/p')&id=1zv3M95ZJTWHUVOWT6ckq_cm98nft8gdF\" -O ./trained-envs-executables/linux/Huggy.zip && rm -rf /tmp/cookies.txt" + "We downloaded the file Huggy.zip from https://github.com/huggingface/Huggy using `wget`" ], "metadata": { - "id": "EB-G-80GsxYN" - }, - "execution_count": null, - "outputs": [] + "id": "IHh_LXsRrrbM" + } }, { - "cell_type": "markdown", + "cell_type": "code", + "source": [ + "!wget \"https://github.com/huggingface/Huggy/raw/main/Huggy.zip\" -O ./trained-envs-executables/linux/Huggy.zip" + ], "metadata": { - "id": "jsoZGxr1MIXY" + "id": "8xNAD1tRpy0_" }, - "source": [ - "Download the file Huggy.zip from https://drive.google.com/uc?export=download&id=1zv3M95ZJTWHUVOWT6ckq_cm98nft8gdF 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/)" - ] + "execution_count": null, + "outputs": [] }, { "cell_type": "code", @@ -441,7 +441,7 @@ }, "outputs": [], "source": [ - "!mlagents-learn ./config/ppo/Huggy.yaml --env=./trained-envs-executables/linux/Huggy/Huggy --run-id=\"Huggy\" --no-graphics" + "!mlagents-learn ./config/ppo/Huggy.yaml --env=./trained-envs-executables/linux/Huggy/Huggy --run-id=\"Huggy2\" --no-graphics" ] }, {