Skip to content

Instantly share code, notes, and snippets.

View oeway's full-sized avatar

Wei Ouyang oeway

  • Science For Life Laboratory
  • Stockholm
View GitHub Profile
<docs lang="markdown">
## Porting Arbitrary Style Transfer to the Browser
https://magenta.tensorflow.org/blog/2018/12/20/style-transfer-js/
```
/**
* Copyright 2018 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import asyncio
import numpy as np
import imageio
from imjoy_rpc import api
class ImJoyPlugin():
def setup(self):
api.log('initialized')
async def run(self, ctx):
(function($) {
$.getStylesheet = function (href) {
var $d = $.Deferred();
var $link = $('<link/>', {
rel: 'stylesheet',
type: 'text/css',
href: href
}).appendTo('head');
$d.resolve($link);
return $d.promise();
<docs lang="markdown">
[TODO: write documentation for this plugin.]
</docs>
<config lang="json">
{
"name": "VueJSDemo",
"type": "window",
"tags": [],
"ui": "",
<docs lang="markdown">
[TODO: write documentation for this plugin.]
</docs>
<config lang="json">
{
"name": "DWV",
"type": "window",
"tags": [],
"ui": "",
<docs lang="markdown">
[TODO: write documentation for this plugin.]
</docs>
<config lang="json">
{
"name": "MyFirstPlugin",
"type": "window",
"tags": [],
"ui": "",
<docs lang="markdown">
## Tiktorch Model Loader for BioImage.io
This is a BioEngine App for running models on https://bioimage.io
</docs>
<config lang="json">
{
"name": "Tiktorch Model Loader",
<docs lang="markdown">
[TODO: write documentation for this plugin.]
</docs>
<config lang="json">
{
"name": "CompareImages",
"type": "window",
"tags": [],
"ui": "",
<docs lang="markdown">
This plugin allows to visualize results of a classification of protein
localization patterns from microscope images of the entire HPA cell atlas(v18, 63955 images).
Classification is performed with the winning approach of a 2018 Kaggle challenge
(https://www.kaggle.com/c/human-protein-atlas-image-classification).
Plots shows a UMAP projection (Uniform Manifold Approximation and Projection) calculated from the
last layer of the network (densenet121, dimensions: 1024). Each dot is an image and when clicking on a
<docs>
[TODO: write documentation for this plugin.]
</docs>
<config lang="json">
{
"name": "Zarr-Demo",
"type": "iframe",
"tags": [],
"ui": "",