Skip to content

Wasm build demo #45

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

Conarnar
Copy link

Summary

Added instructions on how to build a demo webpage that takes allows users to upload a copy of mv2.pte along with an image to classify it natively in the browser.

Test plan

Following the steps in the README.md:

cd executorch-examples/mv2/wasm

# Build the demo
bash build.sh

# Run the demo
python3 -m http.server --directory build/

Then, go to http://localhost:8000/demo.html and upload mv2.pte and an image to classify.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 30, 2025

## Prerequisites

- [Emscripten](https://emscripten.org/docs/getting_started/Tutorial.html)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a link to your readme?

'Refer to the wasm readme for setup guide.'

Copy link
Contributor

@lucylq lucylq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work on all the JS! It's a great demo of et in browser.

```

2. Following the setup guide in [Setting up ExecuTorch](https://pytorch.org/executorch/main/getting-started-setup)
you should be able to get the basic development environment for ExecuTorch working.
Copy link
Contributor

@lucylq lucylq Aug 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: might be easier to say pip install executorch for the python components to export model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants