Skip to content

Instantly share code, notes, and snippets.

@fkraeutli
Created January 21, 2021 14:25
Show Gist options
  • Save fkraeutli/7b50c2c223392b5844120f96bf0be241 to your computer and use it in GitHub Desktop.
Save fkraeutli/7b50c2c223392b5844120f96bf0be241 to your computer and use it in GitHub Desktop.
Autogenerated from www.imagegraph.cc, My sketch title
{"caption":"My sketch title","offset":{"x":-2,"y":-3},"nodes":{"53bc564c-82ce-4461-bae8-1017521bcd89":{"id":"53bc564c-82ce-4461-bae8-1017521bcd89","position":{"x":515,"y":272},"type":"loadIIIFManifest","ports":{"port1":{"id":"port1","type":"bottom","properties":{"type":"imL"},"position":{"x":24,"y":106}}},"properties":{"text":"Loads a IIIF manifest. Paste in any IIIF manifest URL, which you can get from most libraries. ","form":"string","innerDefault":"https://iiif.bodleian.ox.ac.uk/iiif/manifest/e32a277e-91e2-4a6d-8ba6-cc4bad230410.json","viewer":"https://universalviewer.io/uv.html?manifest=","innerValue":"https://www.e-rara.ch/i3f/v20/17611827/manifest"}},"b65c0fb8-d193-4e39-8249-4a8f2c14b504":{"id":"b65c0fb8-d193-4e39-8249-4a8f2c14b504","position":{"x":580,"y":483},"type":"getNNEmbedding","ports":{"port1":{"id":"port1","type":"top","properties":{"type":"imL"},"position":{"x":24,"y":-12}},"port2":{"id":"port2","type":"bottom","properties":{"type":"vL"},"position":{"x":24,"y":59}}},"properties":{"text":"Extracts the second-to-last-layer neural network embedding for each image fed in; outputs them as a list of vectors","form":"none"}},"6f18380a-a8ed-49df-9781-e0c47f2280ff":{"id":"6f18380a-a8ed-49df-9781-e0c47f2280ff","position":{"x":622,"y":679},"type":"consolePrint","ports":{"port1":{"id":"port1","type":"top","properties":{"type":"any"},"position":{"x":24,"y":-12}}},"properties":{"text":"Print (hopefully) anything as text to the Python console! Dont try it for very large things... ","form":"none"}}},"selected":{},"links":{"99dcdb59-6d0b-4760-b75d-ce266d8147bd":{"id":"99dcdb59-6d0b-4760-b75d-ce266d8147bd","from":{"nodeId":"53bc564c-82ce-4461-bae8-1017521bcd89","portId":"port1"},"to":{"nodeId":"b65c0fb8-d193-4e39-8249-4a8f2c14b504","portId":"port1"}},"a62dc4a7-94c0-425c-aa21-80ffe00c95b5":{"id":"a62dc4a7-94c0-425c-aa21-80ffe00c95b5","from":{"nodeId":"b65c0fb8-d193-4e39-8249-4a8f2c14b504","portId":"port2"},"to":{"nodeId":"6f18380a-a8ed-49df-9781-e0c47f2280ff","portId":"port1"}}},"hovered":{}}
Display the source blob
Display the rendered blob
Raw
{ "nbformat": 4, "nbformat_minor": 0, "metadata": { "colab": { "name": "ImageGraph.ipynb", "version": "0.3.2", "provenance": [], "collapsed_sections": [] }, "kernelspec": { "name": "python3", "display_name": "Python 3" } }, "cells": [ { "cell_type": "code", "metadata": { "id": "gsUbIGfNqSjV", "colab_type": "code", "colab": { "base_uri": "https://localhost:8080/", "height": 34 }, "outputId": "a306f9c8-c721-4280-fba4-f175cffa7090" }, "source": [ " # Remember to install the imagegraph Python library thus:\n!pip install git+https:\/\/github.com\/leoimpett\/pyimagegraph\nimport imagegraph as ig\nimL00 = ig.loadIIIFManifest(\"https:\/\/www.e-rara.ch\/i3f\/v20\/17611827\/manifest\") \nvL01 = ig.getNNEmbedding(imL00) \n_ = ig.consolePrint(vL01) " ], "execution_count": 0, "outputs": [ { "output_type": "stream", "text": [ " " ], "name": "stdout" } ] } ]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment