{"id":18455350,"url":"https://github.com/cloud-annotations/node-red-contrib-cloud-annotations-gpu","last_synced_at":"2026-01-22T23:47:20.855Z","repository":{"id":56217309,"uuid":"314066937","full_name":"cloud-annotations/node-red-contrib-cloud-annotations-gpu","owner":"cloud-annotations","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-20T00:09:50.000Z","size":312,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T07:08:21.960Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloud-annotations.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-18T21:52:16.000Z","updated_at":"2024-06-15T05:55:32.000Z","dependencies_parsed_at":"2022-08-15T14:50:43.834Z","dependency_job_id":null,"html_url":"https://github.com/cloud-annotations/node-red-contrib-cloud-annotations-gpu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-annotations%2Fnode-red-contrib-cloud-annotations-gpu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-annotations%2Fnode-red-contrib-cloud-annotations-gpu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-annotations%2Fnode-red-contrib-cloud-annotations-gpu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-annotations%2Fnode-red-contrib-cloud-annotations-gpu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloud-annotations","download_url":"https://codeload.github.com/cloud-annotations/node-red-contrib-cloud-annotations-gpu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250285695,"owners_count":21405297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T08:07:50.089Z","updated_at":"2026-01-22T23:47:20.822Z","avatar_url":"https://github.com/cloud-annotations.png","language":"HTML","readme":"# node-red-contrib-cloud-annotations-gpu\n\n[![NPM version](https://badge.fury.io/js/node-red-contrib-cloud-annotations-gpu.svg)](http://www.npmjs.org/package/node-red-contrib-cloud-annotations-gpu)\n[![Dependencies Status](https://david-dm.org/cloud-annotations/node-red-contrib-cloud-annotations-gpu/status.svg)](https://david-dm.org/cloud-annotations/node-red-contrib-cloud-annotations-gpu)\n\nA [Node-RED](http://nodered.org) node for making predictions with Cloud Annotations models.\n\n![example](example.png)\n\n## Install\n\nIf you plan to use this Node-RED node on a Nvidia Jetson Nano, follow these [official TensorFlow 1.x release instructions for Jetson Nano](https://forums.developer.nvidia.com/t/official-tensorflow-for-jetson-nano/71770) before installing this node.\n\nRun the following command in your Node-RED user directory - typically `~/.node-red`:\n\n```\nnpm install node-red-contrib-cloud-annotations-gpu\n```\n\nYou will notice that npm installs a ```@cloud-annotations/models-node-gpu``` dependency. That package requires a dependency on ```@tensorflow/tfjs-node-gpu```\nAfter a lengthy build process, it will download a set of libtensorflow*.so libraries.\n\nIf you are running on a Jetson Nano, that's where the Nvidia Jetson package installed initially becomes important. You may need to copy the libtensorflow.so and libtensorflow_framework.so from the Nvidia Jetson python package to\n```~/.node-red/node_modules/@tensorflow/tfjs-node-gpu/deps/lib```\n\n## Usage\n\nFeed the model an image and get a list of predictions.\n\n\n### Configuration\n\n- `Model path`: The path to the Cloud Annotations model.\n\n\n### Input\n\n- `msg.payload`: The payload can either be a string path to an image file or a buffer object holding the image bytes.\n\n### Output\n\n- `msg.payload`: A list of predictions.\n\nThe prediction array varies depending on the type of model loaded.\n\nObject detection model example:\n```js\n[{\n  label: 'dog',\n  bbox: [\n    330.9269714355469, // x coordinate\n    281.0324728488922, // y coordinate\n    374.56329345703125, // width\n    550.1768910884857 // height\n  ],\n  score: 0.92\n},\n{\n  label: 'cat',\n  bbox: [\n    1168.9867401123047, // x coordinate\n    431.68705701828003, // y coordinate\n    412.3546600341797, // width\n    522.2745037078857 // height\n  ],\n  score: 0.72\n}]\n```\n\nClassification model example:\n```js\n[\n  { label: 'dog', score: 0.92 },\n  { label: 'cat', score: 0.72 }\n]\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloud-annotations%2Fnode-red-contrib-cloud-annotations-gpu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloud-annotations%2Fnode-red-contrib-cloud-annotations-gpu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloud-annotations%2Fnode-red-contrib-cloud-annotations-gpu/lists"}