chaosmail / tfjs-onnx

Run and finetune pretrained Onnx models in the browser with GPU support via the wonderful Tensorflow.js library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove tf package from the bundle

chaosmail opened this issue · comments

Currently tf is bundled into this package. However it should be loaded separately.

Other packages do this using the browserify-shim as a global transformation, see https://github.com/tensorflow/tfjs-models/blob/master/mobilenet/package.json#L34

Another interesting option for plugins would be using rollup instead of browserify. https://github.com/tensorflow/tfjs-models/pull/15/files