Apologies in advance for this relatively newbie question. Using Tensorflow, I've trained a neural net in python and I'd like to use it to classify images in a c++ application, which I want to later integrate into an android app.
Today I spent all day working through the Tensorflow Serving tutorial: https://tensorflow.github.io/serving/serving_basic.
I have everything installed and working, but it's still not obvious to me what to do next. Is TF Serving the right thing to do? Can it be used to integrate a trained TF model into a an application? Or is it just something to build models that can be run from the Terminal?
If TF Serving is not what I need, then where should I look in stead? Is there a simpler way to use trained models cross-platform?
Thanks!
Please take a look at this section in the tutorial for how to load a SessionBundle in c++.
Once you have a SessionBundle you can use utilities in signature.h to get a signature (e.g., GetClassificationSignature) then run an inference (e.g., RunClassification).
Related
There is so few material about Android application examples.
Could someone answer is it possible to use .mlmodel trained with playground in the Android project?
Official sources refers to ML Kit, TensorFlow Lite and AutoML.
Moreover, there is detailed example of use for Android SDK level 16.
But:
(usually ending in .tflite or .lite)
Could you give me any constructive advice or an knowledge I should have to complete the Android project trained with Machine Learning model?
I believe, this information would be useful for every beginner interested in Android development also.
From Can I convert mlmodel files back to tflite? the answer appears to be no.
From what I can tell, the .mlmodel format is a client-end inference model similar to .tflite where .tflite is a minimized format for deployment on device.
I suspect that in the process of conversion from the original full machine learning model, trade-offs are made which may or may not have equivalents between the two formats.
I've been developing an Android application with Android Studio and now I need to be able to open it with Xamarin.forms in Visual Studio (it's a task that my teacher gave me, and it's because a classmate has been creating the iOS version and now we will combine them into one project).
I have to say that I'm pretty much a noob and been looking a few tutorials that talk about Dependency Service and other stuff, but don't seem to quite cover what I'm looking for (or, at least, not clearly enough).
If you have a precise video that explains simply how to do this, I would be grateful if you share it with me.
I thank you for your time and wish you a great day :)
It is impossible at even now in current version of Visual Srudio .
Every file in Xamain is different with Native Android . The Java code can not be directly copyed to use in Xamarin , you should translate them to C#.
Having a look at this document: Porting Java to C# for Xamarin.Android .
There are two ways to port Java code to C#. The first way is to port the code manually. ..The second porting methodology is to try and automate the process by using a code converter...There is often a non-trivial amount of work involved with bootstrapping an automated code conversion tool, and this may prove to be a barrier to use. In many cases, it may be simpler and easier to port Java to C# by hand.
I'm trying to convert an XNA project to Android. I saw a video saying I need to have "opengl mono for android" as an option when creating project, but I don't.
Can anyone tell me how to download this extension?
Use MonoGame.If you don't you will need to rewrite your game including all the rendering logic in either C# using Xamarin.Android or a complete rewrite in Java.
So your best choice would be Monogame:
monogame.net
EDIT
I just found this on an other site it's called exen, but I still think Monogame is a better one because there are many people using it.
link to Exen:
http://andrewrussell.net/exen/
I was looking for a way to build the Xerces-C++ library for Android that I need as a dependency of Delta3D game engine, but could not find any information on this. I would very much appreciate a professional advice.
You can copy xercesc library with Android build scripts from here.
Just copy it into your jni folder and run ndk-build.
Most Android development is done in Java. The Delta3D game engine is in C++, which means you'll need to start with the Android Native Development Kit (NDK). The FAQ claims that the library uses cross-platform dependencies, so, in theory you should be able to use it on Android. However, it is written for OpenGL, not OpenGL ES, which is the subset used in Android. This could cause an issue. The other concern would be memory footprint. There is a fair amount of work that will probably need to be done to get this to compile under Android. You might consider working with a library which has already been ported to Android (or written for it) rather than all the work that will be needed to port this, let alone writing your game. Unless, you already have a game written in this game engine, which I understand why you would want to just port the library over.
I have a few Questions related to AIML integration in the Android OS. I know not much of Java but I do know a lot about AIML. I made the AIML files and now what I want to do is to make one app which can load the files and run them in a GUI. Please tell me a way to do this. If AIML is not possible, is there a C++ way to do it? Please reply fast. I know C++, C and AIML. Not much JAVA or other programming Languages. I am not interested in hosting a web based application as I don't have a site and can't get one.
FYI- AIML stands for 'Artificial Intelligence Markup Language'.
natarajadithyan.
The chatterbots use a complicated algorithm. Simply, the chatterbot executable searches for categories with the underscore wildcard. Next, categories with no wildcard are searched. Last, the star wildcards are checked. When the pattern matches the input, then the AIML interpreter handles the code in the template tags. You may want to look at the source code for this chatterbot to get an idea about how they work.
http://sourceforge.net/projects/qaiml/
Try program-ab.
It's written in java and very easy to integrate in an android app.
I don't know if there is any c/c++ chatbots. If it's available then you can try integrating them using Android Native development kit(called NDK).
NDK is used to write android apps in c++. I personally wont be able to help you with NDK.
But I have integrated program-ab into android app using java. Its pretty simple.