{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "from nerfstudio.cameras import camera_utils\n",
    "\n",
    "import torch\n",
    "import numpy as np\n",
    "import json"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "target = 'non_scaled_transforms.json'\n",
    "\n",
    "with open(target, 'r') as file1:\n",
    "    data1 = json.load(file1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "sorted_frames = sorted(data1[\"frames\"], key=lambda x: x[\"colmap_im_id\"])\n",
    "\n",
    "poses = []\n",
    "\n",
    "for frame in sorted_frames:\n",
    "    poses.append(np.array(frame[\"transform_matrix\"]))\n",
    "\n",
    "poses_scaled = torch.from_numpy(np.array(poses).astype(np.float32))\n",
    "\n",
    "poses_scaled, transform_matrix = camera_utils.auto_orient_and_center_poses(\n",
    "    poses_scaled,\n",
    "    method=\"up\",\n",
    "    center_method=\"poses\",\n",
    ")\n",
    "\n",
    "# print(poses_scaled)\n",
    "# print(transform_matrix)\n",
    "\n",
    "# Scale poses\n",
    "scale_factor = 1.0\n",
    "# auto_scale_poses:\n",
    "scale_factor /= float(torch.max(torch.abs(poses_scaled[:, :3, 3])))\n",
    "scale_factor *= 1.0\n",
    "\n",
    "poses_scaled[:, :3, 3] *= scale_factor"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "tensor([[ 0.9951,  0.0040, -0.0988,  0.0537],\n",
       "        [ 0.0040,  0.9968,  0.0800,  0.0412],\n",
       "        [ 0.0988, -0.0800,  0.9919,  0.0352]])"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "transform_matrix"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "for idx,frame in enumerate(sorted_frames):\n",
    "    sorted_frames[idx][\"transform_matrix\"] = poses_scaled[idx]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'file_path': 'images/frame_00001.png',\n",
       "  'transform_matrix': tensor([[ 0.6294, -0.1369,  0.7649, -0.0277],\n",
       "          [ 0.7726,  0.0046, -0.6349,  0.0161],\n",
       "          [ 0.0834,  0.9906,  0.1086,  0.0155]]),\n",
       "  'colmap_im_id': 1},\n",
       " {'file_path': 'images/frame_00002.png',\n",
       "  'transform_matrix': tensor([[ 0.6274, -0.1397,  0.7660, -0.0260],\n",
       "          [ 0.7740,  0.0047, -0.6331,  0.0184],\n",
       "          [ 0.0849,  0.9902,  0.1111,  0.0161]]),\n",
       "  'colmap_im_id': 2},\n",
       " {'file_path': 'images/frame_00003.png',\n",
       "  'transform_matrix': tensor([[ 0.6562, -0.1577,  0.7379, -0.0223],\n",
       "          [ 0.7493,  0.0207, -0.6619,  0.0203],\n",
       "          [ 0.0891,  0.9873,  0.1317,  0.0156]]),\n",
       "  'colmap_im_id': 3},\n",
       " {'file_path': 'images/frame_00004.png',\n",
       "  'transform_matrix': tensor([[ 0.7186, -0.1504,  0.6790, -0.0156],\n",
       "          [ 0.6906,  0.0390, -0.7222,  0.0283],\n",
       "          [ 0.0822,  0.9879,  0.1319,  0.0154]]),\n",
       "  'colmap_im_id': 4},\n",
       " {'file_path': 'images/frame_00005.png',\n",
       "  'transform_matrix': tensor([[ 8.1225e-01, -1.3311e-01,  5.6792e-01,  9.8144e-04],\n",
       "          [ 5.7897e-01,  6.5325e-02, -8.1273e-01,  3.9127e-02],\n",
       "          [ 7.1081e-02,  9.8895e-01,  1.3013e-01,  1.5675e-02]]),\n",
       "  'colmap_im_id': 5},\n",
       " {'file_path': 'images/frame_00006.png',\n",
       "  'transform_matrix': tensor([[ 0.8761, -0.1215,  0.4666,  0.0184],\n",
       "          [ 0.4774,  0.0837, -0.8747,  0.0440],\n",
       "          [ 0.0672,  0.9891,  0.1313,  0.0164]]),\n",
       "  'colmap_im_id': 6},\n",
       " {'file_path': 'images/frame_00007.png',\n",
       "  'transform_matrix': tensor([[ 0.9289, -0.1149,  0.3522,  0.0335],\n",
       "          [ 0.3637,  0.1029, -0.9258,  0.0425],\n",
       "          [ 0.0702,  0.9880,  0.1374,  0.0173]]),\n",
       "  'colmap_im_id': 7},\n",
       " {'file_path': 'images/frame_00008.png',\n",
       "  'transform_matrix': tensor([[ 0.9776, -0.0819,  0.1938,  0.0568],\n",
       "          [ 0.2026,  0.1176, -0.9722,  0.0429],\n",
       "          [ 0.0568,  0.9897,  0.1316,  0.0190]]),\n",
       "  'colmap_im_id': 8},\n",
       " {'file_path': 'images/frame_00009.png',\n",
       "  'transform_matrix': tensor([[ 0.9923, -0.0661,  0.1043,  0.0830],\n",
       "          [ 0.1105,  0.0980, -0.9890,  0.0461],\n",
       "          [ 0.0551,  0.9930,  0.1046,  0.0231]]),\n",
       "  'colmap_im_id': 9},\n",
       " {'file_path': 'images/frame_00010.png',\n",
       "  'transform_matrix': tensor([[ 0.9994, -0.0338,  0.0055,  0.1144],\n",
       "          [ 0.0083,  0.0832, -0.9965,  0.0434],\n",
       "          [ 0.0332,  0.9960,  0.0834,  0.0263]]),\n",
       "  'colmap_im_id': 10},\n",
       " {'file_path': 'images/frame_00011.png',\n",
       "  'transform_matrix': tensor([[ 0.9925, -0.0389, -0.1161,  0.1528],\n",
       "          [-0.1114,  0.1069, -0.9880,  0.0456],\n",
       "          [ 0.0509,  0.9935,  0.1017,  0.0255]]),\n",
       "  'colmap_im_id': 11},\n",
       " {'file_path': 'images/frame_00012.png',\n",
       "  'transform_matrix': tensor([[ 0.9793, -0.0381, -0.1989,  0.1618],\n",
       "          [-0.1933,  0.1180, -0.9740,  0.0517],\n",
       "          [ 0.0606,  0.9923,  0.1082,  0.0247]]),\n",
       "  'colmap_im_id': 12},\n",
       " {'file_path': 'images/frame_00013.png',\n",
       "  'transform_matrix': tensor([[ 0.9246,  0.0048, -0.3810,  0.1467],\n",
       "          [-0.3792,  0.1085, -0.9189,  0.0707],\n",
       "          [ 0.0370,  0.9941,  0.1022,  0.0254]]),\n",
       "  'colmap_im_id': 13},\n",
       " {'file_path': 'images/frame_00014.png',\n",
       "  'transform_matrix': tensor([[ 0.8514,  0.0317, -0.5236,  0.1351],\n",
       "          [-0.5235,  0.1137, -0.8444,  0.0844],\n",
       "          [ 0.0327,  0.9930,  0.1134,  0.0248]]),\n",
       "  'colmap_im_id': 14},\n",
       " {'file_path': 'images/frame_00015.png',\n",
       "  'transform_matrix': tensor([[ 0.8031,  0.0552, -0.5933,  0.1605],\n",
       "          [-0.5948,  0.1327, -0.7928,  0.0960],\n",
       "          [ 0.0350,  0.9896,  0.1394,  0.0273]]),\n",
       "  'colmap_im_id': 15},\n",
       " {'file_path': 'images/frame_00016.png',\n",
       "  'transform_matrix': tensor([[ 0.7988,  0.0455, -0.5999,  0.2151],\n",
       "          [-0.5997,  0.1395, -0.7879,  0.1080],\n",
       "          [ 0.0479,  0.9892,  0.1387,  0.0321]]),\n",
       "  'colmap_im_id': 16},\n",
       " {'file_path': 'images/frame_00017.png',\n",
       "  'transform_matrix': tensor([[ 0.7803,  0.0694, -0.6216,  0.2633],\n",
       "          [-0.6239,  0.1567, -0.7656,  0.1286],\n",
       "          [ 0.0443,  0.9852,  0.1656,  0.0335]]),\n",
       "  'colmap_im_id': 17},\n",
       " {'file_path': 'images/frame_00018.png',\n",
       "  'transform_matrix': tensor([[ 0.7795,  0.0873, -0.6203,  0.2996],\n",
       "          [-0.6258,  0.1514, -0.7651,  0.1793],\n",
       "          [ 0.0271,  0.9846,  0.1726,  0.0419]]),\n",
       "  'colmap_im_id': 18},\n",
       " {'file_path': 'images/frame_00019.png',\n",
       "  'transform_matrix': tensor([[ 0.8319,  0.0915, -0.5473,  0.3295],\n",
       "          [-0.5545,  0.1740, -0.8138,  0.1949],\n",
       "          [ 0.0208,  0.9805,  0.1955,  0.0418]]),\n",
       "  'colmap_im_id': 19},\n",
       " {'file_path': 'images/frame_00020.png',\n",
       "  'transform_matrix': tensor([[ 0.9185,  0.0272, -0.3945,  0.4014],\n",
       "          [-0.3902,  0.2248, -0.8929,  0.2052],\n",
       "          [ 0.0644,  0.9740,  0.2171,  0.0450]]),\n",
       "  'colmap_im_id': 20},\n",
       " {'file_path': 'images/frame_00021.png',\n",
       "  'transform_matrix': tensor([[ 0.9038,  0.0181, -0.4277,  0.4424],\n",
       "          [-0.4226,  0.1958, -0.8849,  0.2300],\n",
       "          [ 0.0678,  0.9805,  0.1846,  0.0493]]),\n",
       "  'colmap_im_id': 21},\n",
       " {'file_path': 'images/frame_00022.png',\n",
       "  'transform_matrix': tensor([[ 0.8037,  0.0264, -0.5944,  0.4407],\n",
       "          [-0.5928,  0.1219, -0.7961,  0.2656],\n",
       "          [ 0.0515,  0.9922,  0.1136,  0.0587]]),\n",
       "  'colmap_im_id': 22},\n",
       " {'file_path': 'images/frame_00023.png',\n",
       "  'transform_matrix': tensor([[ 0.6910,  0.0431, -0.7216,  0.4566],\n",
       "          [-0.7214,  0.1049, -0.6845,  0.2751],\n",
       "          [ 0.0462,  0.9935,  0.1036,  0.0610]]),\n",
       "  'colmap_im_id': 23},\n",
       " {'file_path': 'images/frame_00024.png',\n",
       "  'transform_matrix': tensor([[ 0.5919,  0.0798, -0.8021,  0.4995],\n",
       "          [-0.8054,  0.0962, -0.5848,  0.2839],\n",
       "          [ 0.0306,  0.9922,  0.1212,  0.0605]]),\n",
       "  'colmap_im_id': 24},\n",
       " {'file_path': 'images/frame_00025.png',\n",
       "  'transform_matrix': tensor([[ 0.4684,  0.1161, -0.8759,  0.5278],\n",
       "          [-0.8834,  0.0755, -0.4624,  0.2948],\n",
       "          [ 0.0125,  0.9904,  0.1379,  0.0580]]),\n",
       "  'colmap_im_id': 25},\n",
       " {'file_path': 'images/frame_00026.png',\n",
       "  'transform_matrix': tensor([[ 0.3089,  0.0966, -0.9462,  0.5258],\n",
       "          [-0.9511,  0.0256, -0.3079,  0.3001],\n",
       "          [-0.0055,  0.9950,  0.0998,  0.0637]]),\n",
       "  'colmap_im_id': 26},\n",
       " {'file_path': 'images/frame_00027.png',\n",
       "  'transform_matrix': tensor([[ 0.1624,  0.0553, -0.9852,  0.5200],\n",
       "          [-0.9866, -0.0049, -0.1629,  0.2918],\n",
       "          [-0.0139,  0.9985,  0.0538,  0.0670]]),\n",
       "  'colmap_im_id': 27},\n",
       " {'file_path': 'images/frame_00028.png',\n",
       "  'transform_matrix': tensor([[ 0.0526,  0.0362, -0.9980,  0.5139],\n",
       "          [-0.9984, -0.0201, -0.0533,  0.2808],\n",
       "          [-0.0220,  0.9991,  0.0351,  0.0684]]),\n",
       "  'colmap_im_id': 28},\n",
       " {'file_path': 'images/frame_00029.png',\n",
       "  'transform_matrix': tensor([[-0.0872,  0.0248, -0.9959,  0.4997],\n",
       "          [-0.9956, -0.0367,  0.0863,  0.2696],\n",
       "          [-0.0344,  0.9990,  0.0279,  0.0691]]),\n",
       "  'colmap_im_id': 29},\n",
       " {'file_path': 'images/frame_00030.png',\n",
       "  'transform_matrix': tensor([[-0.2031,  0.0102, -0.9791,  0.4919],\n",
       "          [-0.9783, -0.0450,  0.2025,  0.2627],\n",
       "          [-0.0420,  0.9989,  0.0191,  0.0682]]),\n",
       "  'colmap_im_id': 30},\n",
       " {'file_path': 'images/frame_00031.png',\n",
       "  'transform_matrix': tensor([[-0.3076,  0.0153, -0.9514,  0.4896],\n",
       "          [-0.9506, -0.0488,  0.3066,  0.2573],\n",
       "          [-0.0418,  0.9987,  0.0296,  0.0666]]),\n",
       "  'colmap_im_id': 31},\n",
       " {'file_path': 'images/frame_00032.png',\n",
       "  'transform_matrix': tensor([[-0.4359,  0.0257, -0.8996,  0.4821],\n",
       "          [-0.8986, -0.0679,  0.4335,  0.2476],\n",
       "          [-0.0500,  0.9974,  0.0527,  0.0646]]),\n",
       "  'colmap_im_id': 32},\n",
       " {'file_path': 'images/frame_00033.png',\n",
       "  'transform_matrix': tensor([[-0.5101,  0.0250, -0.8597,  0.4751],\n",
       "          [-0.8585, -0.0761,  0.5072,  0.2401],\n",
       "          [-0.0528,  0.9968,  0.0603,  0.0641]]),\n",
       "  'colmap_im_id': 33},\n",
       " {'file_path': 'images/frame_00034.png',\n",
       "  'transform_matrix': tensor([[-0.5910,  0.0228, -0.8063,  0.4700],\n",
       "          [-0.8050, -0.0802,  0.5878,  0.2305],\n",
       "          [-0.0513,  0.9965,  0.0657,  0.0642]]),\n",
       "  'colmap_im_id': 34},\n",
       " {'file_path': 'images/frame_00035.png',\n",
       "  'transform_matrix': tensor([[-0.6491,  0.0253, -0.7603,  0.4694],\n",
       "          [-0.7588, -0.0917,  0.6448,  0.2194],\n",
       "          [-0.0534,  0.9955,  0.0787,  0.0640]]),\n",
       "  'colmap_im_id': 35},\n",
       " {'file_path': 'images/frame_00036.png',\n",
       "  'transform_matrix': tensor([[-0.6849,  0.0178, -0.7284,  0.4704],\n",
       "          [-0.7252, -0.1134,  0.6792,  0.1951],\n",
       "          [-0.0705,  0.9934,  0.0906,  0.0646]]),\n",
       "  'colmap_im_id': 36},\n",
       " {'file_path': 'images/frame_00037.png',\n",
       "  'transform_matrix': tensor([[-0.7227, -0.0011, -0.6911,  0.4656],\n",
       "          [-0.6859, -0.1222,  0.7174,  0.1725],\n",
       "          [-0.0853,  0.9925,  0.0876,  0.0647]]),\n",
       "  'colmap_im_id': 37},\n",
       " {'file_path': 'images/frame_00038.png',\n",
       "  'transform_matrix': tensor([[-0.7946, -0.0029, -0.6072,  0.4541],\n",
       "          [-0.5984, -0.1654,  0.7839,  0.1632],\n",
       "          [-0.1027,  0.9862,  0.1296,  0.0597]]),\n",
       "  'colmap_im_id': 38},\n",
       " {'file_path': 'images/frame_00039.png',\n",
       "  'transform_matrix': tensor([[-0.8585, -0.0022, -0.5129,  0.4370],\n",
       "          [-0.4993, -0.2251,  0.8367,  0.1835],\n",
       "          [-0.1173,  0.9743,  0.1921,  0.0520]]),\n",
       "  'colmap_im_id': 39},\n",
       " {'file_path': 'images/frame_00040.png',\n",
       "  'transform_matrix': tensor([[-0.9200, -0.0156, -0.3915,  0.4192],\n",
       "          [-0.3775, -0.2324,  0.8964,  0.1966],\n",
       "          [-0.1050,  0.9725,  0.2079,  0.0473]]),\n",
       "  'colmap_im_id': 40},\n",
       " {'file_path': 'images/frame_00041.png',\n",
       "  'transform_matrix': tensor([[-0.9486, -0.0285, -0.3152,  0.4070],\n",
       "          [-0.3031, -0.2045,  0.9308,  0.1995],\n",
       "          [-0.0910,  0.9785,  0.1853,  0.0465]]),\n",
       "  'colmap_im_id': 41},\n",
       " {'file_path': 'images/frame_00042.png',\n",
       "  'transform_matrix': tensor([[-0.9857, -0.0383, -0.1642,  0.3875],\n",
       "          [-0.1537, -0.1961,  0.9685,  0.1932],\n",
       "          [-0.0693,  0.9798,  0.1874,  0.0434]]),\n",
       "  'colmap_im_id': 42},\n",
       " {'file_path': 'images/frame_00043.png',\n",
       "  'transform_matrix': tensor([[-0.9976, -0.0660, -0.0225,  0.3570],\n",
       "          [-0.0095, -0.1909,  0.9816,  0.1771],\n",
       "          [-0.0691,  0.9794,  0.1898,  0.0428]]),\n",
       "  'colmap_im_id': 43},\n",
       " {'file_path': 'images/frame_00044.png',\n",
       "  'transform_matrix': tensor([[-0.9938, -0.0794,  0.0783,  0.3332],\n",
       "          [ 0.0921, -0.1883,  0.9778,  0.1672],\n",
       "          [-0.0629,  0.9789,  0.1944,  0.0418]]),\n",
       "  'colmap_im_id': 44},\n",
       " {'file_path': 'images/frame_00045.png',\n",
       "  'transform_matrix': tensor([[-0.9833, -0.0779,  0.1644,  0.3056],\n",
       "          [ 0.1762, -0.1823,  0.9673,  0.1534],\n",
       "          [-0.0454,  0.9801,  0.1930,  0.0385]]),\n",
       "  'colmap_im_id': 45},\n",
       " {'file_path': 'images/frame_00046.png',\n",
       "  'transform_matrix': tensor([[-0.9632, -0.0718,  0.2591,  0.2848],\n",
       "          [ 0.2683, -0.1925,  0.9439,  0.1390],\n",
       "          [-0.0179,  0.9787,  0.2047,  0.0363]]),\n",
       "  'colmap_im_id': 46},\n",
       " {'file_path': 'images/frame_00047.png',\n",
       "  'transform_matrix': tensor([[-0.9122, -0.0767,  0.4026,  0.2818],\n",
       "          [ 0.4098, -0.1846,  0.8933,  0.1116],\n",
       "          [ 0.0058,  0.9798,  0.1998,  0.0381]]),\n",
       "  'colmap_im_id': 47},\n",
       " {'file_path': 'images/frame_00048.png',\n",
       "  'transform_matrix': tensor([[-0.8628, -0.1154,  0.4922,  0.2693],\n",
       "          [ 0.5055, -0.1817,  0.8435,  0.0773],\n",
       "          [-0.0079,  0.9766,  0.2151,  0.0388]]),\n",
       "  'colmap_im_id': 48},\n",
       " {'file_path': 'images/frame_00049.png',\n",
       "  'transform_matrix': tensor([[-0.8515, -0.0981,  0.5152,  0.2057],\n",
       "          [ 0.5244, -0.1661,  0.8351,  0.0520],\n",
       "          [ 0.0037,  0.9812,  0.1929,  0.0339]]),\n",
       "  'colmap_im_id': 49},\n",
       " {'file_path': 'images/frame_00050.png',\n",
       "  'transform_matrix': tensor([[-0.8212, -0.1133,  0.5593,  0.1788],\n",
       "          [ 0.5706, -0.1734,  0.8027,  0.0435],\n",
       "          [ 0.0061,  0.9783,  0.2071,  0.0304]]),\n",
       "  'colmap_im_id': 50},\n",
       " {'file_path': 'images/frame_00051.png',\n",
       "  'transform_matrix': tensor([[-0.7732, -0.1030,  0.6257,  0.1524],\n",
       "          [ 0.6336, -0.1675,  0.7553,  0.0014],\n",
       "          [ 0.0270,  0.9805,  0.1948,  0.0331]]),\n",
       "  'colmap_im_id': 51},\n",
       " {'file_path': 'images/frame_00052.png',\n",
       "  'transform_matrix': tensor([[-0.7661, -0.1209,  0.6313,  0.1284],\n",
       "          [ 0.6420, -0.1915,  0.7424, -0.0598],\n",
       "          [ 0.0312,  0.9740,  0.2243,  0.0320]]),\n",
       "  'colmap_im_id': 52},\n",
       " {'file_path': 'images/frame_00053.png',\n",
       "  'transform_matrix': tensor([[-0.7867, -0.0856,  0.6114,  0.0843],\n",
       "          [ 0.6158, -0.1805,  0.7670, -0.1389],\n",
       "          [ 0.0447,  0.9798,  0.1947,  0.0305]]),\n",
       "  'colmap_im_id': 53},\n",
       " {'file_path': 'images/frame_00054.png',\n",
       "  'transform_matrix': tensor([[-0.7128, -0.1062,  0.6933,  0.0854],\n",
       "          [ 0.6995, -0.1810,  0.6914, -0.2478],\n",
       "          [ 0.0521,  0.9777,  0.2033,  0.0282]]),\n",
       "  'colmap_im_id': 54},\n",
       " {'file_path': 'images/frame_00055.png',\n",
       "  'transform_matrix': tensor([[-0.6380, -0.1618,  0.7529,  0.1078],\n",
       "          [ 0.7696, -0.1689,  0.6158, -0.3323],\n",
       "          [ 0.0275,  0.9723,  0.2323,  0.0162]]),\n",
       "  'colmap_im_id': 55},\n",
       " {'file_path': 'images/frame_00056.png',\n",
       "  'transform_matrix': tensor([[-0.6498, -0.2923,  0.7017,  0.1237],\n",
       "          [ 0.7580, -0.1808,  0.6267, -0.3596],\n",
       "          [-0.0563,  0.9391,  0.3390, -0.0080]]),\n",
       "  'colmap_im_id': 56},\n",
       " {'file_path': 'images/frame_00057.png',\n",
       "  'transform_matrix': tensor([[-0.6291, -0.3574,  0.6902,  0.1764],\n",
       "          [ 0.7761, -0.2386,  0.5838, -0.4124],\n",
       "          [-0.0439,  0.9029,  0.4275, -0.0253]]),\n",
       "  'colmap_im_id': 57},\n",
       " {'file_path': 'images/frame_00058.png',\n",
       "  'transform_matrix': tensor([[-0.5457, -0.3541,  0.7595,  0.2428],\n",
       "          [ 0.8377, -0.2058,  0.5059, -0.4466],\n",
       "          [-0.0228,  0.9123,  0.4089, -0.0218]]),\n",
       "  'colmap_im_id': 58},\n",
       " {'file_path': 'images/frame_00059.png',\n",
       "  'transform_matrix': tensor([[-0.5168, -0.3609,  0.7764,  0.2817],\n",
       "          [ 0.8561, -0.2286,  0.4636, -0.4988],\n",
       "          [ 0.0102,  0.9042,  0.4271, -0.0327]]),\n",
       "  'colmap_im_id': 59},\n",
       " {'file_path': 'images/frame_00060.png',\n",
       "  'transform_matrix': tensor([[-0.5378, -0.3732,  0.7560,  0.3086],\n",
       "          [ 0.8429, -0.2563,  0.4731, -0.5629],\n",
       "          [ 0.0172,  0.8917,  0.4524, -0.0355]]),\n",
       "  'colmap_im_id': 60},\n",
       " {'file_path': 'images/frame_00061.png',\n",
       "  'transform_matrix': tensor([[-0.4064, -0.3765,  0.8325,  0.3359],\n",
       "          [ 0.9133, -0.1929,  0.3586, -0.6122],\n",
       "          [ 0.0255,  0.9061,  0.4223, -0.0335]]),\n",
       "  'colmap_im_id': 61},\n",
       " {'file_path': 'images/frame_00062.png',\n",
       "  'transform_matrix': tensor([[-0.3005, -0.3987,  0.8665,  0.3124],\n",
       "          [ 0.9527, -0.1696,  0.2524, -0.6695],\n",
       "          [ 0.0463,  0.9013,  0.4308, -0.0431]]),\n",
       "  'colmap_im_id': 62},\n",
       " {'file_path': 'images/frame_00063.png',\n",
       "  'transform_matrix': tensor([[-0.1475, -0.3749,  0.9152,  0.2798],\n",
       "          [ 0.9854, -0.1349,  0.1036, -0.7279],\n",
       "          [ 0.0846,  0.9172,  0.3894, -0.0466]]),\n",
       "  'colmap_im_id': 63},\n",
       " {'file_path': 'images/frame_00064.png',\n",
       "  'transform_matrix': tensor([[ 0.0469, -0.3965,  0.9168,  0.2756],\n",
       "          [ 0.9955, -0.0573, -0.0757, -0.7936],\n",
       "          [ 0.0825,  0.9162,  0.3920, -0.0472]]),\n",
       "  'colmap_im_id': 64},\n",
       " {'file_path': 'images/frame_00065.png',\n",
       "  'transform_matrix': tensor([[ 0.2178, -0.3827,  0.8978,  0.2370],\n",
       "          [ 0.9725,  0.0072, -0.2328, -0.8432],\n",
       "          [ 0.0826,  0.9238,  0.3738, -0.0548]]),\n",
       "  'colmap_im_id': 65},\n",
       " {'file_path': 'images/frame_00066.png',\n",
       "  'transform_matrix': tensor([[ 0.2964, -0.3684,  0.8812,  0.1730],\n",
       "          [ 0.9498,  0.0168, -0.3125, -0.8833],\n",
       "          [ 0.1003,  0.9295,  0.3548, -0.0569]]),\n",
       "  'colmap_im_id': 66},\n",
       " {'file_path': 'images/frame_00067.png',\n",
       "  'transform_matrix': tensor([[ 0.4620, -0.3334,  0.8219,  0.1085],\n",
       "          [ 0.8812,  0.0676, -0.4679, -0.9434],\n",
       "          [ 0.1004,  0.9404,  0.3250, -0.0606]]),\n",
       "  'colmap_im_id': 67},\n",
       " {'file_path': 'images/frame_00068.png',\n",
       "  'transform_matrix': tensor([[ 0.5127, -0.3452,  0.7861,  0.0329],\n",
       "          [ 0.8525,  0.0958, -0.5139, -0.9736],\n",
       "          [ 0.1021,  0.9336,  0.3434, -0.0698]]),\n",
       "  'colmap_im_id': 68},\n",
       " {'file_path': 'images/frame_00069.png',\n",
       "  'transform_matrix': tensor([[ 0.5649, -0.3309,  0.7560, -0.0577],\n",
       "          [ 0.8181,  0.1048, -0.5654, -0.9835],\n",
       "          [ 0.1078,  0.9378,  0.3299, -0.0723]]),\n",
       "  'colmap_im_id': 69},\n",
       " {'file_path': 'images/frame_00070.png',\n",
       "  'transform_matrix': tensor([[ 0.7157, -0.3138,  0.6240, -0.1511],\n",
       "          [ 0.6892,  0.1721, -0.7039, -1.0000],\n",
       "          [ 0.1135,  0.9338,  0.3394, -0.0785]]),\n",
       "  'colmap_im_id': 70},\n",
       " {'file_path': 'images/frame_00071.png',\n",
       "  'transform_matrix': tensor([[ 0.7290, -0.2756,  0.6266, -0.2248],\n",
       "          [ 0.6809,  0.1979, -0.7051, -0.9912],\n",
       "          [ 0.0703,  0.9407,  0.3319, -0.0818]]),\n",
       "  'colmap_im_id': 71},\n",
       " {'file_path': 'images/frame_00072.png',\n",
       "  'transform_matrix': tensor([[ 0.7117, -0.2908,  0.6395, -0.2899],\n",
       "          [ 0.6960,  0.1683, -0.6981, -0.9823],\n",
       "          [ 0.0954,  0.9419,  0.3221, -0.0841]]),\n",
       "  'colmap_im_id': 72},\n",
       " {'file_path': 'images/frame_00073.png',\n",
       "  'transform_matrix': tensor([[ 0.8250, -0.2448,  0.5093, -0.3536],\n",
       "          [ 0.5539,  0.1720, -0.8146, -0.9723],\n",
       "          [ 0.1118,  0.9542,  0.2775, -0.0852]]),\n",
       "  'colmap_im_id': 73},\n",
       " {'file_path': 'images/frame_00074.png',\n",
       "  'transform_matrix': tensor([[ 0.8376, -0.2254,  0.4976, -0.4200],\n",
       "          [ 0.5411,  0.2179, -0.8122, -0.9210],\n",
       "          [ 0.0746,  0.9496,  0.3045, -0.0878]]),\n",
       "  'colmap_im_id': 74},\n",
       " {'file_path': 'images/frame_00075.png',\n",
       "  'transform_matrix': tensor([[ 0.8229, -0.2533,  0.5087, -0.5001],\n",
       "          [ 0.5629,  0.2411, -0.7906, -0.8775],\n",
       "          [ 0.0776,  0.9369,  0.3410, -0.0925]]),\n",
       "  'colmap_im_id': 75},\n",
       " {'file_path': 'images/frame_00076.png',\n",
       "  'transform_matrix': tensor([[ 0.9076, -0.1723,  0.3828, -0.5914],\n",
       "          [ 0.4187,  0.3055, -0.8552, -0.8813],\n",
       "          [ 0.0304,  0.9365,  0.3494, -0.0959]]),\n",
       "  'colmap_im_id': 76},\n",
       " {'file_path': 'images/frame_00077.png',\n",
       "  'transform_matrix': tensor([[ 0.9483, -0.1469,  0.2812, -0.6476],\n",
       "          [ 0.3136,  0.3004, -0.9008, -0.8576],\n",
       "          [ 0.0479,  0.9424,  0.3309, -0.1025]]),\n",
       "  'colmap_im_id': 77},\n",
       " {'file_path': 'images/frame_00078.png',\n",
       "  'transform_matrix': tensor([[ 0.9730, -0.1461,  0.1787, -0.7000],\n",
       "          [ 0.2154,  0.2968, -0.9303, -0.8216],\n",
       "          [ 0.0828,  0.9437,  0.3203, -0.1041]]),\n",
       "  'colmap_im_id': 78},\n",
       " {'file_path': 'images/frame_00079.png',\n",
       "  'transform_matrix': tensor([[ 0.9839, -0.1533,  0.0921, -0.7554],\n",
       "          [ 0.1322,  0.2761, -0.9520, -0.7855],\n",
       "          [ 0.1205,  0.9488,  0.2919, -0.1025]]),\n",
       "  'colmap_im_id': 79},\n",
       " {'file_path': 'images/frame_00080.png',\n",
       "  'transform_matrix': tensor([[ 0.9903, -0.1372,  0.0208, -0.7694],\n",
       "          [ 0.0572,  0.2668, -0.9620, -0.7203],\n",
       "          [ 0.1264,  0.9539,  0.2721, -0.1001]]),\n",
       "  'colmap_im_id': 80},\n",
       " {'file_path': 'images/frame_00081.png',\n",
       "  'transform_matrix': tensor([[ 0.9903, -0.1390, -0.0037, -0.7724],\n",
       "          [ 0.0316,  0.2506, -0.9676, -0.6483],\n",
       "          [ 0.1354,  0.9581,  0.2526, -0.0936]]),\n",
       "  'colmap_im_id': 81},\n",
       " {'file_path': 'images/frame_00082.png',\n",
       "  'transform_matrix': tensor([[ 0.9908, -0.1298, -0.0378, -0.7891],\n",
       "          [-0.0152,  0.1703, -0.9853, -0.5743],\n",
       "          [ 0.1343,  0.9768,  0.1668, -0.0848]]),\n",
       "  'colmap_im_id': 82},\n",
       " {'file_path': 'images/frame_00083.png',\n",
       "  'transform_matrix': tensor([[ 0.9898, -0.1196, -0.0773, -0.8040],\n",
       "          [-0.0580,  0.1570, -0.9859, -0.5163],\n",
       "          [ 0.1300,  0.9803,  0.1485, -0.0772]]),\n",
       "  'colmap_im_id': 83},\n",
       " {'file_path': 'images/frame_00084.png',\n",
       "  'transform_matrix': tensor([[ 0.9964, -0.0835,  0.0132, -0.8079],\n",
       "          [ 0.0189,  0.0679, -0.9975, -0.3772],\n",
       "          [ 0.0824,  0.9942,  0.0692, -0.0683]]),\n",
       "  'colmap_im_id': 84},\n",
       " {'file_path': 'images/frame_00085.png',\n",
       "  'transform_matrix': tensor([[ 0.9983, -0.0536, -0.0236, -0.8031],\n",
       "          [-0.0174,  0.1140, -0.9933, -0.2943],\n",
       "          [ 0.0560,  0.9920,  0.1129, -0.0592]]),\n",
       "  'colmap_im_id': 85},\n",
       " {'file_path': 'images/frame_00086.png',\n",
       "  'transform_matrix': tensor([[ 0.9935, -0.0402, -0.1065, -0.8021],\n",
       "          [-0.1030,  0.0816, -0.9913, -0.2176],\n",
       "          [ 0.0485,  0.9959,  0.0769, -0.0546]]),\n",
       "  'colmap_im_id': 86},\n",
       " {'file_path': 'images/frame_00087.png',\n",
       "  'transform_matrix': tensor([[ 0.9534, -0.0208, -0.3010, -0.7934],\n",
       "          [-0.2989,  0.0706, -0.9517, -0.1528],\n",
       "          [ 0.0410,  0.9973,  0.0611, -0.0327]]),\n",
       "  'colmap_im_id': 87},\n",
       " {'file_path': 'images/frame_00088.png',\n",
       "  'transform_matrix': tensor([[ 0.8750,  0.0231, -0.4835, -0.7368],\n",
       "          [-0.4841,  0.0380, -0.8742, -0.0916],\n",
       "          [-0.0018,  0.9990,  0.0445, -0.0259]]),\n",
       "  'colmap_im_id': 88},\n",
       " {'file_path': 'images/frame_00089.png',\n",
       "  'transform_matrix': tensor([[ 0.8128,  0.0337, -0.5816, -0.6988],\n",
       "          [-0.5818,  0.0995, -0.8072, -0.0375],\n",
       "          [ 0.0306,  0.9945,  0.1005, -0.0299]]),\n",
       "  'colmap_im_id': 89},\n",
       " {'file_path': 'images/frame_00090.png',\n",
       "  'transform_matrix': tensor([[ 0.6321,  0.2094, -0.7460, -0.6716],\n",
       "          [-0.7742,  0.1326, -0.6188, -0.0050],\n",
       "          [-0.0306,  0.9688,  0.2460, -0.0425]]),\n",
       "  'colmap_im_id': 90},\n",
       " {'file_path': 'images/frame_00091.png',\n",
       "  'transform_matrix': tensor([[ 0.4015,  0.3926, -0.8274, -0.6352],\n",
       "          [-0.9133,  0.1041, -0.3938,  0.0101],\n",
       "          [-0.0685,  0.9138,  0.4004, -0.0592]]),\n",
       "  'colmap_im_id': 91},\n",
       " {'file_path': 'images/frame_00092.png',\n",
       "  'transform_matrix': tensor([[ 0.2223,  0.3952, -0.8913, -0.6407],\n",
       "          [-0.9734,  0.0372, -0.2262,  0.0268],\n",
       "          [-0.0563,  0.9179,  0.3929, -0.0628]]),\n",
       "  'colmap_im_id': 92},\n",
       " {'file_path': 'images/frame_00093.png',\n",
       "  'transform_matrix': tensor([[-0.0187,  0.4491, -0.8933, -0.6856],\n",
       "          [-0.9974, -0.0711, -0.0148,  0.0564],\n",
       "          [-0.0701,  0.8906,  0.4493, -0.0717]]),\n",
       "  'colmap_im_id': 93},\n",
       " {'file_path': 'images/frame_00094.png',\n",
       "  'transform_matrix': tensor([[-0.1063,  0.5211, -0.8468, -0.7060],\n",
       "          [-0.9938, -0.0835,  0.0733,  0.0644],\n",
       "          [-0.0326,  0.8494,  0.5268, -0.0833]]),\n",
       "  'colmap_im_id': 94},\n",
       " {'file_path': 'images/frame_00095.png',\n",
       "  'transform_matrix': tensor([[-0.4168,  0.4379, -0.7966, -0.7392],\n",
       "          [-0.9079, -0.2430,  0.3415,  0.1114],\n",
       "          [-0.0440,  0.8656,  0.4988, -0.0805]]),\n",
       "  'colmap_im_id': 95},\n",
       " {'file_path': 'images/frame_00096.png',\n",
       "  'transform_matrix': tensor([[-0.4167,  0.4116, -0.8105, -0.7349],\n",
       "          [-0.9081, -0.2293,  0.3504,  0.1444],\n",
       "          [-0.0416,  0.8821,  0.4693, -0.0731]]),\n",
       "  'colmap_im_id': 96},\n",
       " {'file_path': 'images/frame_00097.png',\n",
       "  'transform_matrix': tensor([[-0.4280,  0.4357, -0.7919, -0.6987],\n",
       "          [-0.9036, -0.2239,  0.3651,  0.1345],\n",
       "          [-0.0183,  0.8718,  0.4895, -0.0730]]),\n",
       "  'colmap_im_id': 97},\n",
       " {'file_path': 'images/frame_00098.png',\n",
       "  'transform_matrix': tensor([[-0.3142,  0.4466, -0.8378, -0.6448],\n",
       "          [-0.9493, -0.1429,  0.2799,  0.1152],\n",
       "          [ 0.0053,  0.8833,  0.4688, -0.0709]]),\n",
       "  'colmap_im_id': 98},\n",
       " {'file_path': 'images/frame_00099.png',\n",
       "  'transform_matrix': tensor([[-0.2448,  0.3933, -0.8862, -0.5949],\n",
       "          [-0.9695, -0.1064,  0.2206,  0.1268],\n",
       "          [-0.0075,  0.9132,  0.4073, -0.0610]]),\n",
       "  'colmap_im_id': 99},\n",
       " {'file_path': 'images/frame_00100.png',\n",
       "  'transform_matrix': tensor([[-0.1991,  0.3223, -0.9255, -0.5261],\n",
       "          [-0.9789, -0.1091,  0.1726,  0.1223],\n",
       "          [-0.0453,  0.9403,  0.3372, -0.0512]]),\n",
       "  'colmap_im_id': 100},\n",
       " {'file_path': 'images/frame_00101.png',\n",
       "  'transform_matrix': tensor([[ 0.0200,  0.3086, -0.9510, -0.4577],\n",
       "          [-0.9994, -0.0215, -0.0280,  0.0991],\n",
       "          [-0.0291,  0.9509,  0.3080, -0.0451]]),\n",
       "  'colmap_im_id': 101},\n",
       " {'file_path': 'images/frame_00102.png',\n",
       "  'transform_matrix': tensor([[ 0.1686,  0.2993, -0.9392, -0.3914],\n",
       "          [-0.9855,  0.0325, -0.1665,  0.1101],\n",
       "          [-0.0194,  0.9536,  0.3004, -0.0427]]),\n",
       "  'colmap_im_id': 102},\n",
       " {'file_path': 'images/frame_00103.png',\n",
       "  'transform_matrix': tensor([[ 0.3137,  0.3280, -0.8910, -0.3052],\n",
       "          [-0.9492,  0.0829, -0.3037,  0.1266],\n",
       "          [-0.0257,  0.9410,  0.3374, -0.0388]]),\n",
       "  'colmap_im_id': 103},\n",
       " {'file_path': 'images/frame_00104.png',\n",
       "  'transform_matrix': tensor([[ 0.6249,  0.2723, -0.7317, -0.2453],\n",
       "          [-0.7802,  0.1818, -0.5986,  0.1190],\n",
       "          [-0.0300,  0.9449,  0.3260, -0.0304]]),\n",
       "  'colmap_im_id': 104},\n",
       " {'file_path': 'images/frame_00105.png',\n",
       "  'transform_matrix': tensor([[ 0.8256,  0.1975, -0.5286, -0.2364],\n",
       "          [-0.5638,  0.2508, -0.7869,  0.1701],\n",
       "          [-0.0228,  0.9477,  0.3184, -0.0280]]),\n",
       "  'colmap_im_id': 105},\n",
       " {'file_path': 'images/frame_00106.png',\n",
       "  'transform_matrix': tensor([[ 0.9335,  0.0442, -0.3558, -0.2578],\n",
       "          [-0.3553,  0.2480, -0.9013,  0.2530],\n",
       "          [ 0.0484,  0.9678,  0.2472, -0.0174]]),\n",
       "  'colmap_im_id': 106},\n",
       " {'file_path': 'images/frame_00107.png',\n",
       "  'transform_matrix': tensor([[ 0.9720, -0.0152, -0.2346, -0.2486],\n",
       "          [-0.2306,  0.1322, -0.9640,  0.3002],\n",
       "          [ 0.0457,  0.9911,  0.1250,  0.0035]]),\n",
       "  'colmap_im_id': 107},\n",
       " {'file_path': 'images/frame_00108.png',\n",
       "  'transform_matrix': tensor([[ 0.9795, -0.0467, -0.1962, -0.2285],\n",
       "          [-0.1976, -0.0267, -0.9799,  0.3294],\n",
       "          [ 0.0406,  0.9986, -0.0354,  0.0321]]),\n",
       "  'colmap_im_id': 108},\n",
       " {'file_path': 'images/frame_00109.png',\n",
       "  'transform_matrix': tensor([[ 0.9315, -0.0275, -0.3627, -0.2455],\n",
       "          [-0.3631, -0.0124, -0.9317,  0.3939],\n",
       "          [ 0.0211,  0.9995, -0.0215,  0.0305]]),\n",
       "  'colmap_im_id': 109},\n",
       " {'file_path': 'images/frame_00110.png',\n",
       "  'transform_matrix': tensor([[ 0.8143,  0.0599, -0.5773, -0.2519],\n",
       "          [-0.5797,  0.0356, -0.8140,  0.4556],\n",
       "          [-0.0282,  0.9976,  0.0637,  0.0251]]),\n",
       "  'colmap_im_id': 110},\n",
       " {'file_path': 'images/frame_00111.png',\n",
       "  'transform_matrix': tensor([[ 0.7076,  0.1516, -0.6902, -0.2105],\n",
       "          [-0.7065,  0.1342, -0.6948,  0.5379],\n",
       "          [-0.0127,  0.9793,  0.2021,  0.0140]]),\n",
       "  'colmap_im_id': 111},\n",
       " {'file_path': 'images/frame_00112.png',\n",
       "  'transform_matrix': tensor([[ 0.5462,  0.2402, -0.8024, -0.1883],\n",
       "          [-0.8373,  0.1312, -0.5307,  0.6060],\n",
       "          [-0.0222,  0.9618,  0.2728,  0.0147]]),\n",
       "  'colmap_im_id': 112},\n",
       " {'file_path': 'images/frame_00113.png',\n",
       "  'transform_matrix': tensor([[ 0.4126,  0.3452, -0.8430, -0.1686],\n",
       "          [-0.9109,  0.1659, -0.3778,  0.6463],\n",
       "          [ 0.0095,  0.9237,  0.3829,  0.0042]]),\n",
       "  'colmap_im_id': 113},\n",
       " {'file_path': 'images/frame_00114.png',\n",
       "  'transform_matrix': tensor([[ 0.3304,  0.3712, -0.8678, -0.1007],\n",
       "          [-0.9437,  0.1150, -0.3101,  0.6861],\n",
       "          [-0.0153,  0.9214,  0.3884,  0.0056]]),\n",
       "  'colmap_im_id': 114},\n",
       " {'file_path': 'images/frame_00115.png',\n",
       "  'transform_matrix': tensor([[ 0.1387,  0.3519, -0.9257, -0.0587],\n",
       "          [-0.9900,  0.0257, -0.1386,  0.7214],\n",
       "          [-0.0250,  0.9357,  0.3520,  0.0105]]),\n",
       "  'colmap_im_id': 115},\n",
       " {'file_path': 'images/frame_00116.png',\n",
       "  'transform_matrix': tensor([[-0.0343,  0.3376, -0.9407, -0.0068],\n",
       "          [-0.9988, -0.0435,  0.0208,  0.7500],\n",
       "          [-0.0339,  0.9403,  0.3387,  0.0175]]),\n",
       "  'colmap_im_id': 116},\n",
       " {'file_path': 'images/frame_00117.png',\n",
       "  'transform_matrix': tensor([[-0.0519,  0.3018, -0.9520,  0.0844],\n",
       "          [-0.9951, -0.0956,  0.0239,  0.7563],\n",
       "          [-0.0838,  0.9486,  0.3052,  0.0289]]),\n",
       "  'colmap_im_id': 117},\n",
       " {'file_path': 'images/frame_00118.png',\n",
       "  'transform_matrix': tensor([[-0.1691,  0.2786, -0.9454,  0.1680],\n",
       "          [-0.9785, -0.1620,  0.1273,  0.7809],\n",
       "          [-0.1177,  0.9466,  0.3000,  0.0318]]),\n",
       "  'colmap_im_id': 118},\n",
       " {'file_path': 'images/frame_00119.png',\n",
       "  'transform_matrix': tensor([[-0.3546,  0.2996, -0.8857,  0.2437],\n",
       "          [-0.9284, -0.2257,  0.2953,  0.7968],\n",
       "          [-0.1115,  0.9270,  0.3582,  0.0302]]),\n",
       "  'colmap_im_id': 119},\n",
       " {'file_path': 'images/frame_00120.png',\n",
       "  'transform_matrix': tensor([[-0.4550,  0.2716, -0.8480,  0.3476],\n",
       "          [-0.8889, -0.1959,  0.4142,  0.7827],\n",
       "          [-0.0537,  0.9422,  0.3306,  0.0349]]),\n",
       "  'colmap_im_id': 120},\n",
       " {'file_path': 'images/frame_00121.png',\n",
       "  'transform_matrix': tensor([[-0.5545,  0.2899, -0.7801,  0.4119],\n",
       "          [-0.8306, -0.2514,  0.4970,  0.7819],\n",
       "          [-0.0520,  0.9234,  0.3802,  0.0316]]),\n",
       "  'colmap_im_id': 121},\n",
       " {'file_path': 'images/frame_00122.png',\n",
       "  'transform_matrix': tensor([[-0.6340,  0.2156, -0.7426,  0.4740],\n",
       "          [-0.7699, -0.2662,  0.5800,  0.7906],\n",
       "          [-0.0726,  0.9395,  0.3348,  0.0418]]),\n",
       "  'colmap_im_id': 122},\n",
       " {'file_path': 'images/frame_00123.png',\n",
       "  'transform_matrix': tensor([[-0.6440,  0.1915, -0.7406,  0.5376],\n",
       "          [-0.7623, -0.2418,  0.6003,  0.7749],\n",
       "          [-0.0641,  0.9512,  0.3017,  0.0473]]),\n",
       "  'colmap_im_id': 123},\n",
       " {'file_path': 'images/frame_00124.png',\n",
       "  'transform_matrix': tensor([[-0.7154,  0.1284, -0.6868,  0.6028],\n",
       "          [-0.6977, -0.1838,  0.6924,  0.7328],\n",
       "          [-0.0373,  0.9745,  0.2211,  0.0662]]),\n",
       "  'colmap_im_id': 124},\n",
       " {'file_path': 'images/frame_00125.png',\n",
       "  'transform_matrix': tensor([[-0.8253, -0.0284, -0.5640,  0.6433],\n",
       "          [-0.5613, -0.0679,  0.8248,  0.7212],\n",
       "          [-0.0617,  0.9973,  0.0401,  0.0983]]),\n",
       "  'colmap_im_id': 125},\n",
       " {'file_path': 'images/frame_00126.png',\n",
       "  'transform_matrix': tensor([[-0.8529, -0.0535, -0.5193,  0.6697],\n",
       "          [-0.5210,  0.0239,  0.8532,  0.7063],\n",
       "          [-0.0332,  0.9983, -0.0483,  0.1112]]),\n",
       "  'colmap_im_id': 126},\n",
       " {'file_path': 'images/frame_00127.png',\n",
       "  'transform_matrix': tensor([[-0.9105, -0.0676, -0.4081,  0.6759],\n",
       "          [-0.4092,  0.2917,  0.8646,  0.6920],\n",
       "          [ 0.0606,  0.9541, -0.2932,  0.1321]]),\n",
       "  'colmap_im_id': 127}]"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sorted_frames"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Convert tensor to a list for JSON serialization\n",
    "for frame in data1['frames']:\n",
    "    # Convert each tensor within 'transform_matrix' to a list\n",
    "    frame['transform_matrix'] = frame['transform_matrix'].tolist()\n",
    "\n",
    "# Now data1 should be fully serializable\n",
    "with open('transforms_camera_path.json', 'w') as f:\n",
    "    json.dump(data1, f)\n",
    "\n",
    "data1[\"frames\"] = sorted_frames"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'w': 1440,\n",
       " 'h': 1920,\n",
       " 'fl_x': 1354.149834675179,\n",
       " 'fl_y': 1356.808223221463,\n",
       " 'cx': 710.6988374534614,\n",
       " 'cy': 964.517019235164,\n",
       " 'k1': 0.06876934726863258,\n",
       " 'k2': -0.08445438535407541,\n",
       " 'p1': -0.0002840045537200528,\n",
       " 'p2': -0.000819683604134213,\n",
       " 'camera_model': 'OPENCV',\n",
       " 'frames': [{'file_path': 'images/frame_00001.png',\n",
       "   'transform_matrix': [[0.6294280886650085,\n",
       "     -0.13686157763004303,\n",
       "     0.7649112343788147,\n",
       "     -0.02766585163772106],\n",
       "    [0.772574782371521,\n",
       "     0.004623435437679291,\n",
       "     -0.6349070072174072,\n",
       "     0.016086122021079063],\n",
       "    [0.08335785567760468,\n",
       "     0.99057936668396,\n",
       "     0.10864593088626862,\n",
       "     0.015501730144023895]],\n",
       "   'colmap_im_id': 1},\n",
       "  {'file_path': 'images/frame_00002.png',\n",
       "   'transform_matrix': [[0.6274409294128418,\n",
       "     -0.13972879946231842,\n",
       "     0.7660245895385742,\n",
       "     -0.026036959141492844],\n",
       "    [0.7740263342857361,\n",
       "     0.004710927605628967,\n",
       "     -0.6331359148025513,\n",
       "     0.01840129680931568],\n",
       "    [0.08485863357782364,\n",
       "     0.9901785850524902,\n",
       "     0.11110959202051163,\n",
       "     0.016086585819721222]],\n",
       "   'colmap_im_id': 2},\n",
       "  {'file_path': 'images/frame_00003.png',\n",
       "   'transform_matrix': [[0.6562196612358093,\n",
       "     -0.1576598733663559,\n",
       "     0.7379153370857239,\n",
       "     -0.022327661514282227],\n",
       "    [0.749296247959137,\n",
       "     0.020736660808324814,\n",
       "     -0.6619101166725159,\n",
       "     0.020342571660876274],\n",
       "    [0.08905477821826935,\n",
       "     0.9872757196426392,\n",
       "     0.13174176216125488,\n",
       "     0.015550928190350533]],\n",
       "   'colmap_im_id': 3},\n",
       "  {'file_path': 'images/frame_00004.png',\n",
       "   'transform_matrix': [[0.7185998558998108,\n",
       "     -0.15043148398399353,\n",
       "     0.6789584755897522,\n",
       "     -0.015648620203137398],\n",
       "    [0.6905515193939209,\n",
       "     0.038987766951322556,\n",
       "     -0.7222316265106201,\n",
       "     0.02826707437634468],\n",
       "    [0.08217529952526093,\n",
       "     0.9878513813018799,\n",
       "     0.13189730048179626,\n",
       "     0.015398017130792141]],\n",
       "   'colmap_im_id': 4},\n",
       "  {'file_path': 'images/frame_00005.png',\n",
       "   'transform_matrix': [[0.8122467994689941,\n",
       "     -0.13310864567756653,\n",
       "     0.5679236054420471,\n",
       "     0.000981435994617641],\n",
       "    [0.5789667963981628,\n",
       "     0.06532549858093262,\n",
       "     -0.8127299547195435,\n",
       "     0.03912665694952011],\n",
       "    [0.0710814967751503,\n",
       "     0.988946259021759,\n",
       "     0.13012589514255524,\n",
       "     0.015675155445933342]],\n",
       "   'colmap_im_id': 5},\n",
       "  {'file_path': 'images/frame_00006.png',\n",
       "   'transform_matrix': [[0.8760946393013,\n",
       "     -0.1214555948972702,\n",
       "     0.4665904939174652,\n",
       "     0.018413735553622246],\n",
       "    [0.4774338901042938,\n",
       "     0.08367115259170532,\n",
       "     -0.8746748566627502,\n",
       "     0.04400256648659706],\n",
       "    [0.06719398498535156,\n",
       "     0.9890639781951904,\n",
       "     0.13129086792469025,\n",
       "     0.0163665022701025]],\n",
       "   'colmap_im_id': 6},\n",
       "  {'file_path': 'images/frame_00007.png',\n",
       "   'transform_matrix': [[0.9288544654846191,\n",
       "     -0.11493270099163055,\n",
       "     0.35216453671455383,\n",
       "     0.033489890396595],\n",
       "    [0.3637402653694153,\n",
       "     0.10291900485754013,\n",
       "     -0.9257974028587341,\n",
       "     0.04249543696641922],\n",
       "    [0.07015996426343918,\n",
       "     0.9880273938179016,\n",
       "     0.13740241527557373,\n",
       "     0.017346875742077827]],\n",
       "   'colmap_im_id': 7},\n",
       "  {'file_path': 'images/frame_00008.png',\n",
       "   'transform_matrix': [[0.9776076078414917,\n",
       "     -0.0819028690457344,\n",
       "     0.1938432902097702,\n",
       "     0.056769587099552155],\n",
       "    [0.20262020826339722,\n",
       "     0.11764414608478546,\n",
       "     -0.9721651077270508,\n",
       "     0.04292311891913414],\n",
       "    [0.05681858956813812,\n",
       "     0.9896725416183472,\n",
       "     0.13160499930381775,\n",
       "     0.019043728709220886]],\n",
       "   'colmap_im_id': 8},\n",
       "  {'file_path': 'images/frame_00009.png',\n",
       "   'transform_matrix': [[0.9923447370529175,\n",
       "     -0.06606639176607132,\n",
       "     0.10434108227491379,\n",
       "     0.08295368403196335],\n",
       "    [0.11051841080188751,\n",
       "     0.09802387654781342,\n",
       "     -0.9890283346176147,\n",
       "     0.046079158782958984],\n",
       "    [0.055113621056079865,\n",
       "     0.992988646030426,\n",
       "     0.1045750305056572,\n",
       "     0.02313096635043621]],\n",
       "   'colmap_im_id': 9},\n",
       "  {'file_path': 'images/frame_00010.png',\n",
       "   'transform_matrix': [[0.9994138479232788,\n",
       "     -0.033793576061725616,\n",
       "     0.005469931289553642,\n",
       "     0.11444864422082901],\n",
       "    [0.00826682522892952,\n",
       "     0.08318740874528885,\n",
       "     -0.9964997172355652,\n",
       "     0.04338508099317551],\n",
       "    [0.03322025388479233,\n",
       "     0.9959607720375061,\n",
       "     0.08341801911592484,\n",
       "     0.02628796547651291]],\n",
       "   'colmap_im_id': 10},\n",
       "  {'file_path': 'images/frame_00011.png',\n",
       "   'transform_matrix': [[0.9924774765968323,\n",
       "     -0.03891931474208832,\n",
       "     -0.11607655882835388,\n",
       "     0.15278424322605133],\n",
       "    [-0.1113649308681488,\n",
       "     0.10685195028781891,\n",
       "     -0.9880185127258301,\n",
       "     0.04556023329496384],\n",
       "    [0.050856009125709534,\n",
       "     0.9935129880905151,\n",
       "     0.10171391069889069,\n",
       "     0.02547495625913143]],\n",
       "   'colmap_im_id': 11},\n",
       "  {'file_path': 'images/frame_00012.png',\n",
       "   'transform_matrix': [[0.9792697429656982,\n",
       "     -0.03811582177877426,\n",
       "     -0.19894178211688995,\n",
       "     0.1618019938468933],\n",
       "    [-0.1932847797870636,\n",
       "     0.11796573549509048,\n",
       "     -0.9740252494812012,\n",
       "     0.05169009417295456],\n",
       "    [0.06059408187866211,\n",
       "     0.9922859072685242,\n",
       "     0.1081530749797821,\n",
       "     0.02465019002556801]],\n",
       "   'colmap_im_id': 12},\n",
       "  {'file_path': 'images/frame_00013.png',\n",
       "   'transform_matrix': [[0.9245677590370178,\n",
       "     0.0047927126288414,\n",
       "     -0.3809875547885895,\n",
       "     0.14665018022060394],\n",
       "    [-0.37922170758247375,\n",
       "     0.10854668915271759,\n",
       "     -0.9189170002937317,\n",
       "     0.07074331492185593],\n",
       "    [0.03695083409547806,\n",
       "     0.9940797686576843,\n",
       "     0.10217626392841339,\n",
       "     0.02539941295981407]],\n",
       "   'colmap_im_id': 13},\n",
       "  {'file_path': 'images/frame_00014.png',\n",
       "   'transform_matrix': [[0.8513670563697815,\n",
       "     0.03171353042125702,\n",
       "     -0.5236107707023621,\n",
       "     0.135081946849823],\n",
       "    [-0.5235471129417419,\n",
       "     0.11368434131145477,\n",
       "     -0.8443780541419983,\n",
       "     0.08438169211149216],\n",
       "    [0.03274811804294586,\n",
       "     0.9930106997489929,\n",
       "     0.11339063942432404,\n",
       "     0.024805841967463493]],\n",
       "   'colmap_im_id': 14},\n",
       "  {'file_path': 'images/frame_00015.png',\n",
       "   'transform_matrix': [[0.8031134009361267,\n",
       "     0.055215299129486084,\n",
       "     -0.593262255191803,\n",
       "     0.16046400368213654],\n",
       "    [-0.5947996973991394,\n",
       "     0.13271571695804596,\n",
       "     -0.7928428649902344,\n",
       "     0.09599564224481583],\n",
       "    [0.03495817631483078,\n",
       "     0.9896149635314941,\n",
       "     0.13942784070968628,\n",
       "     0.027275126427412033]],\n",
       "   'colmap_im_id': 15},\n",
       "  {'file_path': 'images/frame_00016.png',\n",
       "   'transform_matrix': [[0.7987735867500305,\n",
       "     0.04546339064836502,\n",
       "     -0.5999115109443665,\n",
       "     0.2151442915201187],\n",
       "    [-0.5997229218482971,\n",
       "     0.1395379602909088,\n",
       "     -0.7879477143287659,\n",
       "     0.10799578577280045],\n",
       "    [0.04788766801357269,\n",
       "     0.9891724586486816,\n",
       "     0.1387246698141098,\n",
       "     0.03214416652917862]],\n",
       "   'colmap_im_id': 16},\n",
       "  {'file_path': 'images/frame_00017.png',\n",
       "   'transform_matrix': [[0.7802531123161316,\n",
       "     0.06943675130605698,\n",
       "     -0.6215977072715759,\n",
       "     0.26327747106552124],\n",
       "    [-0.6238961815834045,\n",
       "     0.15672460198402405,\n",
       "     -0.7656310796737671,\n",
       "     0.12864558398723602],\n",
       "    [0.044256702065467834,\n",
       "     0.985198438167572,\n",
       "     0.16560617089271545,\n",
       "     0.033537235110998154]],\n",
       "   'colmap_im_id': 17},\n",
       "  {'file_path': 'images/frame_00018.png',\n",
       "   'transform_matrix': [[0.779474675655365,\n",
       "     0.08728751540184021,\n",
       "     -0.6203224658966064,\n",
       "     0.29964888095855713],\n",
       "    [-0.6258465051651001,\n",
       "     0.151376873254776,\n",
       "     -0.7651152014732361,\n",
       "     0.1792888194322586],\n",
       "    [0.027117475867271423,\n",
       "     0.9846146702766418,\n",
       "     0.17262302339076996,\n",
       "     0.04192374274134636]],\n",
       "   'colmap_im_id': 18},\n",
       "  {'file_path': 'images/frame_00019.png',\n",
       "   'transform_matrix': [[0.8319475054740906,\n",
       "     0.0914844423532486,\n",
       "     -0.5472604036331177,\n",
       "     0.32947245240211487],\n",
       "    [-0.5544648170471191,\n",
       "     0.1740245372056961,\n",
       "     -0.8138085007667542,\n",
       "     0.19493822753429413],\n",
       "    [0.02078593522310257,\n",
       "     0.9804825782775879,\n",
       "     0.19550418853759766,\n",
       "     0.04175364226102829]],\n",
       "   'colmap_im_id': 19},\n",
       "  {'file_path': 'images/frame_00020.png',\n",
       "   'transform_matrix': [[0.9184953570365906,\n",
       "     0.027229003608226776,\n",
       "     -0.39449310302734375,\n",
       "     0.40144628286361694],\n",
       "    [-0.39015793800354004,\n",
       "     0.22479113936424255,\n",
       "     -0.8928861618041992,\n",
       "     0.20519210398197174],\n",
       "    [0.06436614692211151,\n",
       "     0.9740264415740967,\n",
       "     0.21709324419498444,\n",
       "     0.045016996562480927]],\n",
       "   'colmap_im_id': 20},\n",
       "  {'file_path': 'images/frame_00021.png',\n",
       "   'transform_matrix': [[0.9037631154060364,\n",
       "     0.018062449991703033,\n",
       "     -0.42765167355537415,\n",
       "     0.442425936460495],\n",
       "    [-0.4226360023021698,\n",
       "     0.1958143711090088,\n",
       "     -0.884893000125885,\n",
       "     0.2300499975681305],\n",
       "    [0.0677570104598999,\n",
       "     0.980474591255188,\n",
       "     0.18460363149642944,\n",
       "     0.049343839287757874]],\n",
       "   'colmap_im_id': 21},\n",
       "  {'file_path': 'images/frame_00022.png',\n",
       "   'transform_matrix': [[0.8037042021751404,\n",
       "     0.026390939950942993,\n",
       "     -0.5944435000419617,\n",
       "     0.4407338500022888],\n",
       "    [-0.5928003191947937,\n",
       "     0.12189820408821106,\n",
       "     -0.7960708141326904,\n",
       "     0.2655859589576721],\n",
       "    [0.05145253986120224,\n",
       "     0.9921916723251343,\n",
       "     0.11361464858055115,\n",
       "     0.058698900043964386]],\n",
       "   'colmap_im_id': 22},\n",
       "  {'file_path': 'images/frame_00023.png',\n",
       "   'transform_matrix': [[0.6909832954406738,\n",
       "     0.043124645948410034,\n",
       "     -0.7215832471847534,\n",
       "     0.4566068947315216],\n",
       "    [-0.7213936448097229,\n",
       "     0.10491997748613358,\n",
       "     -0.6845312714576721,\n",
       "     0.27507662773132324],\n",
       "    [0.04618833214044571,\n",
       "     0.9935451745986938,\n",
       "     0.10360780358314514,\n",
       "     0.060965005308389664]],\n",
       "   'colmap_im_id': 23},\n",
       "  {'file_path': 'images/frame_00024.png',\n",
       "   'transform_matrix': [[0.5918776392936707,\n",
       "     0.07975083589553833,\n",
       "     -0.8020727038383484,\n",
       "     0.4995195269584656],\n",
       "    [-0.8054482936859131,\n",
       "     0.09624968469142914,\n",
       "     -0.5847983360290527,\n",
       "     0.2839292287826538],\n",
       "    [0.030561089515686035,\n",
       "     0.9921571016311646,\n",
       "     0.12120321393013,\n",
       "     0.06054477021098137]],\n",
       "   'colmap_im_id': 24},\n",
       "  {'file_path': 'images/frame_00025.png',\n",
       "   'transform_matrix': [[0.46839845180511475,\n",
       "     0.11607858538627625,\n",
       "     -0.8758587837219238,\n",
       "     0.5278121829032898],\n",
       "    [-0.8834292888641357,\n",
       "     0.07553214579820633,\n",
       "     -0.46243661642074585,\n",
       "     0.29479238390922546],\n",
       "    [0.012476518750190735,\n",
       "     0.9903638958930969,\n",
       "     0.1379263550043106,\n",
       "     0.05801313742995262]],\n",
       "   'colmap_im_id': 25},\n",
       "  {'file_path': 'images/frame_00026.png',\n",
       "   'transform_matrix': [[0.30891305208206177,\n",
       "     0.09658540785312653,\n",
       "     -0.9461733102798462,\n",
       "     0.5257957577705383],\n",
       "    [-0.9510741829872131,\n",
       "     0.025571167469024658,\n",
       "     -0.30790284276008606,\n",
       "     0.30011409521102905],\n",
       "    [-0.005544163286685944,\n",
       "     0.994996190071106,\n",
       "     0.09975913166999817,\n",
       "     0.06368745863437653]],\n",
       "   'colmap_im_id': 26},\n",
       "  {'file_path': 'images/frame_00027.png',\n",
       "   'transform_matrix': [[0.16242745518684387,\n",
       "     0.05532769113779068,\n",
       "     -0.9851680994033813,\n",
       "     0.5200406312942505],\n",
       "    [-0.9866228699684143,\n",
       "     -0.004934623837471008,\n",
       "     -0.16294443607330322,\n",
       "     0.29184189438819885],\n",
       "    [-0.013876773416996002,\n",
       "     0.9984560608863831,\n",
       "     0.05378604680299759,\n",
       "     0.06700624525547028]],\n",
       "   'colmap_im_id': 27},\n",
       "  {'file_path': 'images/frame_00028.png',\n",
       "   'transform_matrix': [[0.05255861580371857,\n",
       "     0.036235108971595764,\n",
       "     -0.9979602098464966,\n",
       "     0.5139031410217285],\n",
       "    [-0.9983753561973572,\n",
       "     -0.020118139684200287,\n",
       "     -0.053310953080654144,\n",
       "     0.28075769543647766],\n",
       "    [-0.02200881391763687,\n",
       "     0.9991407990455627,\n",
       "     0.03511884808540344,\n",
       "     0.06844274699687958]],\n",
       "   'colmap_im_id': 28},\n",
       "  {'file_path': 'images/frame_00029.png',\n",
       "   'transform_matrix': [[-0.08722663670778275,\n",
       "     0.024811603128910065,\n",
       "     -0.9958794713020325,\n",
       "     0.4996698200702667],\n",
       "    [-0.9955942630767822,\n",
       "     -0.03669428080320358,\n",
       "     0.08628745377063751,\n",
       "     0.2696496248245239],\n",
       "    [-0.034402139484882355,\n",
       "     0.9990184307098389,\n",
       "     0.027903012931346893,\n",
       "     0.06907449662685394]],\n",
       "   'colmap_im_id': 29},\n",
       "  {'file_path': 'images/frame_00030.png',\n",
       "   'transform_matrix': [[-0.20312999188899994,\n",
       "     0.010216660797595978,\n",
       "     -0.9790984392166138,\n",
       "     0.4918697476387024],\n",
       "    [-0.9782503247261047,\n",
       "     -0.04501556605100632,\n",
       "     0.20248430967330933,\n",
       "     0.26270508766174316],\n",
       "    [-0.042005956172943115,\n",
       "     0.9989340305328369,\n",
       "     0.019138462841510773,\n",
       "     0.06820952147245407]],\n",
       "   'colmap_im_id': 30},\n",
       "  {'file_path': 'images/frame_00031.png',\n",
       "   'transform_matrix': [[-0.3076477646827698,\n",
       "     0.015301421284675598,\n",
       "     -0.9513772130012512,\n",
       "     0.48956674337387085],\n",
       "    [-0.9505833983421326,\n",
       "     -0.048826731741428375,\n",
       "     0.3066057562828064,\n",
       "     0.2572971284389496],\n",
       "    [-0.04176115244626999,\n",
       "     0.9986900687217712,\n",
       "     0.029566720128059387,\n",
       "     0.0665704756975174]],\n",
       "   'colmap_im_id': 31},\n",
       "  {'file_path': 'images/frame_00032.png',\n",
       "   'transform_matrix': [[-0.4359355866909027,\n",
       "     0.025697559118270874,\n",
       "     -0.8996108770370483,\n",
       "     0.48207294940948486],\n",
       "    [-0.8985902070999146,\n",
       "     -0.06791432946920395,\n",
       "     0.43350106477737427,\n",
       "     0.24755433201789856],\n",
       "    [-0.0499565452337265,\n",
       "     0.9973601698875427,\n",
       "     0.052697859704494476,\n",
       "     0.06461487710475922]],\n",
       "   'colmap_im_id': 32},\n",
       "  {'file_path': 'images/frame_00033.png',\n",
       "   'transform_matrix': [[-0.5101373791694641,\n",
       "     0.025027692317962646,\n",
       "     -0.8597286939620972,\n",
       "     0.4750809371471405],\n",
       "    [-0.8584733605384827,\n",
       "     -0.07612960040569305,\n",
       "     0.5071763396263123,\n",
       "     0.24008291959762573],\n",
       "    [-0.05275734141469002,\n",
       "     0.9967837929725647,\n",
       "     0.060322172939777374,\n",
       "     0.06409016996622086]],\n",
       "   'colmap_im_id': 33},\n",
       "  {'file_path': 'images/frame_00034.png',\n",
       "   'transform_matrix': [[-0.5910366773605347,\n",
       "     0.02278878539800644,\n",
       "     -0.8063226938247681,\n",
       "     0.4699662923812866],\n",
       "    [-0.80501389503479,\n",
       "     -0.08019363135099411,\n",
       "     0.5878108739852905,\n",
       "     0.23051266372203827],\n",
       "    [-0.051266446709632874,\n",
       "     0.9965187311172485,\n",
       "     0.06574267894029617,\n",
       "     0.06422102451324463]],\n",
       "   'colmap_im_id': 34},\n",
       "  {'file_path': 'images/frame_00035.png',\n",
       "   'transform_matrix': [[-0.6491155028343201,\n",
       "     0.025272689759731293,\n",
       "     -0.7602699398994446,\n",
       "     0.4694315791130066],\n",
       "    [-0.7588143944740295,\n",
       "     -0.09165157377719879,\n",
       "     0.6448261141777039,\n",
       "     0.21941974759101868],\n",
       "    [-0.053383439779281616,\n",
       "     0.9954703450202942,\n",
       "     0.0786697268486023,\n",
       "     0.06404297053813934]],\n",
       "   'colmap_im_id': 35},\n",
       "  {'file_path': 'images/frame_00036.png',\n",
       "   'transform_matrix': [[-0.6849461197853088,\n",
       "     0.017823487520217896,\n",
       "     -0.7283756732940674,\n",
       "     0.4703977704048157],\n",
       "    [-0.7251748442649841,\n",
       "     -0.11340902000665665,\n",
       "     0.679161012172699,\n",
       "     0.19512280821800232],\n",
       "    [-0.07049935311079025,\n",
       "     0.9933884739875793,\n",
       "     0.09060420095920563,\n",
       "     0.06464457511901855]],\n",
       "   'colmap_im_id': 36},\n",
       "  {'file_path': 'images/frame_00037.png',\n",
       "   'transform_matrix': [[-0.7227281332015991,\n",
       "     -0.0010844320058822632,\n",
       "     -0.6911315321922302,\n",
       "     0.46560049057006836],\n",
       "    [-0.685853898525238,\n",
       "     -0.1222306340932846,\n",
       "     0.7174009680747986,\n",
       "     0.17254748940467834],\n",
       "    [-0.08525542914867401,\n",
       "     0.9925011396408081,\n",
       "     0.08759576082229614,\n",
       "     0.0646999180316925]],\n",
       "   'colmap_im_id': 37},\n",
       "  {'file_path': 'images/frame_00038.png',\n",
       "   'transform_matrix': [[-0.794565737247467,\n",
       "     -0.002939283847808838,\n",
       "     -0.6071709394454956,\n",
       "     0.4541248679161072],\n",
       "    [-0.5984280109405518,\n",
       "     -0.16536563634872437,\n",
       "     0.7839248180389404,\n",
       "     0.16320303082466125],\n",
       "    [-0.10270939022302628,\n",
       "     0.9862279891967773,\n",
       "     0.12963491678237915,\n",
       "     0.05965033173561096]],\n",
       "   'colmap_im_id': 38},\n",
       "  {'file_path': 'images/frame_00039.png',\n",
       "   'transform_matrix': [[-0.8584592938423157,\n",
       "     -0.0022224485874176025,\n",
       "     -0.5128768682479858,\n",
       "     0.43703651428222656],\n",
       "    [-0.49928611516952515,\n",
       "     -0.22509878873825073,\n",
       "     0.8366862535476685,\n",
       "     0.1835409551858902],\n",
       "    [-0.11730745434761047,\n",
       "     0.9743334054946899,\n",
       "     0.1921285092830658,\n",
       "     0.05204395949840546]],\n",
       "   'colmap_im_id': 39},\n",
       "  {'file_path': 'images/frame_00040.png',\n",
       "   'transform_matrix': [[-0.920027494430542,\n",
       "     -0.015611425042152405,\n",
       "     -0.39154255390167236,\n",
       "     0.41919901967048645],\n",
       "    [-0.3775321841239929,\n",
       "     -0.23235423862934113,\n",
       "     0.896371066570282,\n",
       "     0.19659753143787384],\n",
       "    [-0.10497018694877625,\n",
       "     0.9725059270858765,\n",
       "     0.2078784853219986,\n",
       "     0.04727344214916229]],\n",
       "   'colmap_im_id': 40},\n",
       "  {'file_path': 'images/frame_00041.png',\n",
       "   'transform_matrix': [[-0.948603630065918,\n",
       "     -0.028514742851257324,\n",
       "     -0.3151791989803314,\n",
       "     0.40695708990097046],\n",
       "    [-0.3031027019023895,\n",
       "     -0.20449626445770264,\n",
       "     0.9307578206062317,\n",
       "     0.19953154027462006],\n",
       "    [-0.09099327027797699,\n",
       "     0.9784519672393799,\n",
       "     0.18534302711486816,\n",
       "     0.046522483229637146]],\n",
       "   'colmap_im_id': 41},\n",
       "  {'file_path': 'images/frame_00042.png',\n",
       "   'transform_matrix': [[-0.9856857061386108,\n",
       "     -0.038267333060503006,\n",
       "     -0.16419264674186707,\n",
       "     0.3874756693840027],\n",
       "    [-0.1537104845046997,\n",
       "     -0.1960974633693695,\n",
       "     0.9684622287750244,\n",
       "     0.1931748241186142],\n",
       "    [-0.06925821304321289,\n",
       "     0.9798374176025391,\n",
       "     0.18740837275981903,\n",
       "     0.04335683584213257]],\n",
       "   'colmap_im_id': 42},\n",
       "  {'file_path': 'images/frame_00043.png',\n",
       "   'transform_matrix': [[-0.9975621104240417,\n",
       "     -0.06604252755641937,\n",
       "     -0.022543739527463913,\n",
       "     0.35696083307266235],\n",
       "    [-0.00954437255859375,\n",
       "     -0.1908925473690033,\n",
       "     0.9815645813941956,\n",
       "     0.17707578837871552],\n",
       "    [-0.06912843883037567,\n",
       "     0.9793868064880371,\n",
       "     0.1897968053817749,\n",
       "     0.04284040629863739]],\n",
       "   'colmap_im_id': 43},\n",
       "  {'file_path': 'images/frame_00044.png',\n",
       "   'transform_matrix': [[-0.9937616586685181,\n",
       "     -0.0793730765581131,\n",
       "     0.07834337651729584,\n",
       "     0.33317166566848755],\n",
       "    [0.09212078899145126,\n",
       "     -0.1882600486278534,\n",
       "     0.9777893424034119,\n",
       "     0.16722871363162994],\n",
       "    [-0.06286121904850006,\n",
       "     0.9789065718650818,\n",
       "     0.19439753890037537,\n",
       "     0.04176807776093483]],\n",
       "   'colmap_im_id': 44},\n",
       "  {'file_path': 'images/frame_00045.png',\n",
       "   'transform_matrix': [[-0.9833053350448608,\n",
       "     -0.07794945687055588,\n",
       "     0.1644214689731598,\n",
       "     0.3055620789527893],\n",
       "    [0.17620323598384857,\n",
       "     -0.18234828114509583,\n",
       "     0.9673166871070862,\n",
       "     0.15343935787677765],\n",
       "    [-0.045419834554195404,\n",
       "     0.9801393151283264,\n",
       "     0.19303901493549347,\n",
       "     0.038508202880620956]],\n",
       "   'colmap_im_id': 45},\n",
       "  {'file_path': 'images/frame_00046.png',\n",
       "   'transform_matrix': [[-0.9631729125976562,\n",
       "     -0.07176955044269562,\n",
       "     0.25912749767303467,\n",
       "     0.28482407331466675],\n",
       "    [0.2682885527610779,\n",
       "     -0.19248521327972412,\n",
       "     0.9439124464988708,\n",
       "     0.13902904093265533],\n",
       "    [-0.017865948379039764,\n",
       "     0.9786718487739563,\n",
       "     0.20465151965618134,\n",
       "     0.03627219796180725]],\n",
       "   'colmap_im_id': 46},\n",
       "  {'file_path': 'images/frame_00047.png',\n",
       "   'transform_matrix': [[-0.9121553301811218,\n",
       "     -0.07671425491571426,\n",
       "     0.4026009738445282,\n",
       "     0.28178414702415466],\n",
       "    [0.4098035991191864,\n",
       "     -0.18462233245372772,\n",
       "     0.8932948112487793,\n",
       "     0.11162392050027847],\n",
       "    [0.005800679326057434,\n",
       "     0.979810893535614,\n",
       "     0.19984202086925507,\n",
       "     0.03808082267642021]],\n",
       "   'colmap_im_id': 47},\n",
       "  {'file_path': 'images/frame_00048.png',\n",
       "   'transform_matrix': [[-0.8627821803092957,\n",
       "     -0.11541227996349335,\n",
       "     0.4922264516353607,\n",
       "     0.2692563235759735],\n",
       "    [0.5055135488510132,\n",
       "     -0.18165622651576996,\n",
       "     0.8434791564941406,\n",
       "     0.07733407616615295],\n",
       "    [-0.007931865751743317,\n",
       "     0.976565957069397,\n",
       "     0.21507219970226288,\n",
       "     0.03881262242794037]],\n",
       "   'colmap_im_id': 48},\n",
       "  {'file_path': 'images/frame_00049.png',\n",
       "   'transform_matrix': [[-0.8514628410339355,\n",
       "     -0.09809762984514236,\n",
       "     0.5151580572128296,\n",
       "     0.20574665069580078],\n",
       "    [0.5244021415710449,\n",
       "     -0.1661265641450882,\n",
       "     0.8351073861122131,\n",
       "     0.05200379341840744],\n",
       "    [0.003659367561340332,\n",
       "     0.9812129735946655,\n",
       "     0.19289320707321167,\n",
       "     0.033933475613594055]],\n",
       "   'colmap_im_id': 49},\n",
       "  {'file_path': 'images/frame_00050.png',\n",
       "   'transform_matrix': [[-0.8211708664894104,\n",
       "     -0.1132640391588211,\n",
       "     0.5593295693397522,\n",
       "     0.17880584299564362],\n",
       "    [0.5706497430801392,\n",
       "     -0.17344063520431519,\n",
       "     0.8026688694953918,\n",
       "     0.043501511216163635],\n",
       "    [0.006096959114074707,\n",
       "     0.9783095717430115,\n",
       "     0.20705848932266235,\n",
       "     0.030366040766239166]],\n",
       "   'colmap_im_id': 50},\n",
       "  {'file_path': 'images/frame_00051.png',\n",
       "   'transform_matrix': [[-0.773206353187561,\n",
       "     -0.10301713645458221,\n",
       "     0.6257310509681702,\n",
       "     0.15239137411117554],\n",
       "    [0.6335784792900085,\n",
       "     -0.16753873229026794,\n",
       "     0.7553206086158752,\n",
       "     0.0014417795464396477],\n",
       "    [0.027023226022720337,\n",
       "     0.9804683923721313,\n",
       "     0.19481143355369568,\n",
       "     0.033129263669252396]],\n",
       "   'colmap_im_id': 51},\n",
       "  {'file_path': 'images/frame_00052.png',\n",
       "   'transform_matrix': [[-0.7660521268844604,\n",
       "     -0.12085262686014175,\n",
       "     0.6313151717185974,\n",
       "     0.12836973369121552],\n",
       "    [0.642022430896759,\n",
       "     -0.1914832442998886,\n",
       "     0.7423890233039856,\n",
       "     -0.059795115143060684],\n",
       "    [0.031166628003120422,\n",
       "     0.9740270376205444,\n",
       "     0.22427624464035034,\n",
       "     0.03204045072197914]],\n",
       "   'colmap_im_id': 52},\n",
       "  {'file_path': 'images/frame_00053.png',\n",
       "   'transform_matrix': [[-0.7866553068161011,\n",
       "     -0.08557526022195816,\n",
       "     0.6114329695701599,\n",
       "     0.08429422229528427],\n",
       "    [0.6157697439193726,\n",
       "     -0.18050670623779297,\n",
       "     0.7669713497161865,\n",
       "     -0.13887836039066315],\n",
       "    [0.044733986258506775,\n",
       "     0.9798439741134644,\n",
       "     0.19469121098518372,\n",
       "     0.030467865988612175]],\n",
       "   'colmap_im_id': 53},\n",
       "  {'file_path': 'images/frame_00054.png',\n",
       "   'transform_matrix': [[-0.7127620577812195,\n",
       "     -0.1061939150094986,\n",
       "     0.6933203339576721,\n",
       "     0.08539041131734848],\n",
       "    [0.6994702219963074,\n",
       "     -0.18100348114967346,\n",
       "     0.6913604736328125,\n",
       "     -0.24775627255439758],\n",
       "    [0.052075162529945374,\n",
       "     0.9777323603630066,\n",
       "     0.2032918930053711,\n",
       "     0.02822602353990078]],\n",
       "   'colmap_im_id': 54},\n",
       "  {'file_path': 'images/frame_00055.png',\n",
       "   'transform_matrix': [[-0.6379739046096802,\n",
       "     -0.16177858412265778,\n",
       "     0.7528725266456604,\n",
       "     0.10782094299793243],\n",
       "    [0.7695655822753906,\n",
       "     -0.16890239715576172,\n",
       "     0.615825355052948,\n",
       "     -0.3323226571083069],\n",
       "    [0.02753462642431259,\n",
       "     0.9722652435302734,\n",
       "     0.23225456476211548,\n",
       "     0.016158247366547585]],\n",
       "   'colmap_im_id': 55},\n",
       "  {'file_path': 'images/frame_00056.png',\n",
       "   'transform_matrix': [[-0.6497940421104431,\n",
       "     -0.29226168990135193,\n",
       "     0.701677143573761,\n",
       "     0.12368325144052505],\n",
       "    [0.7580241560935974,\n",
       "     -0.1808127760887146,\n",
       "     0.6266626715660095,\n",
       "     -0.35962942242622375],\n",
       "    [-0.05627728998661041,\n",
       "     0.939089834690094,\n",
       "     0.33903250098228455,\n",
       "     -0.008009101264178753]],\n",
       "   'colmap_im_id': 56},\n",
       "  {'file_path': 'images/frame_00057.png',\n",
       "   'transform_matrix': [[-0.6291238069534302,\n",
       "     -0.3574380576610565,\n",
       "     0.6902472972869873,\n",
       "     0.17635318636894226],\n",
       "    [0.77606201171875,\n",
       "     -0.2386341094970703,\n",
       "     0.583764910697937,\n",
       "     -0.4123848080635071],\n",
       "    [-0.04394328594207764,\n",
       "     0.9029350876808167,\n",
       "     0.42752450704574585,\n",
       "     -0.025333596393465996]],\n",
       "   'colmap_im_id': 57},\n",
       "  {'file_path': 'images/frame_00058.png',\n",
       "   'transform_matrix': [[-0.5456838011741638,\n",
       "     -0.35410940647125244,\n",
       "     0.7594970464706421,\n",
       "     0.2428172379732132],\n",
       "    [0.8376802802085876,\n",
       "     -0.20581702888011932,\n",
       "     0.5058963298797607,\n",
       "     -0.44657596945762634],\n",
       "    [-0.022825218737125397,\n",
       "     0.9122750759124756,\n",
       "     0.40894144773483276,\n",
       "     -0.02184996008872986]],\n",
       "   'colmap_im_id': 58},\n",
       "  {'file_path': 'images/frame_00059.png',\n",
       "   'transform_matrix': [[-0.5167717933654785,\n",
       "     -0.36086806654930115,\n",
       "     0.7763511538505554,\n",
       "     0.28171125054359436],\n",
       "    [0.8560624122619629,\n",
       "     -0.22861364483833313,\n",
       "     0.463565468788147,\n",
       "     -0.49881047010421753],\n",
       "    [0.01019848883152008,\n",
       "     0.9041626453399658,\n",
       "     0.4270666837692261,\n",
       "     -0.032717250287532806]],\n",
       "   'colmap_im_id': 59},\n",
       "  {'file_path': 'images/frame_00060.png',\n",
       "   'transform_matrix': [[-0.5377613306045532,\n",
       "     -0.37316882610321045,\n",
       "     0.756014347076416,\n",
       "     0.3085680902004242],\n",
       "    [0.8429213166236877,\n",
       "     -0.2562846839427948,\n",
       "     0.4730769991874695,\n",
       "     -0.5628726482391357],\n",
       "    [0.017217308282852173,\n",
       "     0.8916631937026978,\n",
       "     0.4523719847202301,\n",
       "     -0.035501714795827866]],\n",
       "   'colmap_im_id': 60},\n",
       "  {'file_path': 'images/frame_00061.png',\n",
       "   'transform_matrix': [[-0.406412810087204,\n",
       "     -0.37652868032455444,\n",
       "     0.832499086856842,\n",
       "     0.3359019458293915],\n",
       "    [0.9133331775665283,\n",
       "     -0.1928635835647583,\n",
       "     0.358644962310791,\n",
       "     -0.6122197508811951],\n",
       "    [0.025518648326396942,\n",
       "     0.9061069488525391,\n",
       "     0.42227834463119507,\n",
       "     -0.03346503525972366]],\n",
       "   'colmap_im_id': 61},\n",
       "  {'file_path': 'images/frame_00062.png',\n",
       "   'transform_matrix': [[-0.30050238966941833,\n",
       "     -0.398674875497818,\n",
       "     0.8664621710777283,\n",
       "     0.31236547231674194],\n",
       "    [0.9526561498641968,\n",
       "     -0.16957029700279236,\n",
       "     0.25237342715263367,\n",
       "     -0.6694895625114441],\n",
       "    [0.04631128907203674,\n",
       "     0.9012792110443115,\n",
       "     0.4307563006877899,\n",
       "     -0.043136052787303925]],\n",
       "   'colmap_im_id': 62},\n",
       "  {'file_path': 'images/frame_00063.png',\n",
       "   'transform_matrix': [[-0.14753486216068268,\n",
       "     -0.3749375343322754,\n",
       "     0.9152351021766663,\n",
       "     0.2798396944999695],\n",
       "    [0.9854282736778259,\n",
       "     -0.13491636514663696,\n",
       "     0.10357971489429474,\n",
       "     -0.7278556823730469],\n",
       "    [0.08464427292346954,\n",
       "     0.9171801805496216,\n",
       "     0.3893789052963257,\n",
       "     -0.046612970530986786]],\n",
       "   'colmap_im_id': 63},\n",
       "  {'file_path': 'images/frame_00064.png',\n",
       "   'transform_matrix': [[0.046865303069353104,\n",
       "     -0.396523654460907,\n",
       "     0.9168274402618408,\n",
       "     0.2756250500679016],\n",
       "    [0.9954853653907776,\n",
       "     -0.057300277054309845,\n",
       "     -0.07566815614700317,\n",
       "     -0.7935521602630615],\n",
       "    [0.0825386643409729,\n",
       "     0.9162344932556152,\n",
       "     0.3920481204986572,\n",
       "     -0.04715979844331741]],\n",
       "   'colmap_im_id': 64},\n",
       "  {'file_path': 'images/frame_00065.png',\n",
       "   'transform_matrix': [[0.21777932345867157,\n",
       "     -0.382719486951828,\n",
       "     0.897829532623291,\n",
       "     0.2370442897081375],\n",
       "    [0.9724925756454468,\n",
       "     0.007194750010967255,\n",
       "     -0.23282280564308167,\n",
       "     -0.8432428240776062],\n",
       "    [0.08264617621898651,\n",
       "     0.9238365292549133,\n",
       "     0.3737587332725525,\n",
       "     -0.05480467155575752]],\n",
       "   'colmap_im_id': 65},\n",
       "  {'file_path': 'images/frame_00066.png',\n",
       "   'transform_matrix': [[0.29640641808509827,\n",
       "     -0.3683586120605469,\n",
       "     0.881166934967041,\n",
       "     0.17299917340278625],\n",
       "    [0.9497758150100708,\n",
       "     0.016750525683164597,\n",
       "     -0.3124827444553375,\n",
       "     -0.8832768797874451],\n",
       "    [0.1003456860780716,\n",
       "     0.9295328855514526,\n",
       "     0.3548230528831482,\n",
       "     -0.056911081075668335]],\n",
       "   'colmap_im_id': 66},\n",
       "  {'file_path': 'images/frame_00067.png',\n",
       "   'transform_matrix': [[0.46195188164711,\n",
       "     -0.33335861563682556,\n",
       "     0.8218713402748108,\n",
       "     0.1084645614027977],\n",
       "    [0.8812026977539062,\n",
       "     0.0676041767001152,\n",
       "     -0.46787968277931213,\n",
       "     -0.9434281587600708],\n",
       "    [0.10040977597236633,\n",
       "     0.9403731822967529,\n",
       "     0.32498642802238464,\n",
       "     -0.06059139221906662]],\n",
       "   'colmap_im_id': 67},\n",
       "  {'file_path': 'images/frame_00068.png',\n",
       "   'transform_matrix': [[0.5126547813415527,\n",
       "     -0.3452250361442566,\n",
       "     0.7861326932907104,\n",
       "     0.03288325294852257],\n",
       "    [0.8525007963180542,\n",
       "     0.09577001631259918,\n",
       "     -0.5138779878616333,\n",
       "     -0.9736337065696716],\n",
       "    [0.10211561620235443,\n",
       "     0.9336207509040833,\n",
       "     0.34340158104896545,\n",
       "     -0.06979064643383026]],\n",
       "   'colmap_im_id': 68},\n",
       "  {'file_path': 'images/frame_00069.png',\n",
       "   'transform_matrix': [[0.5648621320724487,\n",
       "     -0.3308517038822174,\n",
       "     0.755954921245575,\n",
       "     -0.05767211318016052],\n",
       "    [0.8181076049804688,\n",
       "     0.10480660945177078,\n",
       "     -0.5654339790344238,\n",
       "     -0.9835150241851807],\n",
       "    [0.10784570872783661,\n",
       "     0.9378447532653809,\n",
       "     0.32987359166145325,\n",
       "     -0.07226140797138214]],\n",
       "   'colmap_im_id': 69},\n",
       "  {'file_path': 'images/frame_00070.png',\n",
       "   'transform_matrix': [[0.7156639099121094,\n",
       "     -0.31378060579299927,\n",
       "     0.6239926815032959,\n",
       "     -0.15112851560115814],\n",
       "    [0.6891689896583557, 0.17212709784507751, -0.7038596272468567, -1.0],\n",
       "    [0.11345145106315613,\n",
       "     0.9337633848190308,\n",
       "     0.3394330143928528,\n",
       "     -0.07848337292671204]],\n",
       "   'colmap_im_id': 70},\n",
       "  {'file_path': 'images/frame_00071.png',\n",
       "   'transform_matrix': [[0.7289554476737976,\n",
       "     -0.27556854486465454,\n",
       "     0.6266465187072754,\n",
       "     -0.22478583455085754],\n",
       "    [0.6809453368186951,\n",
       "     0.1979287564754486,\n",
       "     -0.7050798535346985,\n",
       "     -0.9911891222000122],\n",
       "    [0.07026646286249161,\n",
       "     0.940683901309967,\n",
       "     0.3319283723831177,\n",
       "     -0.08178457617759705]],\n",
       "   'colmap_im_id': 71},\n",
       "  {'file_path': 'images/frame_00072.png',\n",
       "   'transform_matrix': [[0.7117164731025696,\n",
       "     -0.2907685339450836,\n",
       "     0.6394633054733276,\n",
       "     -0.2899155914783478],\n",
       "    [0.695961594581604,\n",
       "     0.168269544839859,\n",
       "     -0.6980851292610168,\n",
       "     -0.9822661876678467],\n",
       "    [0.09537900984287262,\n",
       "     0.9418805837631226,\n",
       "     0.3221239447593689,\n",
       "     -0.08410824090242386]],\n",
       "   'colmap_im_id': 72},\n",
       "  {'file_path': 'images/frame_00073.png',\n",
       "   'transform_matrix': [[0.8250424861907959,\n",
       "     -0.24478620290756226,\n",
       "     0.5092982053756714,\n",
       "     -0.35362595319747925],\n",
       "    [0.5538937449455261,\n",
       "     0.17196007072925568,\n",
       "     -0.8146357536315918,\n",
       "     -0.9723285436630249],\n",
       "    [0.1118326485157013,\n",
       "     0.9542062282562256,\n",
       "     0.27745991945266724,\n",
       "     -0.08521044999361038]],\n",
       "   'colmap_im_id': 73},\n",
       "  {'file_path': 'images/frame_00074.png',\n",
       "   'transform_matrix': [[0.8376312851905823,\n",
       "     -0.22538810968399048,\n",
       "     0.4975680112838745,\n",
       "     -0.42003047466278076],\n",
       "    [0.5411146879196167,\n",
       "     0.2179412543773651,\n",
       "     -0.812217116355896,\n",
       "     -0.9210193753242493],\n",
       "    [0.07462345063686371,\n",
       "     0.9495798349380493,\n",
       "     0.3045152425765991,\n",
       "     -0.08784611523151398]],\n",
       "   'colmap_im_id': 74},\n",
       "  {'file_path': 'images/frame_00075.png',\n",
       "   'transform_matrix': [[0.8228603005409241,\n",
       "     -0.25331389904022217,\n",
       "     0.5086579918861389,\n",
       "     -0.5001296997070312],\n",
       "    [0.5629186034202576,\n",
       "     0.2411208152770996,\n",
       "     -0.790558934211731,\n",
       "     -0.8775264024734497],\n",
       "    [0.07761155068874359,\n",
       "     0.9368526339530945,\n",
       "     0.3410038352012634,\n",
       "     -0.09254880249500275]],\n",
       "   'colmap_im_id': 75},\n",
       "  {'file_path': 'images/frame_00076.png',\n",
       "   'transform_matrix': [[0.9076232314109802,\n",
       "     -0.17229211330413818,\n",
       "     0.38279959559440613,\n",
       "     -0.5913781523704529],\n",
       "    [0.41868430376052856,\n",
       "     0.30552077293395996,\n",
       "     -0.8551961779594421,\n",
       "     -0.8812830448150635],\n",
       "    [0.030390335246920586,\n",
       "     0.9364680647850037,\n",
       "     0.3494337201118469,\n",
       "     -0.09589368104934692]],\n",
       "   'colmap_im_id': 76},\n",
       "  {'file_path': 'images/frame_00077.png',\n",
       "   'transform_matrix': [[0.948348879814148,\n",
       "     -0.14689898490905762,\n",
       "     0.281167209148407,\n",
       "     -0.6476336121559143],\n",
       "    [0.3135967552661896,\n",
       "     0.3003808259963989,\n",
       "     -0.9007932543754578,\n",
       "     -0.8576177358627319],\n",
       "    [0.04786837846040726,\n",
       "     0.9424394369125366,\n",
       "     0.3309328854084015,\n",
       "     -0.10247679799795151]],\n",
       "   'colmap_im_id': 77},\n",
       "  {'file_path': 'images/frame_00078.png',\n",
       "   'transform_matrix': [[0.9729966521263123,\n",
       "     -0.14606177806854248,\n",
       "     0.17872720956802368,\n",
       "     -0.6999678015708923],\n",
       "    [0.21544282138347626,\n",
       "     0.2968069911003113,\n",
       "     -0.9303171038627625,\n",
       "     -0.8216042518615723],\n",
       "    [0.08283629268407822,\n",
       "     0.9437009692192078,\n",
       "     0.3202601969242096,\n",
       "     -0.10408171266317368]],\n",
       "   'colmap_im_id': 78},\n",
       "  {'file_path': 'images/frame_00079.png',\n",
       "   'transform_matrix': [[0.9838709235191345,\n",
       "     -0.15331846475601196,\n",
       "     0.0921488031744957,\n",
       "     -0.7553638219833374],\n",
       "    [0.13218991458415985,\n",
       "     0.2761109471321106,\n",
       "     -0.9519919157028198,\n",
       "     -0.7855011820793152],\n",
       "    [0.1205146387219429,\n",
       "     0.9488183259963989,\n",
       "     0.29192471504211426,\n",
       "     -0.10249841213226318]],\n",
       "   'colmap_im_id': 79},\n",
       "  {'file_path': 'images/frame_00080.png',\n",
       "   'transform_matrix': [[0.9903272986412048,\n",
       "     -0.1371808648109436,\n",
       "     0.02081536315381527,\n",
       "     -0.7693781852722168],\n",
       "    [0.05718199908733368,\n",
       "     0.26682692766189575,\n",
       "     -0.9620466232299805,\n",
       "     -0.7202963829040527],\n",
       "    [0.1264202892780304,\n",
       "     0.9539312720298767,\n",
       "     0.27209025621414185,\n",
       "     -0.10008470714092255]],\n",
       "   'colmap_im_id': 80},\n",
       "  {'file_path': 'images/frame_00081.png',\n",
       "   'transform_matrix': [[0.9902874231338501,\n",
       "     -0.1389865130186081,\n",
       "     -0.003673594444990158,\n",
       "     -0.77244633436203],\n",
       "    [0.03158649057149887,\n",
       "     0.25062981247901917,\n",
       "     -0.9675675630569458,\n",
       "     -0.6482980847358704],\n",
       "    [0.13539955019950867,\n",
       "     0.9580540060997009,\n",
       "     0.25258564949035645,\n",
       "     -0.09358204901218414]],\n",
       "   'colmap_im_id': 81},\n",
       "  {'file_path': 'images/frame_00082.png',\n",
       "   'transform_matrix': [[0.9908219575881958,\n",
       "     -0.1297910511493683,\n",
       "     -0.0377633199095726,\n",
       "     -0.7890834212303162],\n",
       "    [-0.015240846201777458,\n",
       "     0.17032094299793243,\n",
       "     -0.9852707982063293,\n",
       "     -0.5742969512939453],\n",
       "    [0.13431119918823242,\n",
       "     0.9768034815788269,\n",
       "     0.16677960753440857,\n",
       "     -0.08479280769824982]],\n",
       "   'colmap_im_id': 82},\n",
       "  {'file_path': 'images/frame_00083.png',\n",
       "   'transform_matrix': [[0.9898142218589783,\n",
       "     -0.11956240236759186,\n",
       "     -0.0772826224565506,\n",
       "     -0.8039925694465637],\n",
       "    [-0.05801194906234741,\n",
       "     0.1570005863904953,\n",
       "     -0.985893189907074,\n",
       "     -0.5162555575370789],\n",
       "    [0.13000917434692383,\n",
       "     0.980334460735321,\n",
       "     0.1484653800725937,\n",
       "     -0.07720145583152771]],\n",
       "   'colmap_im_id': 83},\n",
       "  {'file_path': 'images/frame_00084.png',\n",
       "   'transform_matrix': [[0.9964191317558289,\n",
       "     -0.08352140337228775,\n",
       "     0.013150513172149658,\n",
       "     -0.8079346418380737],\n",
       "    [0.018857313320040703,\n",
       "     0.06791052222251892,\n",
       "     -0.9975132346153259,\n",
       "     -0.37717360258102417],\n",
       "    [0.08242064714431763,\n",
       "     0.9941892623901367,\n",
       "     0.06924232840538025,\n",
       "     -0.0682995393872261]],\n",
       "   'colmap_im_id': 84},\n",
       "  {'file_path': 'images/frame_00085.png',\n",
       "   'transform_matrix': [[0.9982821941375732,\n",
       "     -0.05361482873558998,\n",
       "     -0.02362256497144699,\n",
       "     -0.8031365871429443],\n",
       "    [-0.01738179661333561,\n",
       "     0.1140168160200119,\n",
       "     -0.9933267831802368,\n",
       "     -0.29432883858680725],\n",
       "    [0.055950410664081573,\n",
       "     0.9920310378074646,\n",
       "     0.11288904398679733,\n",
       "     -0.05923052132129669]],\n",
       "   'colmap_im_id': 85},\n",
       "  {'file_path': 'images/frame_00086.png',\n",
       "   'transform_matrix': [[0.9934999942779541,\n",
       "     -0.040163666009902954,\n",
       "     -0.1065111979842186,\n",
       "     -0.802102267742157],\n",
       "    [-0.10297930985689163,\n",
       "     0.08161109685897827,\n",
       "     -0.9913298487663269,\n",
       "     -0.21761460602283478],\n",
       "    [0.0485079362988472,\n",
       "     0.9958546757698059,\n",
       "     0.07694460451602936,\n",
       "     -0.054620470851659775]],\n",
       "   'colmap_im_id': 86},\n",
       "  {'file_path': 'images/frame_00087.png',\n",
       "   'transform_matrix': [[0.9534052014350891,\n",
       "     -0.020770855247974396,\n",
       "     -0.3009769916534424,\n",
       "     -0.7934355139732361],\n",
       "    [-0.29889118671417236,\n",
       "     0.07061270624399185,\n",
       "     -0.9516711235046387,\n",
       "     -0.15277685225009918],\n",
       "    [0.041019827127456665,\n",
       "     0.9972875714302063,\n",
       "     0.061114292591810226,\n",
       "     -0.032669954001903534]],\n",
       "   'colmap_im_id': 87},\n",
       "  {'file_path': 'images/frame_00088.png',\n",
       "   'transform_matrix': [[0.875016450881958,\n",
       "     0.023117490112781525,\n",
       "     -0.48354092240333557,\n",
       "     -0.7367919683456421],\n",
       "    [-0.48408985137939453,\n",
       "     0.038043104112148285,\n",
       "     -0.8741909861564636,\n",
       "     -0.09159441292285919],\n",
       "    [-0.0018137097358703613,\n",
       "     0.9990086555480957,\n",
       "     0.044479288160800934,\n",
       "     -0.0259482990950346]],\n",
       "   'colmap_im_id': 88},\n",
       "  {'file_path': 'images/frame_00089.png',\n",
       "   'transform_matrix': [[0.8127528429031372,\n",
       "     0.0337289497256279,\n",
       "     -0.5816314220428467,\n",
       "     -0.6988109350204468],\n",
       "    [-0.5818025469779968,\n",
       "     0.09948675334453583,\n",
       "     -0.8072226047515869,\n",
       "     -0.03752244636416435],\n",
       "    [0.030637845396995544,\n",
       "     0.9944670796394348,\n",
       "     0.10048173367977142,\n",
       "     -0.029898546636104584]],\n",
       "   'colmap_im_id': 89},\n",
       "  {'file_path': 'images/frame_00090.png',\n",
       "   'transform_matrix': [[0.6321449279785156,\n",
       "     0.20938915014266968,\n",
       "     -0.74602210521698,\n",
       "     -0.6715784668922424],\n",
       "    [-0.7742448449134827,\n",
       "     0.1326424777507782,\n",
       "     -0.6188303232192993,\n",
       "     -0.004994599614292383],\n",
       "    [-0.030622124671936035,\n",
       "     0.9687941670417786,\n",
       "     0.24596774578094482,\n",
       "     -0.042534489184617996]],\n",
       "   'colmap_im_id': 90},\n",
       "  {'file_path': 'images/frame_00091.png',\n",
       "   'transform_matrix': [[0.40154290199279785,\n",
       "     0.39259934425354004,\n",
       "     -0.827423095703125,\n",
       "     -0.6351717710494995],\n",
       "    [-0.9132781624794006,\n",
       "     0.10411978513002396,\n",
       "     -0.3938046097755432,\n",
       "     0.010104864835739136],\n",
       "    [-0.06845632195472717,\n",
       "     0.9137969613075256,\n",
       "     0.40036100149154663,\n",
       "     -0.059184275567531586]],\n",
       "   'colmap_im_id': 91},\n",
       "  {'file_path': 'images/frame_00092.png',\n",
       "   'transform_matrix': [[0.2222553938627243,\n",
       "     0.39518195390701294,\n",
       "     -0.8913100957870483,\n",
       "     -0.6407114863395691],\n",
       "    [-0.9733638167381287,\n",
       "     0.037181515246629715,\n",
       "     -0.2262309193611145,\n",
       "     0.02675536647439003],\n",
       "    [-0.056262075901031494,\n",
       "     0.9178500771522522,\n",
       "     0.3929196000099182,\n",
       "     -0.06276040524244308]],\n",
       "   'colmap_im_id': 92},\n",
       "  {'file_path': 'images/frame_00093.png',\n",
       "   'transform_matrix': [[-0.01872904971241951,\n",
       "     0.4491438865661621,\n",
       "     -0.8932631015777588,\n",
       "     -0.6855596303939819],\n",
       "    [-0.9973626136779785,\n",
       "     -0.07105215638875961,\n",
       "     -0.01481420174241066,\n",
       "     0.05642421543598175],\n",
       "    [-0.07012197375297546,\n",
       "     0.890629768371582,\n",
       "     0.44929009675979614,\n",
       "     -0.07173382490873337]],\n",
       "   'colmap_im_id': 93},\n",
       "  {'file_path': 'images/frame_00094.png',\n",
       "   'transform_matrix': [[-0.10625441372394562,\n",
       "     0.5211236476898193,\n",
       "     -0.8468413352966309,\n",
       "     -0.7059869766235352],\n",
       "    [-0.9938058853149414,\n",
       "     -0.08354191482067108,\n",
       "     0.0732848197221756,\n",
       "     0.06442974507808685],\n",
       "    [-0.032556287944316864,\n",
       "     0.8493826389312744,\n",
       "     0.5267724394798279,\n",
       "     -0.08325210213661194]],\n",
       "   'colmap_im_id': 94},\n",
       "  {'file_path': 'images/frame_00095.png',\n",
       "   'transform_matrix': [[-0.41680940985679626,\n",
       "     0.4378882944583893,\n",
       "     -0.7965699434280396,\n",
       "     -0.7391721606254578],\n",
       "    [-0.9079287648200989,\n",
       "     -0.2429649531841278,\n",
       "     0.3415164351463318,\n",
       "     0.11143016070127487],\n",
       "    [-0.04399252310395241,\n",
       "     0.8655760288238525,\n",
       "     0.4988414943218231,\n",
       "     -0.08051926642656326]],\n",
       "   'colmap_im_id': 95},\n",
       "  {'file_path': 'images/frame_00096.png',\n",
       "   'transform_matrix': [[-0.4166736602783203,\n",
       "     0.411586195230484,\n",
       "     -0.8105428814888,\n",
       "     -0.7349281907081604],\n",
       "    [-0.9081016182899475,\n",
       "     -0.22930672764778137,\n",
       "     0.35038551688194275,\n",
       "     0.14440441131591797],\n",
       "    [-0.04164907708764076,\n",
       "     0.8820517063140869,\n",
       "     0.46930810809135437,\n",
       "     -0.0730864480137825]],\n",
       "   'colmap_im_id': 96},\n",
       "  {'file_path': 'images/frame_00097.png',\n",
       "   'transform_matrix': [[-0.4279537498950958,\n",
       "     0.43565282225608826,\n",
       "     -0.7918725609779358,\n",
       "     -0.6986664533615112],\n",
       "    [-0.9036162495613098,\n",
       "     -0.22394002974033356,\n",
       "     0.3651418685913086,\n",
       "     0.1344885528087616],\n",
       "    [-0.01825685426592827,\n",
       "     0.8718127012252808,\n",
       "     0.4894990026950836,\n",
       "     -0.07303956896066666]],\n",
       "   'colmap_im_id': 97},\n",
       "  {'file_path': 'images/frame_00098.png',\n",
       "   'transform_matrix': [[-0.3142217993736267,\n",
       "     0.4465831518173218,\n",
       "     -0.8377518057823181,\n",
       "     -0.644761860370636],\n",
       "    [-0.9493347406387329,\n",
       "     -0.1428648829460144,\n",
       "     0.27991658449172974,\n",
       "     0.11516192555427551],\n",
       "    [0.005320712924003601,\n",
       "     0.8832627534866333,\n",
       "     0.4688481092453003,\n",
       "     -0.070868581533432]],\n",
       "   'colmap_im_id': 98},\n",
       "  {'file_path': 'images/frame_00099.png',\n",
       "   'transform_matrix': [[-0.2448163628578186,\n",
       "     0.3932773768901825,\n",
       "     -0.8862267732620239,\n",
       "     -0.5948963761329651],\n",
       "    [-0.9695404767990112,\n",
       "     -0.10635866224765778,\n",
       "     0.2206331044435501,\n",
       "     0.1267717182636261],\n",
       "    [-0.007487878203392029,\n",
       "     0.9132473468780518,\n",
       "     0.4073367416858673,\n",
       "     -0.06096399575471878]],\n",
       "   'colmap_im_id': 99},\n",
       "  {'file_path': 'images/frame_00100.png',\n",
       "   'transform_matrix': [[-0.1991243213415146,\n",
       "     0.3222511410713196,\n",
       "     -0.9254748225212097,\n",
       "     -0.5261473655700684],\n",
       "    [-0.9789249300956726,\n",
       "     -0.10910001397132874,\n",
       "     0.17263588309288025,\n",
       "     0.1222894936800003],\n",
       "    [-0.045337218791246414,\n",
       "     0.9403464198112488,\n",
       "     0.3371841609477997,\n",
       "     -0.051154930144548416]],\n",
       "   'colmap_im_id': 100},\n",
       "  {'file_path': 'images/frame_00101.png',\n",
       "   'transform_matrix': [[0.020001573488116264,\n",
       "     0.3086400628089905,\n",
       "     -0.9509685635566711,\n",
       "     -0.457663893699646],\n",
       "    [-0.9993776679039001,\n",
       "     -0.021470434963703156,\n",
       "     -0.027988053858280182,\n",
       "     0.09910362213850021],\n",
       "    [-0.029055945575237274,\n",
       "     0.9509365558624268,\n",
       "     0.3080185651779175,\n",
       "     -0.04509515315294266]],\n",
       "   'colmap_im_id': 101},\n",
       "  {'file_path': 'images/frame_00102.png',\n",
       "   'transform_matrix': [[0.16855256259441376,\n",
       "     0.2993108034133911,\n",
       "     -0.9391501545906067,\n",
       "     -0.39142292737960815],\n",
       "    [-0.9855024814605713,\n",
       "     0.03245478495955467,\n",
       "     -0.1665281057357788,\n",
       "     0.11005161702632904],\n",
       "    [-0.019363753497600555,\n",
       "     0.9536035656929016,\n",
       "     0.3004418909549713,\n",
       "     -0.04274153709411621]],\n",
       "   'colmap_im_id': 102},\n",
       "  {'file_path': 'images/frame_00103.png',\n",
       "   'transform_matrix': [[0.3137301504611969,\n",
       "     0.32803308963775635,\n",
       "     -0.8910486698150635,\n",
       "     -0.3051687180995941],\n",
       "    [-0.9491643309593201,\n",
       "     0.08294375240802765,\n",
       "     -0.30365699529647827,\n",
       "     0.12663178145885468],\n",
       "    [-0.025702625513076782,\n",
       "     0.9410178065299988,\n",
       "     0.3373792767524719,\n",
       "     -0.03877328708767891]],\n",
       "   'colmap_im_id': 103},\n",
       "  {'file_path': 'images/frame_00104.png',\n",
       "   'transform_matrix': [[0.6248529553413391,\n",
       "     0.2722868323326111,\n",
       "     -0.7317231297492981,\n",
       "     -0.24525803327560425],\n",
       "    [-0.7801674008369446,\n",
       "     0.18179336190223694,\n",
       "     -0.5985733270645142,\n",
       "     0.11900369077920914],\n",
       "    [-0.029961198568344116,\n",
       "     0.9448868036270142,\n",
       "     0.3260234296321869,\n",
       "     -0.03036867268383503]],\n",
       "   'colmap_im_id': 104},\n",
       "  {'file_path': 'images/frame_00105.png',\n",
       "   'transform_matrix': [[0.8255820870399475,\n",
       "     0.19749972224235535,\n",
       "     -0.5285906195640564,\n",
       "     -0.23639842867851257],\n",
       "    [-0.5638201832771301,\n",
       "     0.2508258521556854,\n",
       "     -0.7868883013725281,\n",
       "     0.17014354467391968],\n",
       "    [-0.02282603085041046,\n",
       "     0.9476709365844727,\n",
       "     0.31843167543411255,\n",
       "     -0.028027739375829697]],\n",
       "   'colmap_im_id': 105},\n",
       "  {'file_path': 'images/frame_00106.png',\n",
       "   'transform_matrix': [[0.9335088133811951,\n",
       "     0.044208675622940063,\n",
       "     -0.3558184504508972,\n",
       "     -0.25778478384017944],\n",
       "    [-0.35527390241622925,\n",
       "     0.24797695875167847,\n",
       "     -0.9012702107429504,\n",
       "     0.2529720664024353],\n",
       "    [0.04839080572128296,\n",
       "     0.9677567481994629,\n",
       "     0.24719488620758057,\n",
       "     -0.017441311851143837]],\n",
       "   'colmap_im_id': 106},\n",
       "  {'file_path': 'images/frame_00107.png',\n",
       "   'transform_matrix': [[0.9719839096069336,\n",
       "     -0.015206240117549896,\n",
       "     -0.23455478250980377,\n",
       "     -0.2485932558774948],\n",
       "    [-0.23056751489639282,\n",
       "     0.13221292197704315,\n",
       "     -0.9640322923660278,\n",
       "     0.3002314865589142],\n",
       "    [0.045670464634895325,\n",
       "     0.9911047220230103,\n",
       "     0.12500277161598206,\n",
       "     0.003518887795507908]],\n",
       "   'colmap_im_id': 107},\n",
       "  {'file_path': 'images/frame_00108.png',\n",
       "   'transform_matrix': [[0.9794518351554871,\n",
       "     -0.04674607887864113,\n",
       "     -0.19618581235408783,\n",
       "     -0.22846214473247528],\n",
       "    [-0.19755417108535767,\n",
       "     -0.026666812598705292,\n",
       "     -0.9799292087554932,\n",
       "     0.32942911982536316],\n",
       "    [0.040576204657554626,\n",
       "     0.9985507726669312,\n",
       "     -0.035353753715753555,\n",
       "     0.03214409574866295]],\n",
       "   'colmap_im_id': 108},\n",
       "  {'file_path': 'images/frame_00109.png',\n",
       "   'transform_matrix': [[0.9315105676651001,\n",
       "     -0.027499131858348846,\n",
       "     -0.3626731336116791,\n",
       "     -0.24546968936920166],\n",
       "    [-0.3630998432636261,\n",
       "     -0.012375868856906891,\n",
       "     -0.9316680431365967,\n",
       "     0.39391666650772095],\n",
       "    [0.021131671965122223,\n",
       "     0.999545156955719,\n",
       "     -0.021513190120458603,\n",
       "     0.030473284423351288]],\n",
       "   'colmap_im_id': 109},\n",
       "  {'file_path': 'images/frame_00110.png',\n",
       "   'transform_matrix': [[0.8143249750137329,\n",
       "     0.05985081195831299,\n",
       "     -0.5773149728775024,\n",
       "     -0.2518758177757263],\n",
       "    [-0.5797249674797058,\n",
       "     0.03559050336480141,\n",
       "     -0.814034640789032,\n",
       "     0.4556357264518738],\n",
       "    [-0.028173699975013733,\n",
       "     0.997572660446167,\n",
       "     0.06367924809455872,\n",
       "     0.025102300569415092]],\n",
       "   'colmap_im_id': 110},\n",
       "  {'file_path': 'images/frame_00111.png',\n",
       "   'transform_matrix': [[0.7075744867324829,\n",
       "     0.15162497758865356,\n",
       "     -0.6901798248291016,\n",
       "     -0.210513174533844],\n",
       "    [-0.7065240740776062,\n",
       "     0.13420052826404572,\n",
       "     -0.6948481798171997,\n",
       "     0.5378912091255188],\n",
       "    [-0.012733832001686096,\n",
       "     0.979285478591919,\n",
       "     0.20208357274532318,\n",
       "     0.013984154909849167]],\n",
       "   'colmap_im_id': 111},\n",
       "  {'file_path': 'images/frame_00112.png',\n",
       "   'transform_matrix': [[0.546221911907196,\n",
       "     0.2402421236038208,\n",
       "     -0.8024495840072632,\n",
       "     -0.18834321200847626],\n",
       "    [-0.8373457193374634,\n",
       "     0.13119062781333923,\n",
       "     -0.5306988954544067,\n",
       "     0.6060085296630859],\n",
       "    [-0.02222234010696411,\n",
       "     0.9618069529533386,\n",
       "     0.27282488346099854,\n",
       "     0.014716466888785362]],\n",
       "   'colmap_im_id': 112},\n",
       "  {'file_path': 'images/frame_00113.png',\n",
       "   'transform_matrix': [[0.41255009174346924,\n",
       "     0.34518659114837646,\n",
       "     -0.8429997563362122,\n",
       "     -0.16858048737049103],\n",
       "    [-0.9108856320381165,\n",
       "     0.16594648361206055,\n",
       "     -0.37782156467437744,\n",
       "     0.6462743878364563],\n",
       "    [0.009473904967308044,\n",
       "     0.9237467646598816,\n",
       "     0.3828867971897125,\n",
       "     0.004236694425344467]],\n",
       "   'colmap_im_id': 113},\n",
       "  {'file_path': 'images/frame_00114.png',\n",
       "   'transform_matrix': [[0.3304218649864197,\n",
       "     0.3712477684020996,\n",
       "     -0.8677536845207214,\n",
       "     -0.10069328546524048],\n",
       "    [-0.9437090754508972,\n",
       "     0.11502908170223236,\n",
       "     -0.3101315498352051,\n",
       "     0.6860595941543579],\n",
       "    [-0.015318751335144043,\n",
       "     0.9213811755180359,\n",
       "     0.3883580267429352,\n",
       "     0.0055734263733029366]],\n",
       "   'colmap_im_id': 114},\n",
       "  {'file_path': 'images/frame_00115.png',\n",
       "   'transform_matrix': [[0.1387275904417038,\n",
       "     0.35194310545921326,\n",
       "     -0.9256839156150818,\n",
       "     -0.05867743864655495],\n",
       "    [-0.9900153279304504,\n",
       "     0.02570105344057083,\n",
       "     -0.13859714567661285,\n",
       "     0.721383810043335],\n",
       "    [-0.024987250566482544,\n",
       "     0.9356685280799866,\n",
       "     0.35199451446533203,\n",
       "     0.0105161527171731]],\n",
       "   'colmap_im_id': 115},\n",
       "  {'file_path': 'images/frame_00116.png',\n",
       "   'transform_matrix': [[-0.03427659347653389,\n",
       "     0.3375888168811798,\n",
       "     -0.9406693577766418,\n",
       "     -0.006790562998503447],\n",
       "    [-0.9988375902175903,\n",
       "     -0.043488845229148865,\n",
       "     0.020788829773664474,\n",
       "     0.7500039935112],\n",
       "    [-0.03389053791761398,\n",
       "     0.9402884840965271,\n",
       "     0.33868712186813354,\n",
       "     0.017510641366243362]],\n",
       "   'colmap_im_id': 116},\n",
       "  {'file_path': 'images/frame_00117.png',\n",
       "   'transform_matrix': [[-0.05187411606311798,\n",
       "     0.30175700783729553,\n",
       "     -0.9519725441932678,\n",
       "     0.08443904668092728],\n",
       "    [-0.9951283931732178,\n",
       "     -0.09564492851495743,\n",
       "     0.02390812337398529,\n",
       "     0.756318211555481],\n",
       "    [-0.08383689820766449,\n",
       "     0.9485750794410706,\n",
       "     0.3052484691143036,\n",
       "     0.02891385182738304]],\n",
       "   'colmap_im_id': 117},\n",
       "  {'file_path': 'images/frame_00118.png',\n",
       "   'transform_matrix': [[-0.16907915472984314,\n",
       "     0.2786004841327667,\n",
       "     -0.9454067349433899,\n",
       "     0.1680189073085785],\n",
       "    [-0.9785480499267578,\n",
       "     -0.16201213002204895,\n",
       "     0.1272631138563156,\n",
       "     0.7808840870857239],\n",
       "    [-0.11771176755428314,\n",
       "     0.9466434121131897,\n",
       "     0.300016850233078,\n",
       "     0.03184165433049202]],\n",
       "   'colmap_im_id': 118},\n",
       "  {'file_path': 'images/frame_00119.png',\n",
       "   'transform_matrix': [[-0.35456374287605286,\n",
       "     0.2996256351470947,\n",
       "     -0.8857251405715942,\n",
       "     0.24373623728752136],\n",
       "    [-0.9283642172813416,\n",
       "     -0.2257309854030609,\n",
       "     0.2952716648578644,\n",
       "     0.7967813014984131],\n",
       "    [-0.11146464943885803,\n",
       "     0.9269682168960571,\n",
       "     0.35819774866104126,\n",
       "     0.03018919564783573]],\n",
       "   'colmap_im_id': 119},\n",
       "  {'file_path': 'images/frame_00120.png',\n",
       "   'transform_matrix': [[-0.45503324270248413,\n",
       "     0.271621972322464,\n",
       "     -0.8480367064476013,\n",
       "     0.34761878848075867],\n",
       "    [-0.8888564705848694,\n",
       "     -0.1959298551082611,\n",
       "     0.4141806662082672,\n",
       "     0.7826635241508484],\n",
       "    [-0.053655121475458145,\n",
       "     0.9422488808631897,\n",
       "     0.3305875360965729,\n",
       "     0.03492839261889458]],\n",
       "   'colmap_im_id': 120},\n",
       "  {'file_path': 'images/frame_00121.png',\n",
       "   'transform_matrix': [[-0.5544812083244324,\n",
       "     0.2899155020713806,\n",
       "     -0.780063807964325,\n",
       "     0.4119182527065277],\n",
       "    [-0.8305692672729492,\n",
       "     -0.25137439370155334,\n",
       "     0.49695640802383423,\n",
       "     0.7819392681121826],\n",
       "    [-0.052012696862220764,\n",
       "     0.9234499931335449,\n",
       "     0.38017725944519043,\n",
       "     0.031619977205991745]],\n",
       "   'colmap_im_id': 121},\n",
       "  {'file_path': 'images/frame_00122.png',\n",
       "   'transform_matrix': [[-0.6340405941009521,\n",
       "     0.21561944484710693,\n",
       "     -0.7426309585571289,\n",
       "     0.474022775888443],\n",
       "    [-0.7698817253112793,\n",
       "     -0.2662016749382019,\n",
       "     0.5800162553787231,\n",
       "     0.7906484603881836],\n",
       "    [-0.07262684404850006,\n",
       "     0.939491868019104,\n",
       "     0.3347841203212738,\n",
       "     0.041821908205747604]],\n",
       "   'colmap_im_id': 122},\n",
       "  {'file_path': 'images/frame_00123.png',\n",
       "   'transform_matrix': [[-0.6440153121948242,\n",
       "     0.1915467381477356,\n",
       "     -0.7406443953514099,\n",
       "     0.5375861525535583],\n",
       "    [-0.7623221278190613,\n",
       "     -0.24180884659290314,\n",
       "     0.6003277897834778,\n",
       "     0.7748755812644958],\n",
       "    [-0.06410351395606995,\n",
       "     0.9512299299240112,\n",
       "     0.30174893140792847,\n",
       "     0.04733934998512268]],\n",
       "   'colmap_im_id': 123},\n",
       "  {'file_path': 'images/frame_00124.png',\n",
       "   'transform_matrix': [[-0.7153915166854858,\n",
       "     0.12842783331871033,\n",
       "     -0.6868196129798889,\n",
       "     0.6027747988700867],\n",
       "    [-0.6977250576019287,\n",
       "     -0.1838386356830597,\n",
       "     0.6923748850822449,\n",
       "     0.7327707409858704],\n",
       "    [-0.037343740463256836,\n",
       "     0.9745305180549622,\n",
       "     0.22112394869327545,\n",
       "     0.06620907783508301]],\n",
       "   'colmap_im_id': 124},\n",
       "  {'file_path': 'images/frame_00125.png',\n",
       "   'transform_matrix': [[-0.8253061175346375,\n",
       "     -0.028419874608516693,\n",
       "     -0.5639697909355164,\n",
       "     0.6432877779006958],\n",
       "    [-0.5613000988960266,\n",
       "     -0.06790955364704132,\n",
       "     0.8248215317726135,\n",
       "     0.7212467193603516],\n",
       "    [-0.06174026429653168,\n",
       "     0.9972866773605347,\n",
       "     0.04009410738945007,\n",
       "     0.0983077734708786]],\n",
       "   'colmap_im_id': 125},\n",
       "  {'file_path': 'images/frame_00126.png',\n",
       "   'transform_matrix': [[-0.8529084920883179,\n",
       "     -0.05349443480372429,\n",
       "     -0.5193125009536743,\n",
       "     0.6696544289588928],\n",
       "    [-0.5210030674934387,\n",
       "     0.023942381143569946,\n",
       "     0.8532189130783081,\n",
       "     0.7063083052635193],\n",
       "    [-0.03320889174938202,\n",
       "     0.9982811212539673,\n",
       "     -0.048291437327861786,\n",
       "     0.11123069375753403]],\n",
       "   'colmap_im_id': 126},\n",
       "  {'file_path': 'images/frame_00127.png',\n",
       "   'transform_matrix': [[-0.9104504585266113,\n",
       "     -0.06760531663894653,\n",
       "     -0.40805575251579285,\n",
       "     0.6758919358253479],\n",
       "    [-0.409160852432251,\n",
       "     0.2916518449783325,\n",
       "     0.8645962476730347,\n",
       "     0.691983163356781],\n",
       "    [0.06055890768766403,\n",
       "     0.9541324377059937,\n",
       "     -0.2931959927082062,\n",
       "     0.1320822685956955]],\n",
       "   'colmap_im_id': 127}],\n",
       " 'applied_transform': [[1.0, 0.0, 0.0, 0.0],\n",
       "  [0.0, 0.0, 1.0, 0.0],\n",
       "  [-0.0, -1.0, -0.0, -0.0]],\n",
       " 'ply_file_path': 'sparse_pc.ply'}"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Writing JSON data\n",
    "with open('normalized_transforms.json', 'w') as f:\n",
    "    json.dump(data1, f)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "nerfstudio2",
   "language": "python",
   "name": "python3"
  },
  "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.18"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
