Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tfjs #1705

Merged
merged 4 commits into from
Mar 19, 2024
Merged

Tfjs #1705

merged 4 commits into from
Mar 19, 2024

Conversation

lastmjs
Copy link
Member

@lastmjs lastmjs commented Mar 11, 2024

As an additional test for file:// in fetch, and to show a solution to a problem that a dev has wanted since ETH Denver, I have created a TensorFlow.js example that loads a basic model. The loading of TensorFlow.js uses fetch and file:// under-the-hood. We weren't able to easily figure out any other way of doing this, and thus the motivation for implementing the file:// protocol in fetch.

It is still somewhat unclear how TensorFlow.js has been working in Node, considering from our research it seems file:// is not yet implemented. Perhaps they have their own or some kind of modified library version of fetch that they've been using.

The TensorFlow.js example is not completely finished, as the model does not produce inference. I am okay with that for now, it at least loads the model and goes to the filesystem for that. In the future we can improve this example or create other TensorFlow.js examples with more advanced AI use cases.

@bdemann bdemann changed the base branch from main to fetch_file March 19, 2024 17:50
bdemann
bdemann previously approved these changes Mar 19, 2024
@bdemann bdemann changed the base branch from fetch_file to main March 19, 2024 17:53
@bdemann bdemann dismissed their stale review March 19, 2024 17:53

The base branch was changed.

examples/tfjs/src/api.ts Outdated Show resolved Hide resolved
@lastmjs lastmjs merged commit a022645 into main Mar 19, 2024
120 checks passed
@lastmjs lastmjs deleted the tfjs branch March 29, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants