Skip to content

coco-ssd demo example does not work #1208

@dhrumil83

Description

@dhrumil83

To get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.

TensorFlow.js version

<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"> </script>

Also tried this version:
https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.15.0

Browser version

Chrome: Version 71.0.3578.98 (Official Build) (64-bit)

Describe the problem or feature request

Seems like a bug with coco-ssd example

Code to reproduce the bug / link to feature request

Fairly new to tensorflow js. and was trying out this example: https://github.com/tensorflow/tfjs-models/blob/master/coco-ssd/demo/test_inline.html
Getting this error when it goes into model.detect:
tfjs:2 Uncaught (in promise) Error: TensorArray : Could not write to TensorArray index 0,
because the value dtype is int32, but TensorArray dtype is float32.
at e.write (tfjs:2)
at tfjs:2
at Array.forEach ()
at e.writeMany (tfjs:2)
at e.scatter (tfjs:2)
at tfjs:2
at tfjs:2
at Object.next (tfjs:2)
at tfjs:2
at new Promise ()

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions