https://github.com/zce/teachable-machine
https://github.com/zce/teachable-machine
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zce/teachable-machine
- Owner: zce
- License: apache-2.0
- Created: 2018-08-07T08:46:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-12T09:27:48.000Z (about 3 years ago)
- Last Synced: 2025-04-04T16:26:41.932Z (12 months ago)
- Language: JavaScript
- Size: 4.42 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Teachable Machine
## About
Teachable Machine is an experiment that makes it easier for anyone to explore machine learning, live in the browser – no coding required. Learn more about the experiment and try it yourself on [g.co/teachablemachine](https://g.co/teachablemachine).
The experiment is built using the [deeplearn.js](https://github.com/PAIR-code/deeplearnjs) library.
We have also released a boilerplate version of this project that can be used as a starting point for your own projects: [googlecreativelab/teachable-machine-boilerplate](https://github.com/googlecreativelab/teachable-machine-boilerplate)
## Development
#### Install dependencies by running (similar to `npm install`)
```
yarn
```
#### Build project
```
yarn build
```
#### Start local server by running
```
yarn run watch
```
#### Code Styles
- There’s a pre-commit hook set up that will prevent commits when there are errors
- Run `yarn eslint` for es6 errors & warnings
- Run `yarn stylint` for stylus errors & warnings
#### To run https locally:
https is required to get camera permissions to work when not working with `localhost`
1. Generate Keys
```
openssl genrsa -out server.key 2048
openssl req -new -x509 -sha256 -key server.key -out server.cer -days 365 -subj /CN=YOUR_IP
```
2. Use `yarn run watch-https`
3. Go to `https://YOUR_IP:3000`, then accept the insecure privacy notice, and proceed.
## Credit
This is not an official Google product, but an experiment that was a collaborative effort by friends from [Støj](http://stoj.io/), [Use All Five](https://useallfive.com/) and Creative Lab and [PAIR](https://ai.google/pair/) teams at Google.