Skip to content

luucv/tfjs-indexeddb-actions

Repository files navigation

Tensorflow.js IndexedDB Helpers

Allows users to store big tensorflow.js models on the client-side within the indexedDB.

Installation

npm install --save tfjs-indexeddb-helpers

Usage

loadAndStoreLayersModel(url: String, id: String)

To not make 2 requests to load a model, only use the loader in this package. Once the model gets loaded it will also get stored in the IndexedDB.

import { loadAndStoreLayersModel } from 'tfjs-indexeddb-helpers';

const modelArtifacts = await loadAndStoreLayersModel('https://foo.com/model.json', 'foo');

loadFromIndexedDb(id: String)

import { loadFromIndexedDb } from 'tfjs-indexeddb-helpers';

const modelArtifacts = await loadFromIndexedDb('foo');

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published