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

Expects arg[0] to be uint8 but float is provided #53

Open
jackswei opened this issue Dec 30, 2020 · 2 comments
Open

Expects arg[0] to be uint8 but float is provided #53

jackswei opened this issue Dec 30, 2020 · 2 comments

Comments

@jackswei
Copy link

i use tf2 save model for ex TestResnet
use my ssd_resnet50 can't run
Resnet.RecognitionResult[] results = resnet.Recognize(imageTensor);
but in Anaconda3
tf 2.3
it can wrok.

2020-12-30_11-12-20

@jackswei
Copy link
Author

{"Expects arg[0] to be uint8 but float is provided"}
Data: {System.Collections.ListDictionaryInternal}
HResult: -2146233088
HelpLink: null
InnerException: null
Message: "Expects arg[0] to be uint8 but float is provided"
Source: "Emgu.TF.Netstandard"
StackTrace: " at Emgu.TF.StatusChecker.DisposeObject()\r\n at Emgu.TF.Util.DisposableObject.Dispose()\r\n at Emgu.TF.Session.Run(Output[] inputs, Tensor[] inputValues, Output[] outputs, Operation[] targetOperations, Buffer runOptions, Buffer runMetadata, Status status)\r\n at Emgu.TF.Models.Resnet.Recognize(Tensor image)\r\n at Emgu_APP.MainWindow.<.ctor>b__57_0() in F:\Emgu_APP\MainWindow.xaml.cs:line 233"
TargetSite: {Void DisposeObject()}

@jackswei
Copy link
Author

saved_model_cli show --all --dir .\exported-models\my_ssd_mobilenet_v2_fpnlite\saved_model
i find my model is uint8
2020-12-30_15-06-21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant