joel
joel

Reputation: 1

How make a custom object detection model (cocossd), using just tensorflow and nodejs?

I need a turorial about how to create a object detection, using tensorflowjs and nodejs, no browser, no python... is this posible, i tried to start doing this but i get a lot o bugs... so i need a guide line to acomplish this.

I start doing this

const tf = require('@tensorflow/tfjs')
const cc = require('@tensorflow-models/coco-ssd');
require('@tensorflow/tfjs-node')

cc.load()

and this get me this error.

UnhandledPromiseRejectionWarning: TypeError: tfconv.loadGraphModel is not a function

Upvotes: 0

Views: 819

Answers (1)

Sabesh
Sabesh

Reputation: 320

cc.load() returns a promise. So you have to use cc.load().then({ ... your code}) or await cc.load(). Read the official docs of coco ssd for more information

Upvotes: 1

Related Questions