Coder Social home page Coder Social logo

node-red-contrib-cloud-annotations's Introduction

node-red-contrib-cloud-annotations

NPM version Dependencies Status

A Node-RED node for making predictions with Cloud Annotations models.

example

Install

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

npm install node-red-contrib-cloud-annotations

Usage

Feed the model an image and get a list of predictions.

Configuration

  • Model path: The path to the Cloud Annotations model.

Input

  • msg.payload: The payload can either be a string path to an image file or a buffer object holding the image bytes.

Output

  • msg.payload: A list of predictions.

The prediction array varies depending on the type of model loaded.

Object detection model example:

[{
  label: 'dog',
  bbox: [
    330.9269714355469, // x coordinate
    281.0324728488922, // y coordinate
    374.56329345703125, // width
    550.1768910884857 // height
  ],
  score: 0.92
},
{
  label: 'cat',
  bbox: [
    1168.9867401123047, // x coordinate
    431.68705701828003, // y coordinate
    412.3546600341797, // width
    522.2745037078857 // height
  ],
  score: 0.72
}]

Classification model example:

[
  { label: 'dog', score: 0.92 },
  { label: 'cat', score: 0.72 }
]

node-red-contrib-cloud-annotations's People

Contributors

bourdakos1 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

node-red-contrib-cloud-annotations's Issues

Unhandled promise rejection: node-red-contrib-cloud-annotations

Hello,

I have been working on object detection, using node Cloud-annotations-GPU. Everything worked great with the model I previously upload (and still does). But now, I have a new model, which is trained in the same way as the previous one (using Cloud Annotations and Google Colab) but it throws me an error now:

Warning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 37)

clouadanotations

Does anyone have any idea how could I solve this problem? I would be very grateful :D
Thanks in advance
Matea

Dependency Issue with agent-base <6.0.0 and Node-RED 2.0

Hi,

We've detected that your node has a dependency on an old version of agent-base (<6.0.0) ,
These old versions were patching a core node.js function in a way that could break other libraries - including one we started using in Node-RED 2.0 for the HTTP Request node.
Therefore any users that upgrade to Node-RED 2.0 and have your node installed (or later try to install it) will get errors when using the http-request node.

Could you please take a look at your dependencies and see if you can update the versions so that you are no longer dependent on agent-base before version 6.0.0

Note this could be a module that you are using has a dependency on agent-base so you might need to check for updates to that module, to help you we've attached your nodes dependency tree below

More details on this issue and the warning message that is now displayed in Node-RED 2.0.2 are on the forum at link https://discourse.nodered.org/t/node-red-2-0-2-released/48767

└─ [email protected]
   └─ @cloud-annotations&#x2F;[email protected]
      └─ @tensorflow&#x2F;[email protected]
         ├─ [email protected]
         ├─ [email protected]
         │  ├─ [email protected]
         │  │  └─ [email protected]
         │  │     └─ [email protected]
         │  └─ [email protected]
         │     └─ [email protected]
         ├─ [email protected]
         ├─ [email protected]
         │  └─ [email protected]
         │     ├─ [email protected]
         │     ├─ [email protected]
         │     │  ├─ [email protected]
         │     │  └─ [email protected]
         │     ├─ [email protected]
         │     ├─ [email protected]
         │     │  └─ [email protected]
         │     │     ├─ [email protected]
         │     │     └─ [email protected]
         │     ├─ [email protected]
         │     └─ [email protected]
         │        └─ [email protected]
         ├─ [email protected]
         ├─ [email protected]
         │  ├─ [email protected]
         │  │  └─ [email protected]
         │  ├─ [email protected]
         │  ├─ [email protected]
         │  │  └─ [email protected]
         │  ├─ [email protected]
         │  │  ├─ [email protected]
         │  │  └─ [email protected]
         │  ├─ [email protected]
         │  ├─ [email protected]
         │  │  └─ [email protected]
         │  └─ [email protected]
         ├─ [email protected]
         │  ├─ [email protected]
         │  ├─ [email protected]
         │  ├─ [email protected]
         │  │  ├─ [email protected]
         │  │  │  └─ [email protected]
         │  │  ├─ [email protected]
         │  │  └─ [email protected]
         │  ├─ [email protected]
         │  │  ├─ [email protected]
         │  │  │  └─ [email protected]
         │  │  ├─ [email protected]
         │  │  │  └─ [email protected]
         │  │  └─ [email protected]
         │  ├─ [email protected]
         │  │  ├─ [email protected]
         │  │  ├─ [email protected]
         │  │  │  ├─ [email protected]
         │  │  │  └─ [email protected]
         │  │  │     ├─ [email protected]
         │  │  │     ├─ [email protected]
         │  │  │     ├─ [email protected]
         │  │  │     ├─ [email protected]
         │  │  │     ├─ [email protected]
         │  │  │     │  └─ [email protected]
         │  │  │     ├─ [email protected]
         │  │  │     └─ [email protected]
         │  │  ├─ [email protected]
         │  │  └─ [email protected]
         │  │     ├─ [email protected]
         │  │     ├─ [email protected]
         │  │     ├─ [email protected]
         │  │     ├─ [email protected]
         │  │     ├─ [email protected]
         │  │     ├─ [email protected]
         │  │     │  ├─ [email protected]
         │  │     │  ├─ [email protected]
         │  │     │  │  └─ [email protected]
         │  │     │  └─ [email protected]
         │  │     ├─ [email protected]
         │  │     │  └─ [email protected]
         │  │     │     ├─ [email protected]
         │  │     │     │  └─ [email protected]
         │  │     │     └─ [email protected]
         │  │     └─ [email protected]
         │  │        └─ [email protected]
         │  ├─ [email protected]
         │  │  ├─ [email protected]
         │  │  ├─ [email protected]
         │  │  ├─ [email protected]
         │  │  └─ [email protected]
         │  ├─ [email protected]
         │  ├─ [email protected]
         │  ├─ [email protected]
         │  │  ├─ [email protected]
         │  │  │  ├─ [email protected]
         │  │  │  └─ [email protected]
         │  │  └─ [email protected]
         │  └─ [email protected]
         └─ @tensorflow&#x2F;[email protected]
            ├─ @tensorflow&#x2F;[email protected]
            ├─ @tensorflow&#x2F;[email protected]
            │  ├─ @types&#x2F;[email protected]
            │  ├─ @types&#x2F;[email protected]
            │  ├─ @types&#x2F;[email protected]
            │  ├─ @types&#x2F;[email protected]
            │  ├─ [email protected]
            │  └─ [email protected]
            ├─ @tensorflow&#x2F;[email protected]
            │  ├─ @types&#x2F;[email protected]
            │  │  ├─ [email protected]
            │  │  │  ├─ [email protected]
            │  │  │  │  └─ [email protected]
            │  │  │  ├─ [email protected]
            │  │  │  └─ [email protected]
            │  │  │     └─ [email protected]
            │  │  └─ @types&#x2F;[email protected]
            │  └─ [email protected]
            └─ @tensorflow&#x2F;[email protected]


Thanks in advance for looking into this.

Sam

PS Sorry for the templated issue but we've got a number of nodes with the issue so I'm automating the issue creation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.