{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Exploration of 3D Indoor Scenes Datasets"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Install useful dependencies for data exploration"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"hideCode": false,
"hideOutput": true,
"hidePrompt": false
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.\n",
"Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.\n",
"To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Collecting plotly\n",
" Downloading plotly-4.9.0-py2.py3-none-any.whl (12.9 MB)\n",
"Requirement already satisfied: six in /opt/conda/lib/python3.6/site-packages (from plotly) (1.14.0)\n",
"Collecting retrying>=1.3.3\n",
" Downloading retrying-1.3.3.tar.gz (10 kB)\n",
"Building wheels for collected packages: retrying\n",
" Building wheel for retrying (setup.py): started\n",
" Building wheel for retrying (setup.py): finished with status 'done'\n",
" Created wheel for retrying: filename=retrying-1.3.3-py3-none-any.whl size=11430 sha256=aadcf7c4fb481ad4c17a17895314b11482e582e1588b81c4feca2294d100700d\n",
" Stored in directory: /home/jovyan/.cache/pip/wheels/ac/cb/8a/b27bf6323e2f4c462dcbf77d70b7c5e7868a7fbe12871770cf\n",
"Successfully built retrying\n",
"Installing collected packages: retrying, plotly\n",
"Successfully installed plotly-4.9.0 retrying-1.3.3\n",
"Collecting pyquaternion\n",
" Downloading pyquaternion-0.9.5-py3-none-any.whl (14 kB)\n",
"Requirement already satisfied: numpy in /opt/conda/lib/python3.6/site-packages (from pyquaternion) (1.15.2)\n",
"Installing collected packages: pyquaternion\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.\n",
"Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.\n",
"To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Successfully installed pyquaternion-0.9.5\n",
"Collecting xmltodict\n",
" Downloading xmltodict-0.12.0-py2.py3-none-any.whl (9.2 kB)\n",
"Installing collected packages: xmltodict\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.\n",
"Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.\n",
"To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Successfully installed xmltodict-0.12.0\n"
]
}
],
"source": [
"import pip\n",
"\n",
"def install(package):\n",
" if hasattr(pip, 'main'):\n",
" pip.main(['install', package])\n",
" else:\n",
" pip._internal.main(['install', package])\n",
"\n",
"# install('panda3d')\n",
"# install('ursina')\n",
"# install('ipyvolume')\n",
"install('plotly')\n",
"install('pyquaternion')\n",
"install('xmltodict')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Explore SceneNN scene"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Copy minimalist scene data as string \"sample_scene_data\""
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"hideCode": true,
"hideOutput": true,
"hidePrompt": false
},
"outputs": [],
"source": [
"sample_scene_data = \"\"\"\n",
"