Skip to content

Instantly share code, notes, and snippets.

View Maltimore's full-sized avatar

Malte Esders Maltimore

  • Berlin Institute of Technology
  • Berlin
View GitHub Profile
# coding=utf-8
import numpy as np
import scipy.sparse as sparse
# Evaluation code courtesy of Juan Nunez-Iglesias, taken from
# https://github.com/janelia-flyem/gala/blob/master/gala/evaluate.py
def adapted_rand(seg, gt, all_stats=False):
"""Compute Adapted Rand error as defined by the SNEMI3D contest [1]
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Signal/1.0.31 Chrome/56.0.2924.87 Electron/1.6.14 Safari/537.36 node/7.4.0
INFO 2017-10-17T09:58:16.593Z app ready
INFO 2017-10-17T09:58:16.613Z Initializing BrowserWindow config: {"width":1863,"height":1016,"minWidth":700,"minHeight":360,"autoHideMenuBar":false,"webPreferences":{"nodeIntegration":false,"preload":"/opt/Signal/resources/app.asar/preload.js"},"maximized":true,"x":57,"y":64}
INFO 2017-10-17T09:58:17.030Z Detected Linux. Using default en_US spell check dictionary
INFO 2017-10-17T09:58:17.335Z pre-main prep time: 3 ms
INFO 2017-10-17T09:58:17.359Z Build expires: 2018-01-12T00:13:39.000Z
INFO 2017-10-17T09:58:17.379Z background page reloaded
INFO 2017-10-17T09:58:17.379Z environment: production
INFO 2017-10-17T09:58:18.120Z ConversationController: starting initial fetch
INFO 2017-10-17T09:58:18.120Z listening for registration events
INFO 2019-01-17T10:04:17.076Z Sending a keepalive message
INFO 2019-01-17T10:05:12.201Z Sending a keepalive message
INFO 2019-01-17T10:06:07.323Z Sending a keepalive message
INFO 2019-01-17T10:07:02.445Z Sending a keepalive message
INFO 2019-01-17T10:07:13.304Z Remove all notifications
INFO 2019-01-17T10:07:14.301Z Update notifications: {"shouldClearNotifications":false,"shouldPlayNotificationSound":false,"shouldShowNotifications":false,"type":"noNotifications","isNotificationGroupingSupported":true}
INFO 2019-01-17T10:07:16.230Z close event {"shouldQuit":false}
INFO 2019-01-17T10:07:16.232Z requestShutdown: Requesting close of mainWindow...
INFO 2019-01-17T10:07:16.233Z data.shutdown: starting process. 0 jobs outstanding
INFO 2019-01-17T10:07:16.234Z requestShutdown: Response received
@Maltimore
Maltimore / tiny-imagenet_label_to_wordnet_synset.json
Created July 29, 2021 11:10
Mapping of tiny imagenet classes to wordnet synset IDs. Inspired by the equivalent for full imagenet: https://gist.github.com/Juanvulcano/381b740a4eb8d46229b31fbdbdce01b1
{
"0": {
"id": "01443537-n",
"label": "goldfish, Carassius_auratus",
"uri": "http://wordnet-rdf.princeton.edu/wn30/01443537-n"
},
"1": {
"id": "01629819-n",
"label": "European_fire_salamander, Salamandra_salamandra",
"uri": "http://wordnet-rdf.princeton.edu/wn30/01629819-n"