magenta-js
magenta-js copied to clipboard
Upgrade @magenta/image to tfjs 1.0.x
Hi,
I was trying to use the BodyPix model with Magenta but the tfjs version required is 1.0.0. Is it possible to update it ?
Thanks!
Yeah, let me take a look at this today!
Update: so unfortunately while updating to 1.0.x is fine, this breaks browserify
with this error:
/Users/noms/Code/magenta-js/image/node_modules/@tensorflow/tfjs-converter/dist/src/data/compiled_api.ts:20
export declare interface IAny {
^
ParseError: 'import' and 'export' may appear only with 'sourceType: module'
I think we have to update to using webpack
, like we did for @magenta/music
I hit the same wall at some point, I (blindly) tried things but my knowledge is pretty limited here...
Thank you for looking at it!
A thousand years later, I think this will be an easy fix once https://github.com/magenta/magenta-js/issues/530 is done