emgucv / emgutf

Emgu TF is a cross platform .Net wrapper for the Google Tensorflow library. Allows Tensorflow functions to be called from .NET compatible languages such as C#, VB, VC++, IronPython.

Home Page:https://www.emgu.com/wiki/index.php/Emgu_TF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jackswei opened this issue · 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

{"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()}

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