Open Robertb84 opened 6 years ago
I was able to fix this on my own model by changing
const float Scale = 1
to
const float Scale = 128f
See if it works for you.
@hwvs I just spent 4 days troubleshooting why my trained models coming out of a python system weren't working correctly in my c# inference code and this was the culprit. Pre processing between c# and python are identical otherwise.
@Robertb84 I Have two Result with python My Model Work Well . with TensorflowSharp my model Is not Goood . Help Me . Is TensorflowSharp Good For Using or ... ??
Hi, I'am trying to use a retrained graph, out of tensorflows tutorial in a Unity project with the webcamtexture. But as a first test i simply tried to Load a picture and let it run through the graph. I basically tried what is shown in example "ExampleInceptionInference"
I used optimize for inference and transform_graph on it (with different calls and settings, i "collected" some graphs)
The graphs work perfectly in python after and before each editing step (retrain, optimize and transform) My guess is that i'am doing something wrong when i try to transform the picture to a tensor. I'am using the code out of the example with slight changes. (W,H, Mean are different)
I Init my class with
and basically after a few seconds i trigger
But in TensorflowSharp i get completely different results.
so in short i have two questions: