-
Notifications
You must be signed in to change notification settings - Fork 24
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
ml5 file size #118
Comments
So it looks like #111 may have increased the filesize, @ziyuan-linn will take a look. |
Seems like it's all TensorFlow? Screenshot of the Edit: now I'm looking at the bundle and we're including source maps. We don't want those in a production build because they are huge. We also have a comment block with the Google License that appears over 1,000 times even in the |
@lindapaiste Thank you for looking into this. I set Though I am pretty sure the source map is built to a different file named |
This is probably a longer term discussion, but just thinking through some ideas for the future:
This discussion may become a higher priority if/when we consider bundling other backends for supporting new models, like 3.48Mb feels "ok" to me for now so maybe we revisit this after 1.0? |
I agree with the idea of organizing the library in a modular way! During a workshop I recently offered at Tongji University in Shanghai, China, I found it challenging to demonstrate examples with multiple iterations because the library's large file size had to be downloaded via a VPN connection. We can emphasize it on the website and consider adding a friendly error message like: "To use facemesh, please import |
In preparing a ml5.js alpha build, we noticed the filze size is quite large.
It would be worth taking the time to research and look into why this is and if there are dependencies we can remove / scale down. I recall this used to be an issue due to the inclusion of
magenta
but i don't think we are anymore?The text was updated successfully, but these errors were encountered: