Skip to content

Instantly share code, notes, and snippets.

@leoimpett
Created February 25, 2022 15:14
Show Gist options
  • Select an option

  • Save leoimpett/8e2ddae5d1c20a7ccfaf41e002a2634f to your computer and use it in GitHub Desktop.

Select an option

Save leoimpett/8e2ddae5d1c20a7ccfaf41e002a2634f to your computer and use it in GitHub Desktop.
Autogenerated from www.imagegraph.cc, My sketch title
{"caption":"My sketch title","offset":{"x":0,"y":0},"nodes":{"81d566a2-e53d-4871-96d3-ee6dcbf34e8b":{"id":"81d566a2-e53d-4871-96d3-ee6dcbf34e8b","position":{"x":422,"y":289},"type":"loadDropboxFolder","ports":{"port1":{"id":"port1","type":"bottom","properties":{"type":"imL"},"position":{"x":24,"y":107}}},"properties":{"text":"Loads a Dropbox folder (it should end in ?dl=0). This should be a folder which includes some images in standard formats (jpg, png, etc)","form":"string","innerDefault":"https://www.dropbox.com/s/qxdfncdakdzm9yu/BHRBuildingSamples.zip?dl=0","innerValue":"https://www.dropbox.com/s/qxdfncdakdzm9yu/BHRBuildingSamples.zip?dl=0"}},"86438fe8-309a-4048-8a0a-15e44b2a4cf4":{"id":"86438fe8-309a-4048-8a0a-15e44b2a4cf4","position":{"x":574,"y":432},"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":60}}},"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","preform":"myModel = \"vgg16\" #@param [\"vgg16\", \"inceptionv3\", \"efficientnet\"]","argform":"modelType = myModel"}}},"selected":{},"links":{"a7e4635c-36cc-44ca-b7e9-5c0e6385125d":{"id":"a7e4635c-36cc-44ca-b7e9-5c0e6385125d","from":{"nodeId":"81d566a2-e53d-4871-96d3-ee6dcbf34e8b","portId":"port1"},"to":{"nodeId":"86438fe8-309a-4048-8a0a-15e44b2a4cf4","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": [ " !pip install -q -U git+https:\/\/github.com\/leoimpett\/pyimagegraph\nimport imagegraph as ig\nimL00 = ig.loadDropboxFolder(\"https:\/\/www.dropbox.com\/s\/qxdfncdakdzm9yu\/BHRBuildingSamples.zip?dl=0\") \nmyModel = \"vgg16\" #@param [\"vgg16\", \"inceptionv3\", \"efficientnet\"] \nvL01 = ig.getNNEmbedding(imL00,modelType = myModel) " ], "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