{
"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": 140,
"metadata": {
"hideCode": false,
"hideOutput": true,
"hidePrompt": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: plotly in /opt/conda/lib/python3.6/site-packages (4.9.0)\n",
"Requirement already satisfied: six in /opt/conda/lib/python3.6/site-packages (from plotly) (1.14.0)\n",
"Requirement already satisfied: retrying>=1.3.3 in /opt/conda/lib/python3.6/site-packages (from plotly) (1.3.3)\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": [
"Requirement already satisfied: pyquaternion in /opt/conda/lib/python3.6/site-packages (0.9.5)\n",
"Requirement already satisfied: numpy in /opt/conda/lib/python3.6/site-packages (from pyquaternion) (1.15.2)\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",
"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": [
"Requirement already satisfied: xmltodict in /opt/conda/lib/python3.6/site-packages (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": 141,
"metadata": {
"hideCode": true,
"hideOutput": true,
"hidePrompt": false
},
"outputs": [],
"source": [
"sample_scene_data = \"\"\"\n",
"