Created
February 17, 2021 05:48
-
-
Save aerinkim/55a97dd24e136416bbd59bbd1b8e7a71 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stderr", | |
"output_type": "stream", | |
"text": [ | |
"Bad val 'GTKCairo' on line #4\n", | |
"\t\"backend: GTKCairo\n", | |
"\"\n", | |
"\tin file \"/Users/aerinkim/.matplotlib/matplotlibrc\"\n", | |
"\tKey backend: Unrecognized backend string 'gtkcairo': valid strings are ['GTK3Agg', 'GTK3Cairo', 'MacOSX', 'nbAgg', 'Qt4Agg', 'Qt4Cairo', 'Qt5Agg', 'Qt5Cairo', 'TkAgg', 'TkCairo', 'WebAgg', 'WX', 'WXAgg', 'WXCairo', 'agg', 'cairo', 'pdf', 'pgf', 'ps', 'svg', 'template']\n" | |
] | |
} | |
], | |
"source": [ | |
"import argoverse\n", | |
"from argoverse.data_loading.argoverse_tracking_loader import ArgoverseTrackingLoader\n", | |
"%matplotlib inline\n", | |
"import matplotlib\n", | |
"import matplotlib.pyplot as plt\n", | |
"from PIL import Image\n", | |
"from mpl_toolkits.mplot3d import Axes3D\n", | |
"import numpy as np\n", | |
"from argoverse.utils.cv2_plotting_utils import plot_bbox_polygon_cv2\n", | |
"\n", | |
"#set root_dir to the correct path to your dataset folder\n", | |
"root_dir = '../argoverse-tracking/sample/'\n", | |
"\n", | |
"argoverse_loader = ArgoverseTrackingLoader(root_dir)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 2, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"log_id = 'c6911883-1843-3727-8eaa-41dc8cda8993'\n", | |
"idx = 77\n", | |
"camera = argoverse_loader.CAMERA_LIST[0]\n", | |
"\n", | |
"import argoverse.visualization.visualization_utils as viz_util\n", | |
"argoverse_data = argoverse_loader.get(log_id)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 3, | |
"metadata": { | |
"scrolled": true | |
}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
" ------------------------------------------------------------------------\n", | |
" ------------------------- Ring Cameras ---------------------------------\n", | |
" ------------------------------------------------------------------------\n", | |
"\n" | |
] | |
}, | |
{ | |
"data": { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment