{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "path = \"/home/bingxuan/VDA/data/SUN/data_manager/Scene hierarchy.xlsx\"\n", "\n", "data = pd.read_excel(path, sheet_name=\"SUN397\")" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | category | \n", "indoor | \n", "outdoor, natural | \n", "outdoor, man-made | \n", "shopping and dining | \n", "workplace (office building, factory, lab, etc.) | \n", "home or hotel | \n", "transportation (vehicle interiors, stations, etc.) | \n", "sports and leisure | \n", "cultural (art, education, religion, etc.) | \n", "water, ice, snow | \n", "mountains, hills, desert, sky | \n", "forest, field, jungle | \n", "man-made elements | \n", "transportation (roads, parking, bridges, boats, airports, etc.) | \n", "cultural or historical building/place | \n", "sports fields, parks, leisure spaces | \n", "industrial and construction | \n", "houses, cabins, gardens, and farms | \n", "commercial buildings, shops, markets, cities, and towns | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | \n", "/a/abbey | \n", "0 | \n", "0 | \n", "1 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "1 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2 | \n", "/a/airplane_cabin | \n", "1 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "1 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
3 | \n", "/a/airport_terminal | \n", "1 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "1 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
4 | \n", "/a/alley | \n", "0 | \n", "0 | \n", "1 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "1 | \n", "
5 | \n", "/a/amphitheater | \n", "0 | \n", "0 | \n", "1 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "1 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "