Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koji/tensorflowjs-and-keras
tensorflowjs and keras
https://github.com/koji/tensorflowjs-and-keras
javascript keras machine-learning nodejs tensorflowjs
Last synced: about 2 months ago
JSON representation
tensorflowjs and keras
- Host: GitHub
- URL: https://github.com/koji/tensorflowjs-and-keras
- Owner: koji
- Created: 2018-07-02T23:17:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T00:38:39.000Z (about 2 years ago)
- Last Synced: 2024-10-28T00:18:28.179Z (4 months ago)
- Topics: javascript, keras, machine-learning, nodejs, tensorflowjs
- Language: JavaScript
- Homepage: https://sleepy-maker.github.io/tensorflowjs-and-keras/image_classification/webcam/app/public/
- Size: 14.8 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tensorflowjs and Keras
## setup
```zsh
$ pip install tensorflowjs
```## convert Keras model to Tensorflowjs model with command
```zsh
$ tensorflowjs_converter --input_format keras models/mobilenet_v2.h5 models4js/mobilenet_v2
```## convert Keras model to Tensorflowjs model
```zsh
for VGG16
$ python keras2tensorflow_forVGG16.pyfor MobileNet V2
$ python keras2tensorflow_formobilenet.py
```
In terms of mobilenet_v2, if you got an error, you would need to update Keras
```zsh
$ pip install -U keras
```
model.json is a meta-data file.
## How to try this
```zshclone this repo
$ git clone https://github.com/sleepy-maker/tensorflowjs-and-keras.git$ cd image_classification/app
$ npm install
$ node server.js
```
#### demo
image_uploader version
https://sleepy-maker.github.io/tensorflowjs-and-keras/image_classification/image_uploader/app/public/
webcam version
https://sleepy-maker.github.io/tensorflowjs-and-keras/image_classification/webcam/app/public/## ToDo
- [x] Add a function which allows users to select a model(VGG16/MobileNet)
- [x] Optimize model loading process
- [x] Add webcam function
- [ ] Rewrite with reactjs with typescript
- [ ] Add new functions