Skip to content

Tensor is wrong shape or rather tensor model is having trouble with a tensortype #14

Description

@un1crom

the image Segmentation/ deep lap model in build 1.0.4 doesn't like the tensor it's being given.

http://localhost:8080/tensorflowlocal/deeplab/deeplab_pascal_1_default_1/model.json?tfjs-format=file
Error: The dtype of dict['ImageTensor'] provided in model.execute(dict) must be int32, but was float32
at Object.assert (/usr/src/app/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:546:15)
at /usr/src/app/node_modules/@tensorflow/tfjs-converter/dist/tf-converter.node.js:5826:26
at Array.forEach ()
at GraphExecutor.checkInputShapeAndType (/usr/src/app/node_modules/@tensorflow/tfjs-converter/dist/tf-converter.node.js:5813:29)
at GraphExecutor.execute (/usr/src/app/node_modules/@tensorflow/tfjs-converter/dist/tf-converter.node.js:5527:14)
at GraphModel.execute (/usr/src/app/node_modules/@tensorflow/tfjs-converter/dist/tf-converter.node.js:6180:36)
at /usr/src/app/node_modules/@tensorflow-models/deeplab/dist/index.js:99:43
at /usr/src/app/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:3075:22
at Engine.scopedRun (/usr/src/app/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:3085:23)
at Engine.tidy (/usr/src/app/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:3074:21)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions