emgutf icon indicating copy to clipboard operation
emgutf copied to clipboard

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

Open jackswei opened this issue 4 years ago • 2 comments

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 avatar Dec 30 '20 03:12 jackswei

{"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 avatar Dec 30 '20 04:12 jackswei

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

jackswei avatar Dec 30 '20 07:12 jackswei