From ce874c8d3417f31d4ae9385bcae2ce325006a547 Mon Sep 17 00:00:00 2001 From: Thomas Simonini Date: Tue, 30 Aug 2022 09:29:11 +0200 Subject: [PATCH] Update colab gym render installation + leaderboard link --- unit1/unit1.ipynb | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/unit1/unit1.ipynb b/unit1/unit1.ipynb index 6928b44..dc9f7b9 100644 --- a/unit1/unit1.ipynb +++ b/unit1/unit1.ipynb @@ -3,8 +3,8 @@ { "cell_type": "markdown", "metadata": { - "colab_type": "text", - "id": "view-in-github" + "id": "view-in-github", + "colab_type": "text" }, "source": [ "\"Open" @@ -776,7 +776,7 @@ "- You can **showcase our work** 🔥\n", "- You can **visualize your agent playing** 👀\n", "- You can **share with the community an agent that others can use** 💾\n", - "- You can **access a leaderboard 🏆 to see how well your agent is performing compared to your classmates** 👉 https://huggingface.co/spaces/ThomasSimonini/Lunar-Lander-Leaderboard\n" + "- You can **access a leaderboard 🏆 to see how well your agent is performing compared to your classmates** 👉 https://huggingface.co/spaces/huggingface-projects/Deep-Reinforcement-Learning-Leaderboard\n" ] }, { @@ -973,7 +973,7 @@ "\n", "Under the hood, the Hub uses git-based repositories (don't worry if you don't know what git is), which means you can update the model with new versions as you experiment and improve your agent.\n", "\n", - "Compare the results of your LunarLander-v2 with your classmates using the leaderboard 🏆 👉 https://huggingface.co/spaces/ThomasSimonini/Lunar-Lander-Leaderboard" + "Compare the results of your LunarLander-v2 with your classmates using the leaderboard 🏆 👉 https://huggingface.co/spaces/huggingface-projects/Deep-Reinforcement-Learning-Leaderboard" ] }, { @@ -1063,9 +1063,29 @@ "source": [ "!pip install gym pyvirtualdisplay > /dev/null 2>&1\n", "!apt-get install -y xvfb python-opengl ffmpeg > /dev/null 2>&1\n", - "!pip install colabgymrender==1.0.2" + "!pip install -U colabgymrender" ] }, + { + "cell_type": "markdown", + "source": [ + "If you have a runtime bug `RuntimeError: imageio.ffmpeg.download() has been deprecated. Use 'pip install imageio-ffmpeg' instead.'` here please install this package and click on restart button after the installation" + ], + "metadata": { + "id": "XAq_Fosen9Z7" + } + }, + { + "cell_type": "code", + "source": [ + "!pip install imageio==2.4.1" + ], + "metadata": { + "id": "3wmUjb5LoCiK" + }, + "execution_count": null, + "outputs": [] + }, { "cell_type": "code", "execution_count": null, @@ -1157,10 +1177,10 @@ "accelerator": "GPU", "colab": { "collapsed_sections": [], - "include_colab_link": true, "name": "Copie de Unit 1: Train your first Deep Reinforcement Learning Agent 🚀.ipynb", "private_outputs": true, - "provenance": [] + "provenance": [], + "include_colab_link": true }, "gpuClass": "standard", "kernelspec": { @@ -1173,4 +1193,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} +} \ No newline at end of file