Skip to content

Commit 8fd3f6f

Browse files
authored
add local support in 1.4.0 release (#69)
1 parent bf376f7 commit 8fd3f6f

File tree

8 files changed

+1262
-53
lines changed

8 files changed

+1262
-53
lines changed

CHANGELOG.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22

33
All notable changes to this project will be documented in this file following a [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
44

5-
## Unreleased
5+
## [1.4.0] - 2022-11-30
6+
7+
### Added
8+
9+
- Local Mode Support
610

711
### Changed
812

913
- Improved code structure
10-
- Upgraded `node-fetch` to version `3.1.0`
11-
- Upgraded `pureimage` to version `0.3.6`
14+
- Upgrade pre-commit dependencies
15+
- Dependency change from `@tensorflow/tfjs` to `@tensorflow/tfjs-node`
16+
- Upgraded `node-fetch` to version `3.3.0`
17+
- Upgraded `pureimage` to version `0.3.14`
1218

1319
## [1.3.1] - 2021-10-09
1420

@@ -243,3 +249,4 @@ All notable changes to this project will be documented in this file following a
243249
[1.2.2]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v1.2.1...v1.2.2
244250
[1.3.0]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v1.2.2...v1.3.0
245251
[1.3.1]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v1.3.0...v1.3.1
252+
[1.4.0]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v1.3.1...v1.4.0

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,25 @@ Select `Tensorflow.js` format and upload your trained model (for free). Once it
4646

4747
![use_teachable_machine](https://user-images.githubusercontent.com/37800834/79056723-8431a100-7c59-11ea-9488-346f4f8e6004.png)
4848

49+
Once the URL is generated it will show the stored files.
50+
51+
![model_files](https://user-images.githubusercontent.com/37800834/204745026-40cf7cec-6775-4e78-a454-4c82271d613f.png)
52+
4953
### Step 3
5054

51-
Paste the saved URL into the node configuration. That URL hosts all the information to load your trained model. Make sure you copy all the given URL including the `https://...`.
55+
#### **Online Mode**
56+
57+
Select Online Mode and paste the saved URL in the node configuration. That URL hosts all the information to load your trained model. Make sure you copy all the given URL including the `https://...` and the `/` in the end.
58+
59+
![online-config](https://user-images.githubusercontent.com/37800834/204746402-2551eb8c-576c-40fa-a250-7f0f93a9d670.png)
60+
61+
#### **Local Mode**
62+
63+
Download all three files from the generated URL and save them locally in a folder maintaning the original filenames.
64+
65+
Select Local Mode and write down the absolute path of the folder that contain the three downloaded files in the node configuration. Make sure it ends with a `/` noting it is a folder.
5266

53-
![config](https://user-images.githubusercontent.com/37800834/80922980-e8d7ab80-8d80-11ea-8c0c-89d1008455da.png)
67+
![local-config](https://user-images.githubusercontent.com/37800834/204746412-fafc1b81-6431-4cb3-82bb-d4a29e415108.png)
5468

5569
### Step 4
5670

examples/basic.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"z": "17514116325f40c5",
6262
"name": "",
6363
"mode": "online",
64-
"modelUrl": "https://teachablemachine.withgoogle.com/models/49PRz_c_9/",
64+
"modelUri": "https://teachablemachine.withgoogle.com/models/49PRz_c_9/",
6565
"localModel": "teachable_model",
6666
"output": "best",
6767
"activeThreshold": false,

examples/local_test.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"z": "17514116325f40c5",
2121
"name": "",
2222
"mode": "online",
23-
"modelUrl": "https://teachablemachine.withgoogle.com/models/49PRz_c_9/",
23+
"modelUri": "https://teachablemachine.withgoogle.com/models/49PRz_c_9/",
2424
"localModel": "teachable_model",
2525
"output": "best",
2626
"activeThreshold": false,

0 commit comments

Comments
 (0)