-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Deeplab/Segmentation: Error: The dtype of dict['ImageTensor'] provided in model.execute(dict) must be int32, but was float32 #3723
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 dyas if no further activity occurs. Thank you. |
Closing as stale. Please @mention us if this needs more attention. |
I got the same error. My Scenerio: When I tried running this model.json on the javascript(web), it gives the below error:
When I tried someone else's working converted model (model.json and shared .bin files) on my javascript(web), it worked. Conclusion: I'm still trying out to convert my model.pb file with different tensorflowjs_converters as it seems to be the converters versioning issue. |
Same problem for me when trying to run the TensorFlow SavedModel Import Demo with a custom ssd mobilenet v2 model. @parthlathiya42 it worked for me with the following cast:
|
System information
Describe the current behavior Describe the expected behavior Standalone code to reproduce the issue
Other info / logs Include any logs or source code that would be helpful to
Colab link |
Has there been a fix or bypass for this issue. I created a model using transferred learning from the modelzoo/mask-rcnn model. |
TensorFlow.js version
"@tensorflow/tfjs-node": "^2.0.1"
"@tensorflow/tfjs": "^2.0.1"
Browser version
Nodejs and expressjs, no browser
Describe the problem or feature request
In using a LOCALLY downloaded and served model.... in the NPM/node module the index.js file requires me to cast a tensor to an int32 or it errors out about float32 no matter what I pass it.
Code to reproduce the bug / link to feature request
model loading
info on the tensor
the error out
I manually changed offending code to... and everything runs
The text was updated successfully, but these errors were encountered: