TensorFlow.NET icon indicating copy to clipboard operation
TensorFlow.NET copied to clipboard

Question: Cross-platform demo anywhere (iOS, Android)

Open dgerding opened this issue 6 years ago • 11 comments

Am I correct in assuming I can use TensorFlow.NET and target iOS, Android, Windows? Assuming key issues is matching native tensor flow assembly with target?

Any examples or references appreciated.

dgerding avatar Aug 04 '20 19:08 dgerding

@dgerding We don't have demo yet, as far as I know, you can use Xamaria and Tensorflow Lite to deploy tensorflow model in mobile.

Oceania2018 avatar Aug 08 '20 12:08 Oceania2018

Thanks for the reply. If I find the time I'll see if I can put something together. Tensor flow lite looks cool but I think takes me back towards platform-specific projects which I can avoid a lot of with Xamarin. I didn't know about it and will read more. Thanks again.

dgerding avatar Aug 09 '20 15:08 dgerding

I strongly agree, A cross platform mobile demo with Xamarin would be a really useful addition !

MannyKayy avatar Aug 10 '20 12:08 MannyKayy

The mobile demo would be great. But should all the AI computation happen at the server side?

kerryjiang avatar Aug 10 '20 22:08 kerryjiang

I think all the computation should be on device.. It would be handy to have any one of these examples as a demo.

MannyKayy avatar Aug 11 '20 17:08 MannyKayy

Here's what I am really after: using TensorFlow based tools like BERT, primarily for inference but, in theory, for learning too. Am I wrong in thinking TensorFlow.net "should" let me get to that outcome? I tried using Cherub.Net but it looks like that project might be dormant.

I will happily build out and share a TensorFlow.net-based demo that targets cross-platform (droid, ios, windows?) but I need at least one example of using tensorflow.net with C# on either Android or iOS. I should be able to figure things out from there. I'll keep looking in mean time.

Thanks for a very promising project.

Dave Gerding

dgerding avatar Aug 11 '20 19:08 dgerding

@dgerding It will be good if you can do the research and push the code to examples.

Esther2013 avatar Aug 11 '20 19:08 Esther2013

@Esther2013 and all, if people are saying "to use TensorFlow Lite" are they really implying "use TensorFlow Lite models with TensorFlow.net code"? Confused about how Tensor Flow Lite fits in (or doesn't) with TensorFlow.net?

dgerding avatar Aug 11 '20 19:08 dgerding

Okay, TF Lite is inference only. Any other responses to questions above appreciated.

dgerding avatar Aug 11 '20 20:08 dgerding

If this helps, my specific use case is as follows:

  1. I would like to run an image classification model that would analyse user images on the device...
  2. the results of this analysis may possibly at some later time be used to train a simpler model on the device in order to make personalized predictions.

Just getting step 1 to work with any of the examples mentioned would be very useful. Due to data privacy laws in the EU, this data is too sensitive to be offloaded to remote servers... everything would have to stay on device.

MannyKayy avatar Aug 12 '20 01:08 MannyKayy

I recently encountered a demand for this cross-platform application, and I look forward to an example

BlueCode2019 avatar Aug 12 '20 11:08 BlueCode2019