TensorFlow.NET | NET Standard bindings Google 's TensorFlow | Machine Learning library

 by   SciSharp C# Version: v0.100.5 License: Apache-2.0

kandi X-RAY | TensorFlow.NET Summary

kandi X-RAY | TensorFlow.NET Summary

TensorFlow.NET is a C# library typically used in Institutions, Learning, Education, Artificial Intelligence, Machine Learning, Deep Learning, Tensorflow, Keras applications. TensorFlow.NET has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

TensorFlow.NET (TF.NET) provides a .NET Standard binding for TensorFlow. It aims to implement the complete Tensorflow API in C# which allows .NET developers to develop, train and deploy Machine Learning models with the cross-platform .NET Standard framework. TensorFlow.NET has built-in Keras high-level interface and is released as an independent package TensorFlow.Keras.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              TensorFlow.NET has a medium active ecosystem.
              It has 2828 star(s) with 453 fork(s). There are 124 watchers for this library.
              There were 1 major release(s) in the last 12 months.
              There are 157 open issues and 585 have been closed. On average issues are closed in 120 days. There are 6 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of TensorFlow.NET is v0.100.5

            kandi-Quality Quality

              TensorFlow.NET has no bugs reported.

            kandi-Security Security

              TensorFlow.NET has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              TensorFlow.NET is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              TensorFlow.NET releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of TensorFlow.NET
            Get all kandi verified functions for this library.

            TensorFlow.NET Key Features

            No Key Features are available at this moment for TensorFlow.NET.

            TensorFlow.NET Examples and Code Snippets

            No Code Snippets are available at this moment for TensorFlow.NET.

            Community Discussions

            QUESTION

            Object detection on Raspberry PI using customvision.ai/.NET 5
            Asked 2021-Dec-22 at 01:34

            We have written a x-plat worker service using .NET 5 that is running on a Raspberry PI 4 (Raspberry Pi OS). We have trained a custom vision object detection model on customvision.ai, exported it to ONNX and it all works well on Windows.

            We are now struggling to get it running on the Pi. The ML.NET bits does not seem to work on the Pi. We're getting (with target runtime "linux-arm"):

            Microsoft.ML currently supports 'x64' and 'x86' processor architectures. Please ensure your application is targeting 'x64' or 'x86'

            We've searched hi and low for any working examples. We've also tried to export to Tensorflow format and explore Tensorflow.NET without any success.

            Can anyone point to an example that is consuming a customvision.ai generated model in .NET Core/5 on a Raspberry PI? We are extending an existing prototype and would like to avoid rewriting it all in Python/C++ or create out of process calls.

            Versions: ML.NET 1.6, Microsoft.ML.OnnxRuntime 1.8.1

            Many thanks,

            Mansos

            ...

            ANSWER

            Answered 2021-Oct-09 at 23:57

            Are you running an Uno Platform app to capture a picture from the camera module (or usb webcam) in your Pi4 and running ML.Net too?

            Source https://stackoverflow.com/questions/69132298

            QUESTION

            Unity dll works in the editor but fails to load in standalone
            Asked 2020-Oct-23 at 11:41

            I am using the TensorFlow.net library for loading some machine learning models. Everything works fine in the editor. However, when I am building the app (Windows standalone app) the dll is not loaded and therefore callbacks to the TensorFlow models cannot be made. The strangest thing is that the dll works fine and is loaded when I build the player as a development build with script debugging enabled. I tried moving the dll next to the .exe on the root folder but the problem persisted.

            Any ideas on how to approach the issue?

            ...

            ANSWER

            Answered 2020-Sep-03 at 10:24

            I solved this so I am posting the answer in case someone might find this helpful in the future.

            The problem was that I have added all the managed and native DLLs inside the Unity project manually by downloading the dll from visual studio through nugget, compiling, and then copying the file inside the assets/Plugins folder. That probably created some dependencies that they were working inside the editor but the dll was unable to find the corresponding package when building the app.

            The solution came by using nuget2Unity that automatically downloads NuGet packages and translates them to unity packages. Using this tool I was able to make it work both in the editor and standalone player. In case you follow this solution and you receive errors such as "unloading broken assembly", "could not load signature", just move all the managed dlls to the same Plugins folder under assets and the error will go away.

            I hope this answer may come in handy.

            Source https://stackoverflow.com/questions/63705389

            QUESTION

            C# ML.Net Image classification: Does GPU acceleration help improve the performance of predictions and how can I tell if it is?
            Asked 2020-Aug-31 at 21:20

            I'm currently working on a desktop tool in .NET Framework 4.8 that takes in a list of images with potential cracks and uses a model trained with ML.Net (C#) to perform crack detection. Ideally, I'd like the prediction to take less than 100ms on 10 images (Note: a single image prediction takes between 36-41ms).

            At first, I tried performing multiple predictions in different threads using a list of PredictionEngines and a Parallel.For-loop (using a list of threads since there is no PredictionEnginePool implementation for .Net Framework). I later learned that using an ITransformer to do predictions is a recommended, thread-safe, approach for .Net Framework and moved to using that, but in both cases it did not give me the performance I was hoping for.

            It takes around 255-281ms (267.1ms on average) to execute the following code:

            ...

            ANSWER

            Answered 2020-Aug-31 at 19:31

            It's likely a version mismatch.

            TensorFlow supports CUDA® 10.1 (TensorFlow >= 2.1.0)

            https://www.tensorflow.org/install/gpu

            You can check your output window for reasons why it would not be connecting to your GPU.

            Source https://stackoverflow.com/questions/63641000

            QUESTION

            How to convert a image (Texture2D) to tensor
            Asked 2020-Jul-03 at 10:40

            I have c# TensorFlow.NET working in Unity. But it using an image from the file system. I want to be able to use an image from memory (Texture2D).

            I tried to follow some examples of people using TensorFlowSharp. But that didn't work.

            What am I doing wrong?

            Note: with both functions, I am using the same image. The image is 512x512. but the result of both pictures is different.

            ...

            ANSWER

            Answered 2020-Jul-03 at 10:40

            I ended up using this code from Shaqian: https://github.com/shaqian/TF-Unity/blob/master/TensorFlow/Utils.cs

            Add this script to your project and then you could use it like this:

            Source https://stackoverflow.com/questions/62711191

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install TensorFlow.NET

            You can download it from GitHub.

            Support

            Feel like contributing to one of the hottest projects in the Machine Learning field? Want to know how Tensorflow magically creates the computational graph? We appreciate every contribution however small. There are tasks for novices to experts alike, if everyone tackles only a small task the sum of contributions will be huge.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link