{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "65aeb65c", "metadata": {}, "outputs": [], "source": [ "import matplotlib.pyplot as plt\n", "from maploc.demo import Demo, read_input_image\n", "\n", "# Increasing the number of rotations increases the accuracy but requires more GPU memory.\n", "# The highest accuracy is achieved with num_rotations=360\n", "# but num_rotations=64~128 is often sufficient.\n", "# To reduce the memory usage, we can reduce the tile size in the next cell.\n", "demo = Demo(num_rotations=256, device='cpu')" ] }, { "cell_type": "code", "execution_count": 2, "id": "9b2905bb", "metadata": { "scrolled": false }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "[2023-06-22 20:27:02 maploc INFO] Calling the PerspectiveFields calibrator, this may take some time.\n", "[2023-06-22 20:27:09 maploc INFO] Using (roll, pitch) (-3.35, -1.45).\n", "[2023-06-22 20:27:09 maploc INFO] Using prior address: ETH CAB, 6a, Universitätstrasse, Oberstrass, Kreis 6, Zürich, Bezirk Zürich, Zürich, 8006, Schweiz/Suisse/Svizzera/Svizra\n" ] }, { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "