npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-teachable-machine-cloudonly

v1.0.4

Published

Simplifies integration with Teachable Machine models from Google

Downloads

50

Readme

node-red-contrib-teachable-machine-cloudonly

| Version | Repo | |:--|:--| | 1.3.1 | Origin: https://github.com/bonastreyair/node-red-contrib-teachable-machine | | 1.0.0 | THIS FORKED REPO |

This repository was forked from version 1.3.1 of the original repository. This is a workaround for a bug in the latest version of the original when installed on Node-RED running on virtualized PaaS (e.g. Railway, Render). Therefore, as the name "cloudonly" implies, it does not support loading model files that are locally located and will not be supported in the future.



Install

You have two options to install the node.

  • Use Manage palette option in Node-RED Menu (recommended) manage_pallete

  • Run the following command in your Node-RED user directory - typically ~/.node-red

    npm install node-red-contrib-teachable-machine

Note: If you run the command you will need to restart Node-RED after installation. If installation goes wrong please open a new issue.

Node usage

Step 1

Go to Teachable Machine and follow the steps to train your custom classification model. Once trained click on the Export Model button.

teachable_machine_export

Step 2

Select Tensorflow.js format and upload your trained model (for free). Once it is uploaded, copy the generated URL.

use_teachable_machine

Step 3

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://....

config

Step 4

In Node-RED send a buffered image (jpeg or png) to the node. Check the example in the Import section.

Node Status Information

Shape

  • dot: node is idle
  • ring: node is working

Color

  • 🟩 green: model is available
  • 🟨 yellow: preparing model
  • 🟥 red: node error

Requirements

  • Node-RED v2.0.0+
  • Node.js v12.20.0+

Note: MacOSX, Windows 10 and Ubuntu 18.04+ are supported as well as using official docker nodered/node-red image based on Alpine image. Works with Raspberry Pi too since release v1.2.0+.

Mentions