From 85a08b935d12f8e263c1212e58c2a2df4483fbbb Mon Sep 17 00:00:00 2001 From: Github Actions Bot Date: Mon, 6 Nov 2023 09:15:21 +0000 Subject: [PATCH] style: [CI] cleanup python notebooks --- evaluation/ablation/run-ablation.ipynb | 341 +++---------------------- outputs/run/exit_frame_analysis.ipynb | 27 +- 2 files changed, 39 insertions(+), 329 deletions(-) diff --git a/evaluation/ablation/run-ablation.ipynb b/evaluation/ablation/run-ablation.ipynb index 5a90cd2..c1cae85 100644 --- a/evaluation/ablation/run-ablation.ipynb +++ b/evaluation/ablation/run-ablation.ipynb @@ -2,58 +2,12 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "id": "569e4726-2856-4e5f-a220-e3bef1c110e1", "metadata": { "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Sun Nov 5 18:45:26 2023 \n", - "+---------------------------------------------------------------------------------------+\n", - "| NVIDIA-SMI 530.30.02 Driver Version: 530.30.02 CUDA Version: 12.1 |\n", - "|-----------------------------------------+----------------------+----------------------+\n", - "| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |\n", - "| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |\n", - "| | | MIG M. |\n", - "|=========================================+======================+======================|\n", - "| 0 NVIDIA TITAN Xp On | 00000000:1A:00.0 Off | N/A |\n", - "| 31% 50C P2 60W / 250W| 1916MiB / 12288MiB | 0% Default |\n", - "| | | N/A |\n", - "+-----------------------------------------+----------------------+----------------------+\n", - "| 1 NVIDIA TITAN Xp On | 00000000:1B:00.0 Off | N/A |\n", - "| 23% 28C P8 9W / 250W| 1MiB / 12288MiB | 0% Default |\n", - "| | | N/A |\n", - "+-----------------------------------------+----------------------+----------------------+\n", - "| 2 NVIDIA TITAN Xp On | 00000000:3D:00.0 Off | N/A |\n", - "| 23% 22C P8 9W / 250W| 1MiB / 12288MiB | 0% Default |\n", - "| | | N/A |\n", - "+-----------------------------------------+----------------------+----------------------+\n", - "| 3 NVIDIA TITAN Xp On | 00000000:3E:00.0 Off | N/A |\n", - "| 23% 29C P8 9W / 250W| 1MiB / 12288MiB | 0% Default |\n", - "| | | N/A |\n", - "+-----------------------------------------+----------------------+----------------------+\n", - "| 4 NVIDIA TITAN Xp On | 00000000:88:00.0 Off | N/A |\n", - "| 23% 23C P8 9W / 250W| 1MiB / 12288MiB | 0% Default |\n", - "| | | N/A |\n", - "+-----------------------------------------+----------------------+----------------------+\n", - "| 5 NVIDIA TITAN Xp On | 00000000:89:00.0 Off | N/A |\n", - "| 23% 25C P8 9W / 250W| 1MiB / 12288MiB | 0% Default |\n", - "| | | N/A |\n", - "+-----------------------------------------+----------------------+----------------------+\n", - " \n", - "+---------------------------------------------------------------------------------------+\n", - "| Processes: |\n", - "| GPU GI CI PID Type Process name GPU Memory |\n", - "| ID ID Usage |\n", - "|=======================================================================================|\n", - "+---------------------------------------------------------------------------------------+\n" - ] - } - ], + "outputs": [], "source": [ "import subprocess\n", "import json\n", @@ -79,20 +33,12 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "id": "7bcaf7b9-8b3f-4f2f-ad00-08b197795820", "metadata": { "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "test freddie\n" - ] - } - ], + "outputs": [], "source": [ "hostname = socket.gethostname()\n", "test = hostname.split(\"-\")[-1]\n", @@ -101,20 +47,12 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "df967c40-baae-4473-8ab4-0ddfd630eb59", "metadata": { "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "/home/local/apperception/spatialyze\n" - ] - } - ], + "outputs": [], "source": [ "def is_notebook() -> bool:\n", " try:\n", @@ -144,56 +82,24 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "id": "edb4d993-d0a4-49d5-8b4d-1b3a62f66da4", "metadata": { "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "mobilitydb_chanwutk\n" - ] - }, - { - "data": { - "text/plain": [ - "0" - ] - }, - "execution_count": 4, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "process.wait()" ] }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "id": "ddcd5926-911d-437d-b67f-6814d5eb7c0b", "metadata": { "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "CUDA is available.\n", - " > 0: NVIDIA TITAN Xp\n", - " 1: NVIDIA TITAN Xp\n", - " 2: NVIDIA TITAN Xp\n", - " 3: NVIDIA TITAN Xp\n", - " 4: NVIDIA TITAN Xp\n", - " 5: NVIDIA TITAN Xp\n" - ] - } - ], + "outputs": [], "source": [ "from spatialyze.video_processor.camera_config import camera_config\n", "from spatialyze.video_processor.payload import Payload\n", @@ -204,7 +110,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "id": "863b7bd6-7bc4-4658-bb06-043ba955aef3", "metadata": { "tags": [] @@ -225,7 +131,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "id": "6ee9880e-27d0-47f3-a3dd-36b70d199d8a", "metadata": { "tags": [] @@ -243,7 +149,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": null, "id": "3c4bddca-a1ae-4806-be85-8cf397d01ec9", "metadata": { "tags": [] @@ -256,7 +162,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "id": "6737b34b-d928-45aa-940e-b23a7a6e5eb0", "metadata": { "tags": [] @@ -275,7 +181,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": null, "id": "59907886", "metadata": { "tags": [] @@ -288,7 +194,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "id": "e650e6ca-9d7c-41e9-98ee-f682b399040f", "metadata": { "tags": [] @@ -303,7 +209,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": null, "id": "264c8190-89ee-472a-bd73-d553eb3e3278", "metadata": { "tags": [] @@ -321,21 +227,12 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": null, "id": "355b8977", "metadata": { "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "True\n", - "/data/apperception-data/processed/nuscenes/full-dataset-v1.0/Trainval\n" - ] - } - ], + "outputs": [], "source": [ "NUSCENES_PROCESSED_DATA = \"NUSCENES_PROCESSED_DATA\"\n", "print(NUSCENES_PROCESSED_DATA in os.environ)\n", @@ -344,7 +241,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": null, "id": "00c1dd1e", "metadata": { "tags": [] @@ -360,20 +257,12 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": null, "id": "1f6981ac-60b4-43f4-9c3b-32a4e84e4aa1", "metadata": { "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "0523 0778 467\n" - ] - } - ], + "outputs": [], "source": [ "with open('./data/evaluation/video-samples/boston-seaport.txt', 'r') as f:\n", " sampled_scenes = f.read().split('\\n')\n", @@ -382,7 +271,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": null, "id": "fcb3599c-3807-4044-9636-45b2d94fe7e8", "metadata": { "tags": [] @@ -398,7 +287,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": null, "id": "ad97a25a-0356-4d7e-9096-f26c00d2d9d4", "metadata": { "tags": [] @@ -431,7 +320,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": null, "id": "5d4149a3-43b5-4531-90dd-31dd795bdaa1", "metadata": { "tags": [] @@ -453,7 +342,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": null, "id": "275836d5", "metadata": { "tags": [] @@ -648,7 +537,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": null, "id": "98283938-b68f-4925-a5ef-eee7c6c46c65", "metadata": { "tags": [] @@ -720,7 +609,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": null, "id": "f4adca3d-7963-4dc6-bde1-d0ce107ae959", "metadata": { "tags": [] @@ -857,7 +746,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": null, "id": "653e586a-a98c-4c15-ac5a-17551b3155db", "metadata": { "tags": [] @@ -870,7 +759,7 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": null, "id": "48f7c558-dc6e-4b86-b447-a3ffac74c966", "metadata": { "tags": [] @@ -1010,172 +899,12 @@ }, { "cell_type": "code", - "execution_count": 24, + "execution_count": null, "id": "811c4351-f2a7-478b-b264-69a3e8d75c69", "metadata": { "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "----------- 0 / 2 --- de -----------\n", - "Pipeline P2:\n", - " - DecodeFrame.ParallelDecodeFrame\n", - " - Detection2D.YoloDetection\n", - " - DepthEstimation\n", - " - Detection3D.FromDetection2DAndDepth\n", - " - DetectionEstimation\n", - " - Tracking2D.StrongSORT\n", - " - Tracking3D.FromTracking2DAndDetection3D\n", - "q2-de\n", - "# of total videos: 5100\n", - "# of filtered videos: 60\n", - "# of sliced videos: 60\n" - ] - }, - { - "data": { - "application/vnd.jupyter.widget-view+json": { - "model_id": "f38b1e55761045eeaf0ff56164e7ff03", - "version_major": 2, - "version_minor": 0 - }, - "text/plain": [ - " 0%| | 0/60 [00:00" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "import matplotlib.pyplot as plt\n", "\n",