diff --git a/unit1/unit1_bonus/Wandb Logging.ipynb b/unit1/unit1_bonus/Wandb Logging.ipynb index 9d872cd..cc89b9e 100644 --- a/unit1/unit1_bonus/Wandb Logging.ipynb +++ b/unit1/unit1_bonus/Wandb Logging.ipynb @@ -406,7 +406,7 @@ }, { "cell_type": "markdown", - "id": "4f448887", + "id": "629f050a", "metadata": {}, "source": [ "## Package to 🤗 hub" @@ -415,7 +415,7 @@ { "cell_type": "code", "execution_count": 10, - "id": "f8d1b517", + "id": "8be43170", "metadata": { "ExecuteTime": { "end_time": "2022-05-08T01:13:41.386029Z", @@ -440,7 +440,7 @@ { "cell_type": "code", "execution_count": null, - "id": "5f93f140", + "id": "481c5eae", "metadata": {}, "outputs": [], "source": [ @@ -450,7 +450,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f0461e29", + "id": "91d45e2a", "metadata": {}, "outputs": [], "source": [ @@ -461,206 +461,15 @@ }, { "cell_type": "code", - "execution_count": 11, - "id": "7d7ea1b3", + "execution_count": null, + "id": "0192bfe0", "metadata": { "ExecuteTime": { "end_time": "2022-05-08T01:14:35.254796Z", "start_time": "2022-05-08T01:13:43.366135Z" } }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\u001b[38;5;4mℹ This function will save, evaluate, generate a video of your agent,\n", - "create a model card and push everything to the hub. It might take up to 1min.\n", - "This is a work in progress: If you encounter a bug, please open an issue and use\n", - "push_to_hub instead.\u001b[0m\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/home/venom/miniconda3/envs/RL/lib/python3.7/site-packages/huggingface_hub/hf_api.py:82: FutureWarning: `name` and `organization` input arguments are deprecated and will be removed in v0.7. Pass `repo_id` instead.\n", - " FutureWarning,\n", - "/home/venom/Desktop/deep-rl-class/unit1/unit1_bonus/hub/LunarLander_v2_PPO_wandb is already a clone of https://huggingface.co/SuperSecureHuman/LunarLander_v2_PPO_wandb. Make sure you pull the latest changes with `repo.git_pull()`.\n", - "/home/venom/miniconda3/envs/RL/lib/python3.7/site-packages/stable_baselines3/common/evaluation.py:69: UserWarning: Evaluation environment is not wrapped with a ``Monitor`` wrapper. This may result in reporting modified episode lengths and rewards, if other wrappers happen to modify these. Consider wrapping environment first with ``Monitor`` wrapper.\n", - " UserWarning,\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Saving video to /home/venom/Desktop/deep-rl-class/unit1/unit1_bonus/-step-0-to-step-1000.mp4\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers\n", - " built with gcc 7.3.0 (crosstool-NG 1.23.0.449-a04d0)\n", - " configuration: --prefix=/home/venom/miniconda3/envs/RL --cc=/tmp/build/80754af9/ffmpeg_1587154242452/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc --disable-doc --enable-avresample --enable-gmp --enable-hardcoded-tables --enable-libfreetype --enable-libvpx --enable-pthreads --enable-libopus --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-static --enable-version3 --enable-zlib --enable-libmp3lame --disable-nonfree --enable-gpl --enable-gnutls --disable-openssl --enable-libopenh264 --enable-libx264\n", - " libavutil 56. 31.100 / 56. 31.100\n", - " libavcodec 58. 54.100 / 58. 54.100\n", - " libavformat 58. 29.100 / 58. 29.100\n", - " libavdevice 58. 8.100 / 58. 8.100\n", - " libavfilter 7. 57.100 / 7. 57.100\n", - " libavresample 4. 0. 0 / 4. 0. 0\n", - " libswscale 5. 5.100 / 5. 5.100\n", - " libswresample 3. 5.100 / 3. 5.100\n", - " libpostproc 55. 5.100 / 55. 5.100\n", - "Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './test.mp4':\n", - " Metadata:\n", - " major_brand : isom\n", - " minor_version : 512\n", - " compatible_brands: isomiso2avc1mp41\n", - " encoder : Lavf58.29.100\n", - " Duration: 00:00:20.02, start: 0.000000, bitrate: 39 kb/s\n", - " Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 600x400, 34 kb/s, 50 fps, 50 tbr, 12800 tbn, 100 tbc (default)\n", - " Metadata:\n", - " handler_name : VideoHandler\n", - "Stream mapping:\n", - " Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))\n", - "Press [q] to stop, [?] for help\n", - "[libx264 @ 0x560e05024ec0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512\n", - "[libx264 @ 0x560e05024ec0] profile High, level 3.1, 4:2:0, 8-bit\n", - "[libx264 @ 0x560e05024ec0] 264 - core 157 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00\n", - "Output #0, mp4, to 'replay.mp4':\n", - " Metadata:\n", - " major_brand : isom\n", - " minor_version : 512\n", - " compatible_brands: isomiso2avc1mp41\n", - " encoder : Lavf58.29.100\n", - " Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 600x400, q=-1--1, 50 fps, 12800 tbn, 50 tbc (default)\n", - " Metadata:\n", - " handler_name : VideoHandler\n", - " encoder : Lavc58.54.100 libx264\n", - " Side data:\n", - " cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1\n", - "frame= 1001 fps=0.0 q=-1.0 Lsize= 94kB time=00:00:19.96 bitrate= 38.7kbits/s speed=27.4x \n", - "video:82kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 15.259376%\n", - "[libx264 @ 0x560e05024ec0] frame I:5 Avg QP:10.02 size: 1676\n", - "[libx264 @ 0x560e05024ec0] frame P:259 Avg QP:17.41 size: 99\n", - "[libx264 @ 0x560e05024ec0] frame B:737 Avg QP:20.72 size: 67\n", - "[libx264 @ 0x560e05024ec0] consecutive B-frames: 1.0% 1.8% 2.1% 95.1%\n", - "[libx264 @ 0x560e05024ec0] mb I I16..4: 87.6% 7.3% 5.0%\n", - "[libx264 @ 0x560e05024ec0] mb P I16..4: 0.1% 0.3% 0.1% P16..4: 0.9% 0.1% 0.0% 0.0% 0.0% skip:98.5%\n", - "[libx264 @ 0x560e05024ec0] mb B I16..4: 0.0% 0.0% 0.1% B16..8: 1.2% 0.1% 0.0% direct: 0.0% skip:98.6% L0:57.8% L1:41.6% BI: 0.5%\n", - "[libx264 @ 0x560e05024ec0] 8x8 transform intra:17.5% inter:12.1%\n", - "[libx264 @ 0x560e05024ec0] coded y,uvDC,uvAC intra: 6.9% 9.7% 9.3% inter: 0.1% 0.1% 0.0%\n", - "[libx264 @ 0x560e05024ec0] i16 v,h,dc,p: 89% 5% 6% 0%\n", - "[libx264 @ 0x560e05024ec0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 8% 65% 0% 0% 0% 0% 0% 0%\n", - "[libx264 @ 0x560e05024ec0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 14% 60% 2% 2% 2% 3% 2% 3%\n", - "[libx264 @ 0x560e05024ec0] i8c dc,h,v,p: 96% 3% 2% 0%\n", - "[libx264 @ 0x560e05024ec0] Weighted P-Frames: Y:0.0% UV:0.0%\n", - "[libx264 @ 0x560e05024ec0] ref P L0: 76.2% 0.8% 16.4% 6.6%\n", - "[libx264 @ 0x560e05024ec0] ref B L0: 62.0% 34.4% 3.7%\n", - "[libx264 @ 0x560e05024ec0] ref B L1: 94.1% 5.9%\n", - "[libx264 @ 0x560e05024ec0] kb/s:33.21\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\u001b[38;5;4mℹ Pushing repo LunarLander_v2_PPO_wandb to the Hugging Face Hub\u001b[0m\n" - ] - }, - { - "data": { - "application/vnd.jupyter.widget-view+json": { - "model_id": "ee4b1a1441da4bff8a0a30cbfaa79d54", - "version_major": 2, - "version_minor": 0 - }, - "text/plain": [ - "Upload file PPO-LunarLander-v2.zip: 23%|##2 | 32.0k/141k [00:00 main\n", - "\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\u001b[38;5;4mℹ Your model is pushed to the hub. You can view your model here:\n", - "https://huggingface.co/SuperSecureHuman/LunarLander_v2_PPO_wandb\u001b[0m\n" - ] - } - ], + "outputs": [], "source": [ "from huggingface_sb3 import package_to_hub\n", "\n", @@ -690,7 +499,7 @@ "id": "9368a9f9", "metadata": {}, "source": [ - "## Congarts!\n", + "## Congrats!\n", "\n", "Now you have now started to use wandb in your project. Do checkout the docs to know what are the other amazing stuff it is capable off!" ]