{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "/data/projects/yejin/VerbCentric_RIS/ReferFormer\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "/home/yejin/.conda/envs/VerbCentric_RIS/lib/python3.9/site-packages/IPython/core/magics/osm.py:417: UserWarning: using dhist requires you to install the `pickleshare` library.\n", " self.shell.db['dhist'] = compress_dhist(dhist)[-100:]\n" ] } ], "source": [ "%cd /home/yejin/data/projects/yejin/VerbCentric_RIS/ReferFormer" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 1. manual 필터링 반영" ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import re\n", "import json" ] }, { "cell_type": "code", "execution_count": 31, "metadata": {}, "outputs": [], "source": [ "selected_frames_df = pd.read_json(\"/home/yejin/data/dataset/VRIS/mbench/ytvos/selected_instances.jsonl\", lines = True)\n", "manual_selected = pd.read_json(\"manual_selected_frames.jsonl\", lines = True)" ] }, { "cell_type": "code", "execution_count": 32, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | segmentation | \n", "bbox | \n", "area | \n", "file_name | \n", "height | \n", "width | \n", "label | \n", "category_name | \n", "sentences | \n", "
---|---|---|---|---|---|---|---|---|---|
0 | \n", "[[1081.0, 719.5, 1051.0, 719.5, 1050.5, 716.0,... | \n", "[708.5, 156.5, 420.0, 563.0] | \n", "131357.25 | \n", "00917dcfc4_00000.png | \n", "720 | \n", "1280 | \n", "64 | \n", "zebra | \n", "{'tokens': ['a', 'zebra', 'on', 'the', 'right'... | \n", "