• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
WebSetNet

WebSetNet

Technology News

  • Technology News
    • Mobile
    • Games
  • Internet Marketing
  • System Admin
    • Windows
    • Linux
    • Mac & Apple
    • Website Scripts
      • Wordpress

Microsoft announce the public release of DirectML as a standalone API

January 30, 2021 by justin26

Today Microsoft announced the public release of DirectML as a standalone API for Win32, UWP, and WSL applications.

DirectML is available in every one of the billion Windows 10 devices worldwide, and over a hundred applications already take advantage of DirectML—with over two hundred million GPU- hardware accelerated inferences performed daily on Windows.

The applications range from photo editing applications enabling new user experiences through AI to tools that help you train machine learning models for your applications with little effort, by leveraging the computing power of any DirectX 12 GPU.

To make it even easier for applications to take advantage of DirectML, Microsoft is releasing DirectML as a standalone API in a single NuGet package, Microsoft.AI.DirectML.

See examples of how it is already being used below:

Model Inference on the Edge with Windows ML

Machine learning is helping people work more efficiently and DirectML provides the performance, conformance, and low-level control developers need to enable these experiences. Frameworks like Windows ML and ONNX Runtime layer on top of DirectML, making it easy to integrate high-performance machine learning into your application.

Once the domain of science fiction, scenarios like “enhancing” an image are now possible with contextually aware algorithms that fill in pixels more intelligently than traditional image processing techniques. DxO’s DeepPRIME technology illustrates the use of neural networks to simultaneously denoise and demosaic digital images. DxO leverages Windows ML and DirectML to harness the performance and quality their users expect.

Healthcare is another field leveraging machine learning techniques in interesting ways. Consider a sonographer using an ultrasound device to evaluate fetal brain development during their patient’s pregnancy. Acquiring the required planes and taking the required measurements for this is challenging because it requires lots of manual input from the sonographer. This is where GE Healthcare’s Voluson™ Ultrasound Devices comes in handy: pre-trained neural networks help the sonographer using the ultrasound probe automatically segment specific imaging planes from a volume and perform manual measurements. Previously identifying the approriate planes and measurements required time-consuming manual adjustments. GE Healthcare relies on Windows ML and DirectML for delivering consistent and reliable results across a broad range of their ultrasound devices.

GE Healthcare’s SonoCNS helping capture measurements required for fetal brain assessment.

An exciting area of growth is at the intersection of machine learning and real-time graphics in video games where performance is critical. Early applications in this area include using neural networks for superior image upscaling and filling in the sampling gaps of ray-traced images; these techniques are making it possible to present high-resolution gameplay without the cost of high-resolution rendering. The DirectML Super Resolution sample showcases how DirectML can integrate seamlessly with these real-time graphics intensive applications.

Example image from the DirectML Super Resolution sample.

Machine learning is a rapidly evolving field, and new applications like these are introduced every day: models are used for transcribing audio, translating hand-written notes into text, fault detection in manufacturing, and many more! DirectML has provided the hardware acceleration support needed for these scenarios since Windows 10 version 1903. Now the DirectML NuGet package offers our latest hardware acceleration investments even sooner to framework and application developers. If your model is representable using the ONNX format, then you too can tap into DirectML.

Training Models with TensorFlow and Lobe

Accelerating inference is where DirectML started: supporting training workloads across the breadth of GPUs in the Windows ecosystem is the next step. In September 2020, Microsoft open sourced TensorFlow with DirectML to bring cross-vendor acceleration to the popular TensorFlow framework. This project is all about enabling rapid experimentation and training on your PC, regardless of which GPU you have on your device, with a simple and painless setup process. Microsoft also know many machine learning developers depend on tools, libraries, and containerized workloads that only work with Unix-like operating systems, so DirectML runs in both Windows and the Windows Subsystem for Linux. DirectML makes it easy for you to work with the environment and GPU you already have.

Object detection running on a video using the YOLOv4 model through TensorFlow with DirectML.

Machine learning is also becoming increasingly accessible with tools like Lobe – an easy to use app that has everything you need to bring your machine learning ideas to life. To get started, collect and label your images and Lobe will automatically train a custom machine learning model for you. On Windows, Lobe uses DirectML to deliver great performance across a wide range of GPUs. When training is done, you can try out your model and ship it to any platform you choose.

Getting Started with DirectML

If you’re a developer looking to benefit from hardware accelerated machine learning through DirectML, get started today with the framework, package, or application that works best for you:

Windows ML ONNX Runtime with DirectML TensorFlow with DirectML Lobe DirectML
Use Case The best developer experience for ONNX model inferencing on Windows. Cross platform C API for ONNX model inferencing. Hardware accelerated model training on any DirectX 12 GPU. An easy to use app that has everything needed to train custom machine learning models. Provides flexibility with direct access to DirectX 12 resources for high-performance frameworks and applications.
Documentation MS Docs GitHub GitHub and MS Docs Lobe.ai GitHub and MS Docs
Distribution Windows SDK or NuGet: Microsoft.AI.MachineLearning NuGet: Microsoft.ML.OnnxRuntime.DirectML PyPI Package: tensorflow-directml Application: Lobe Windows SDK or NuGet: Microsoft.AI.DirectML
DirectML Support Inference Inference Inference and Training Inference and Training Inference and Training

In addition to all of the investments Microsoft has updated their documentation bringing more detail than ever before along with new code samples and learning resources, making it easier to integrate DirectML with your application. Microsoft has also added new content for developers to the DirectML GitHub repo:

· DirectMLX, a new C++ library that wraps DirectML to enable easier and simpler usage, especially for combining operators into blocks or even into complete models.

· PyDirectML, a Python binding to quickly experiment with DirectML and the Python samples without writing a full C++ sample.

· Sample applications in both C++ and Python, including a full end-to-end implementation of real-time object detection using YOLOv4.

This post only scratches the surface of what’s possible with machine learning and DirectML, and Microsoft is excited to see where developers take DirectML next.

AI Developers can keep an eye on the DirectML GitHub for new resources and future updates on the investments Microsoft is making.

Original Article

Related posts:

  1. Android 11 Custom ROM List – Unofficially Update Your Android Phone!
  2. Best Windows laptop in 2022
  3. Microsoft Windows Security Updates February 2019 overview
  4. Installing Google TensorFlow Neural Network Software for CPU and GPU on Ubuntu 16.04
  5. Android 12 “Snow Cone”: Everything we know so far about Google’s next big update, with Developer Preview 1 changes!
  6. Microsoft Windows Security Updates September 2020 overview
  7. The ultimate guide to fixing problems with the May 2020 Update
  8. LineageOS 18.1 based on Android 11 is here for nearly 60 devices
  9. Microsoft Security Updates February 2018 release
  10. Microsoft Windows Security Updates November 2020 overview

Filed Under: Windows

Primary Sidebar

Trending

  • How to fix Windows Update Error 80244019
  • Windows 10 Update keeps failing with error 0x8007001f – 0x20006
  • How To Change Netflix Download Location In Windows 10
  • Troubleshoot Outlook “Not implemented” Unable to Send Email Error
  • How do I enable or disable Alt Gr key on Windows 10 keyboard
  • How To Install Android App APK on Samsung Tizen OS Device
  • 3 Ways To Open PST File Without Office Outlook In Windows 10
  • FIX: Windows Update error 0x800f0986
  • How to Retrieve Deleted Messages on Snapchat
  • Latest Samsung Galaxy Note 20 leak is a spec dump revealing key features
  • Install Android 7.0 Nougat ROM on Galaxy Core 2 SM-G355H
  • 192.168.1.1 Login, Admin Page, Username, Password | Wireless Router Settings
  • Websites to Watch Movies Online – 10+ Best Websites Without SignUp/Downloading
  • How to Backup SMS Messages on Your Android Smartphone
  • How to delete a blank page at the end of a Microsoft Word document
  • Fix: The Disc Image File Is Corrupted Error In Windows 10
  • Android 11 Custom ROM List – Unofficially Update Your Android Phone!
  • Samsung Galaxy Z Fold 3 could be scheduled for June 2021, with S Pen support

Footer

Tags

Amazon amazon prime amazon prime video Apple Application software epic games Galaxy Note 20 Galaxy S22 Plus Galaxy S22 Ultra Google Sheets headphones Huawei icloud Instagram instant gaming ip address iPhone iphone 12 iphone 13 iphone 13 pro max macOS Microsoft Microsoft Edge Mobile app office 365 outlook Pixel 6 Samsung Galaxy Samsung Galaxy Book 2 Pro 360 Samsung Galaxy Tab S8 Smartphone speedtest speed test teams tiktok Twitter vpn WhatsApp whatsapp web Windows 10 Windows 11 Changes Windows 11 Release Windows 11 Update Windows Subsystem For Android Windows 11 Xiaomi

Archives

  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org