Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
un1crom opened this issue Aug 26, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@un1crom
Copy link
Contributor

un1crom commented Aug 26, 2020

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)

@un1crom un1crom added the bug Something isn't working label Aug 26, 2020
@un1crom un1crom self-assigned this Aug 26, 2020
@un1crom
Copy link
Contributor Author

un1crom commented Aug 27, 2020

important to include the right bundleddependencies... https://cloud.google.com/functions/docs/writing/specifying-dependencies-nodejs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant