Back to All
Developer Blog

Elevating AI in Capture One with DirectML and Qualcomm Hexagon NPU

Co-written with Gokul Tonpe.

The Snapdragon X Series platforms usher in a new era of AI on PCs by bringing in the powerful Qualcomm Hexagon Neural Processing Unit (NPU). The NPU enhances AI integration across various applications, from creative and collaborative projects to productivity and gaming. Our goal is to make AI accessible to everyone, one PC at a time.

To achieve this goal, we partnered with Microsoft to deliver scalable AI software solutions to improve time to market for developers. Additionally, collaborations with companies like CaptureOne bring AI experiences to life through easy-to-use APIs, such as DirectML.

How Snapdragon X Series platforms benefit from Qualcomm Hexagon NPU and DirectML integration

The Snapdragon X Series platforms, featuring the Qualcomm Hexagon NPU, brings unprecedented AI capabilities to PCs, delivering high-quality AI performance without compromising system responsiveness, battery life, or other critical functions. By offloading AI tasks to the Hexagon NPU, the Qualcomm Oryon CPU and Adreno GPU remain free to handle other essential activities such as web browsing, gaming and multimedia. 

Qualcomm Technologies' work with Microsoft enhances both developer and user experiences by optimizing
DirectML for the Hexagon NPU. This collaboration boosts scalability and efficiency for AI acceleration, empowering developers to fully utilize the NPU's capabilities and deliver superior AI-driven software solutions.

DirectML, known for its robust GPU support, now extends its versatility by adding Qualcomm Hexagon NPU support. This enhancement allows developers to transition from GPU to NPU deployment with minimal code modifications, simplifying the optimization of AI workloads. By leveraging the specialized capabilities of the NPU, developers can achieve enhanced performance and efficiency, ensuring their AI applications adapt effortlessly to the best available hardware.

Figure 1 DirectML on Qualcomm Hexagon NPU vs DirectML on Qualcomm Adreno GPU Performance.  Captured on Snapdragon X Elite in September 2024
Figure 1 DirectML on Qualcomm Hexagon NPU vs DirectML on Qualcomm Adreno GPU Performance. Captured on Snapdragon X Elite in September 2024

How to use DirectML application to select NPU or GPU with a single line of code

The DirectML application can easily select the target DirectX device type as NPU or GPU with a single line of code.

  • DXCORE_ADAPTER_ATTRIBUTE_D3D12_GENERIC_ML  --> Selects NPU
  • DXCORE_ADAPTER_ATTRIBUTE_D3D12_CORE_COMPUTE --> Selects GPU

Head over to GitHub to reference this sample DML application that demonstrates executing a model using NPU and GPU device.

How CaptureOne enhances their photo editing experience with DirectML and Qualcomm Hexagon NPU

Capture One is a professional photo editing software known for its advanced tools, seamless RAW handling, and powerful tethering capabilities. Designed for photographers who demand precision and control, Capture One offers color accuracy, fast workflow, and creative freedom to bring creator’s vision to life. 

Capture One leverages DirectML on the Qualcomm Hexagon NPU, enhancing its AI-driven features. Auto-Cropping and Match Look are standout features that especially benefit from leveraging the Hexagon NPU.

By using Match Look, you can match the style or edits of a reference image with a single click. This feature uses DirectML on the Qualcomm Hexagon NPU to accelerate the experience, ensuring that style matching is performed quickly and accurately. Match Look allows photographers to maintain a consistent aesthetic across their portfolio effortlessly, whether replicating the color grading of a specific image or achieving a uniform look for a series of photos. This tool simplifies the process, saving time and ensuring visual coherence.

Auto-Cropping is another feature that benefits from leveraging the Hexagon NPU. Capture One can now perform Auto Cropping with remarkable speed and accuracy, making sure that each image is perfectly framed without compromising on quality. This AI processing capability allows photographers to streamline their workflow, saving time and effort.

For developers, the addition of Qualcomm Hexagon NPU support in DirectML means the freedom to switch from GPU to NPU deployment with minimal code changes. This flexibility is crucial for Capture One, as it allows the software to optimize AI workloads efficiently. By using the specialized capabilities of the Qualcomm Hexagon NPU, Capture One ensures that its Auto Cropping and Match Look features deliver consistent, high-quality results, empowering photographers to focus more on their creative process and less on manual adjustments.

Capture One’s NPU powered AI experiences will be available commercially on Snapdragon X Series devices starting early 2025. Stay tuned for further announcements!

 

"With DirectML our application maintains a level of abstraction from the underlying chipset, while at the same time allows us to make the most out of the Qualcomm Hexagon NPU on Snapdragon X Series devices, helping accelerate performance of our AI powered features like Auto Cropping and Match Look by 5x.”
Kostas Kastrinogiannis Vice President of Product and Technology, Capture One

CaptureOne Demo

Oct 25, 2024 | 1:42

Video Player is loading.
Current Time 0:00
Duration 1:41
Loaded: 5.78%
Stream Type LIVE
Remaining Time 1:41
 
1x
  • Chapters
  • descriptions off, selected
  • captions off, selected
  • en (Main), selected

Getting started with DirectML on Hexagon NPU

This getting started article from Microsoft is a good place to kick off your process as it outlines system requirements and provides ESRGAN super-resolution model sample.

Helping you port your apps to Windows on Snapdragon is a big part of our developer-first focus. Visit the Windows on Snapdragon developer portal and take a look at the tools and resources we’ve made available.

Something is missing? Ask your questions, bring your suggestions and get prompt support from your technical team on Developer Discord.

Additional resources:

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries ("Qualcomm"). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.

About the Authors
Devang Aggarwal
Devang AggarwalProduct Manager, Senior
Gokul Tonpe
Gokul TonpePrincipal Engineer
Qualcomm relentlessly innovates to deliver intelligent computing everywhere, helping the world tackle some of its most important challenges. Our leading-edge AI, high performance, low-power computing, and unrivaled connectivity deliver proven solutions that transform major industries. At Qualcomm, we are engineering human progress.

Stay connected

Get the latest Qualcomm and industry information delivered to your inbox.

Subscribe
Manage your subscription

© Qualcomm Technologies, Inc. and/or its affiliated companies.

Snapdragon and Qualcomm branded products are products of Qualcomm Technologies, Inc. and/or its subsidiaries. Qualcomm patented technologies are licensed by Qualcomm Incorporated.

Note: Certain services and materials may require you to accept additional terms and conditions before accessing or using those items.

References to "Qualcomm" may mean Qualcomm Incorporated, or subsidiaries or business units within the Qualcomm corporate structure, as applicable.

Qualcomm Incorporated includes our licensing business, QTL, and the vast majority of our patent portfolio. Qualcomm Technologies, Inc., a subsidiary of Qualcomm Incorporated, operates, along with its subsidiaries, substantially all of our engineering, research and development functions, and substantially all of our products and services businesses, including our QCT semiconductor business.

Materials that are as of a specific date, including but not limited to press releases, presentations, blog posts and webcasts, may have been superseded by subsequent events or disclosures.

Nothing in these materials is an offer to sell or license any of the services or materials referenced herein.