Closed codeclash closed 5 years ago
Have you tried the final version which is public at the official samples repo? Here: https://github.com/dotnet/machinelearning-samples/tree/master/samples/csharp/end-to-end-apps/DeepLearning_ImageClassification_TensorFlow I think that one shouldn't have the port issue?
Hi @codeclash - we have updated the official sample's readme about the need to potentially change image settings when using a custom Tensor Flow model. Thanks for the feedback!
Just looked at it now that I saw the link. Yep using a relative url in js for the fetch is actually simpler 👍
@bamurtaugh that was fast 👌
@codeclash We are doing our best to monitor issues and update our samples repo to best help the community 😄 Feel free to provide us any other feedback in our repo!
Closing this issue. 👍
When running/debugging the app from Visual Studio, the server port might be a random port: One must adapt that port (and maybe even switch to http instead of https) in upload.js
I trained a multiclass multilabel model in https://www.customvision.ai and downloaded the tensorflow model. Upon testing with my images, I noticed (after correcting the width/height with https://lutzroeder.github.io/netron/ according to your article, I got predictions, but all with very low score for each class. I think it was due to the image offset: After setting
mean = 0
here it worked like expected.Thx for providing this nice and tidy sample btw!