You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
157 lines
2.2 MiB
157 lines
2.2 MiB
4 years ago
|
{
|
||
|
"metadata": {
|
||
|
"language_info": {
|
||
|
"codemirror_mode": {
|
||
|
"name": "ipython",
|
||
|
"version": 3
|
||
|
},
|
||
|
"file_extension": ".py",
|
||
|
"mimetype": "text/x-python",
|
||
|
"name": "python",
|
||
|
"nbconvert_exporter": "python",
|
||
|
"pygments_lexer": "ipython3",
|
||
|
"version": "3.8.8-final"
|
||
|
},
|
||
|
"orig_nbformat": 2,
|
||
|
"kernelspec": {
|
||
|
"name": "python388jvsc74a57bd0e2d1507a0fcefcbd70c2e8d5c2edae879585b2c8df0be6cdbe280bf251175c7f",
|
||
|
"display_name": "Python 3.8.8 64-bit ('loftr': conda)"
|
||
|
}
|
||
|
},
|
||
|
"nbformat": 4,
|
||
|
"nbformat_minor": 2,
|
||
|
"cells": [
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 1,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"%load_ext autoreload\n",
|
||
|
"%autoreload 2\n",
|
||
|
"%matplotlib inline\n",
|
||
|
"import os\n",
|
||
|
"os.chdir(\"..\")\n",
|
||
|
"\n",
|
||
|
"import numpy as np\n",
|
||
|
"import matplotlib.pyplot as plt\n",
|
||
|
"import cv2\n",
|
||
|
"from pathlib import Path\n",
|
||
|
"from src.utils.plotting import make_matching_figure, error_colormap"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 2,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"def make_prediction_and_evaluation_plot(root_dir, pe, path=None, source='ScanNet'):\n",
|
||
|
" img0 = cv2.imread(str(root_dir / pe['pair_names'][0]), cv2.IMREAD_GRAYSCALE)\n",
|
||
|
" img1 = cv2.imread(str(root_dir / pe['pair_names'][1]), cv2.IMREAD_GRAYSCALE)\n",
|
||
|
" if source == 'ScanNet':\n",
|
||
|
" img0 = cv2.resize(img0, (640, 480))\n",
|
||
|
" img1 = cv2.resize(img1, (640, 480))\n",
|
||
|
"\n",
|
||
|
" thr = 5e-4\n",
|
||
|
" mkpts0 = pe['mkpts0_f']\n",
|
||
|
" mkpts1 = pe['mkpts1_f']\n",
|
||
|
" color = error_colormap(pe['epi_errs'], thr, alpha=0.3)\n",
|
||
|
"\n",
|
||
|
" text = [\n",
|
||
|
" f\"LoFTR\",\n",
|
||
|
" f\"#Matches: {len(mkpts0)}\",\n",
|
||
|
" f\"$\\\\Delta$R:{pe['R_errs']:.2f}°, $\\\\Delta$t:{pe['t_errs']:.2f}°\",\n",
|
||
|
" ]\n",
|
||
|
"\n",
|
||
|
" if path:\n",
|
||
|
" make_matching_figure(img0, img1, mkpts0, mkpts1, color, text, path)\n",
|
||
|
" else:\n",
|
||
|
" return make_matching_figure(img0, img1, mkpts0, mkpts1, color, text)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"source": [
|
||
|
"## Visualization on ScanNet\n",
|
||
|
"- Prediction and Evaluation"
|
||
|
],
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {}
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 3,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"root_dir = Path(\"/data/scannet/scannet_test_1500\") # Scannet\n",
|
||
|
"npy_path = \"dump/loftr_ds_indoor/LoFTR_pred_eval.npy\"\n",
|
||
|
"dumps = np.load(npy_path, allow_pickle=True)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 4,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"output_type": "display_data",
|
||
|
"data": {
|
||
|
"text/plain": "<Figure size 750x450 with 2 Axes>",
|
||
|
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<svg height=\"273.15pt\" version=\"1.1\" viewBox=\"0 0 714.4 273.15\" width=\"714.4pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <metadata>\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n <cc:Work>\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\n <dc:date>2021-04-06T13:59:32.371950</dc:date>\n <dc:format>image/svg+xml</dc:format>\n <dc:creator>\n <cc:Agent>\n <dc:title>Matplotlib v3.4.1, https://matplotlib.org/</dc:title>\n </cc:Agent>\n </dc:creator>\n </cc:Work>\n </rdf:RDF>\n </metadata>\n <defs>\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\n </defs>\n <g id=\"figure_1\">\n <g id=\"patch_1\">\n <path d=\"M 0 273.15 \nL 714.4 273.15 \nL 714.4 0 \nL 0 0 \nz\n\" style=\"fill:none;\"/>\n </g>\n <g id=\"axes_1\">\n <g id=\"patch_2\">\n <path d=\"M 7.2 265.95 \nL 352.2 265.95 \nL 352.2 7.2 \nL 7.2 7.2 \nz\n\" style=\"fill:#ffffff;\"/>\n </g>\n <g clip-path=\"url(#p303283995a)\">\n <image height=\"259.2\" id=\"image6bdcd4a73f\" transform=\"scale(1 -1)translate(0 -259.2)\" width=\"345.6\" x=\"7.2\" xlink:href=\"data:image/png;base64,\niVBORw0KGgoAAAANSUhEUgAAAWgAAAEOCAYAAACkSI2SAAEAAElEQVR4nOz9a49kSXKdC1tcMu55q1tX9VT3NKc55IxIUQQkQaAA/gn9TP0OfaUEiiQ41HBmeobTl+qqrLzGPSPifEguz2evMI/sO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V
|
||
|
},
|
||
|
"metadata": {}
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"fig = make_prediction_and_evaluation_plot(root_dir, dumps[2], source='ScanNet')"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"source": [
|
||
|
"## Visualization on MegaDepth\n",
|
||
|
"- Prediction and Evaluation"
|
||
|
],
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {}
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 5,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"root_dir = Path(\"/data/MegaDepth\") # MegaDepth\n",
|
||
|
"npy_path = \"dump/loftr_ds_outdoor/LoFTR_pred_eval.npy\"\n",
|
||
|
"dumps = np.load(npy_path, allow_pickle=True)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 6,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"output_type": "display_data",
|
||
|
"data": {
|
||
|
"text/plain": "<Figure size 750x450 with 2 Axes>",
|
||
|
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<svg height=\"273.082565pt\" version=\"1.1\" viewBox=\"0 0 714.4 273.082565\" width=\"714.4pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <metadata>\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n <cc:Work>\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\n <dc:date>2021-04-06T13:59:34.093609</dc:date>\n <dc:format>image/svg+xml</dc:format>\n <dc:creator>\n <cc:Agent>\n <dc:title>Matplotlib v3.4.1, https://matplotlib.org/</dc:title>\n </cc:Agent>\n </dc:creator>\n </cc:Work>\n </rdf:RDF>\n </metadata>\n <defs>\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\n </defs>\n <g id=\"figure_1\">\n <g id=\"patch_1\">\n <path d=\"M 0 273.082565 \nL 714.4 273.082565 \nL 714.4 0 \nL 0 0 \nz\n\" style=\"fill:none;\"/>\n </g>\n <g id=\"axes_1\">\n <g id=\"patch_2\">\n <path d=\"M 7.2 265.882565 \nL 352.2 265.882565 \nL 352.2 7.2 \nL 7.2 7.2 \nz\n\" style=\"fill:#ffffff;\"/>\n </g>\n <g clip-path=\"url(#p65ce5403eb)\">\n <image height=\"259.2\" id=\"image798fc3351a\" transform=\"scale(1 -1)translate(0 -259.2)\" width=\"345.6\" x=\"7.2\" xlink:href=\"data:image/png;base64,\niVBORw0KGgoAAAANSUhEUgAAAWgAAAEOCAYAAACkSI2SAADMy0lEQVR4nO29WYxl13Xfve5Q463h1tTVA7vJFskmRdKSSMsmNX2WHVkyLMty4iSSBTsPgWI4dh6E5DkveUkejDiIYSAIDAeBDQuO4wix7NiiINmyJFOyBg8yJUokRYpsdpPsruqabw13+B7Kv13/s2qfc8+599bQFBdQqKp7z9ln77XXXuu/hr1P6e1vf3vHzKxcLluz2TQzs+3tbYMuXbpk/+bf/BsbHR21LOp0OmZmViqVcn2edn+73bY/+IM/sN///d+3sbGx8Nx2u23NZtOWl5dtb2/PKpWKlctlq1Qq1m63rVqt2ujoqI2MjFi1WrVyuRx+qtWqTU9P2+joqDWbTWs2m7a3t2ftdttarZaVSiWrVqtmZjYyMmLtdtsqlYpVq1Vrt9vWbretXC7b0NBQ+LtUKlmr1bJKpWKlUsmazaZVKpXAw/vuu89+9md/1oaGhjLHzdi/8Y1v2H/8j//Rtra2rN1u28TEROgTvOl0Orazs2MbGxvWbrfNzBLPN7PQz5GRERsaGrJqtRq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mLMvi18XveXDYLhXim57la0lyqMisnK7K8pxmjR+HlV2XZ9r1w3BtzAqxnkbBUSrTBBOMiqSVhixpiJ8mMLagi/4zefxx5QFajncYvk5JFZsnfdniLaaVpxFlq1vaRJylDUbxN76boJr0sk4WWTXmNIjtydLPIosqvaxxR/GpE+OPYsm9E/s8dEjzAc8LkzpNq8OkehpFPtE6mrSKWWQbJVnJZegstyq/bVVY8beOBI/DQqxKJ8l6rrL432vW6nutPBNMIJN0U19+k/R0uGNq7mFbscT85H+jpKlDHnJ3J8jyUSFMRUN+k2deH7KiYeKDXASOquJ1L+4jyQoTH9G0+Fnr0FRJHVWRS4OKfOu+66z9MsFOs7aryPq4rOg6lxuV5f5eJecTmOGozb1HTZ6jApErjuKamad+M5+DLgvSbDYxMzODGzduAADOnz+PtbU1HBwc8DDVahWnTp0CANy4cQO9Xi+WRr1ex/LyMgDg2rVrGAwGsftJha9Wq6hWq9jZ2TEpSgwsz6Tz2ZOQdwOBCarVKmZmZlAqlUApRb/fx+7uLlzXjYWbmppCs9mE4zjwPA+tVgv7+/uxMGfOnNHms7GxgW63W7j8RwWU0tjEfCfJoQmxMlnZOAoEN8k6n3d1Zhw
|
||
|
},
|
||
|
"metadata": {}
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"fig = make_prediction_and_evaluation_plot(root_dir, dumps[51], source='MegaDepth')"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
}
|
||
|
]
|
||
|
}
|