{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "c73749fc-0d81-4874-baa5-2cb4f521e3b7", "metadata": {}, "outputs": [], "source": [ "# %%\n", "\n", "import torch\n", "from PIL import Image\n", "import numpy as np\n", "import skdim\n", "\n", "from app import train_mood_space, interpolate_two_images" ] }, { "cell_type": "code", "execution_count": null, "id": "53c5901b-a420-41b3-b99c-f31b9414615c", "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "Using cache found in /root/.cache/torch/hub/facebookresearch_dino_main\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "9973a7269de94e57819a5f8c2ee283e4", "version_major": 2, "version_minor": 0 }, "text/plain": [ "Loading pipeline components...: 0%| | 0/5 [00:00" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "#%%\n", "\n", "all_images = [image1] + interpolated_images + [image2]\n", "img = image_grid(all_images, 1, len(all_images))\n", "display(img)" ] } ], "metadata": { "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": 3 } }, "nbformat": 4, "nbformat_minor": 2 }