-
Notifications
You must be signed in to change notification settings - Fork 3
ml5.js Resources
Jack B. Du edited this page Jul 26, 2024
·
3 revisions
- ml5.js website
- ml5.js glossary
- ml5.js official examples
- In order to use ml5.js 1.0, include this
<script>
tag in the index.html file:
<script src="https://unpkg.com/ml5@1/dist/ml5.min.js"></script>
- When would I need to use an old version of ml5.js?
- If you would like to use a particular model, such as FeatureExtractor or StyleTransfer, which is currently only supported in older versions of ml5.js.
- If you encounter a code example or tutorial that uses an old version of ml5.js.
- More specifically, some sketches written for older versions of ml5.js may use
ml5@latest
in the<script>
tag. This tag automatically loads the latest version of ml5.js, which worked fine before ml5.js 1.0 was released, but no longer work because these sketches are not compatible with ml5.js 1.0.
- In these instances, use the following
<script>
tag in the index.html file of your project (or specify the exact version you need):
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js"></script>
- In addition, you can find archived sites for this version of ml5.js below: