From 3cf1e750b8726d9c0efea403ffb0797d9f6669a7 Mon Sep 17 00:00:00 2001 From: Christopher Pietsch Date: Fri, 6 Nov 2020 16:31:10 +0100 Subject: [PATCH] tsne fix --- similarity/tsne.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/similarity/tsne.js b/similarity/tsne.js index efe9a1b..9332eda 100644 --- a/similarity/tsne.js +++ b/similarity/tsne.js @@ -8,10 +8,10 @@ var path = require("path"); const glob = require('glob-promise'); const localPath = i => path.relative(process.cwd(), i) const argv = require('minimist')(process.argv.slice(2)); -const tf = require('@tensorflow/tfjs-node'); +const tf = require('@tensorflow/tfjs'); // const tsne = require('@tensorflow/tfjs-tsne'); const { createCanvas, loadImage } = require('canvas') -const tsnejs = require('./lib/tsne-lib.js'); +const tsnejs = require('./lib/tsne.js'); const canvas = createCanvas(224, 224) const ctx = canvas.getContext('2d')