Dear ml5 community,
I'm submitting a new issue. Please see the details below.
Did you find a bug? Want to suggest an idea for feature?
This is a stretch goal, but I'd like to suggest doing the following:
This is ambitious, but I think it would be great to try to chip away at this over the next months with a goal of having something up and running by June/July.
Any suggestions for structure, devops best practices, etc would be awesome! Thanks!
window e.g. fetch and p5 functions Suggestions for how to do this, inspired by the structure of tfjs and tfjs-models:
Version 1:
tfjs-core and tfjs-converter for loading converted models, instead of tfjs . See example in body-pix. This can probably be done in its own PRml5-models. Create a package.json in here that can be published as @ml5/models and rollup.config.jsml5-web - this would include the p5 things. Create a package.json here and a rollup.config.js in this folder, and this can be published as the main package that gets download from the cdn. tfjs-core gets bundled with this.Version 2 (totally optional, and to be discussed):
A nice example of how to switch backends (tfjs browser / tfjs-node (cpu) / tfjs-node-gpu (cuda) is in tfjs-examples/lstm-text-generation
const args = parseArgs();
if (args.gpu) {
console.log('Using GPU');
require('@tensorflow/tfjs-node-gpu');
} else {
console.log('Using CPU');
require('@tensorflow/tfjs-node');
}
What's great is that example works in the browser, but if running in node.js, and you just "require" the proper tfjs backend, it will switch to that.
is this actively being worked on?
That would be awesome!
I think this would also be pretty cool, is there any active work being done on this?
Most helpful comment
is this actively being worked on?