dell/dvd-ai-pc-image-search

C#

6

12 commits

updated Nov 18, 2024

See the code

README

Issues Apache 2.0 License


Dell Validated Designs for AI PCs are open-source reference guides that streamline development of AI applications meant to run on Dell AI PCs with NPU (neural processing unit) technology.

This project showcases Offline Image Search capabilities with some multimodal models by using OpenAI CLIP and OpenAI Whisper running on AI PC NPUs.

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License

About The Project

This simple reference application uses CLIP and Whisper models from OpenAI running on both Qualcomm and Intel* AI PC silicon. It calculates encodings for all images in a directory with CLIP, then allows for use of spoken phrases (converted to text with Whisper) or text inputs to be encoded, compared to the image set encodings, and return the top matches, all on device.

* Support for Intel AI PCs coming soon.

(back to top)

Built With

(back to top)

Getting Started

This project requires AI PC hardware and software dependencies.

Validated Configurations

This Dell Validated Design has been tested on Dell AI PCs with Qualcomm(R) Snapdragon(R) X Elite processors with at least 16 GB of RAM running Windows 11.

(back to top)

Software Prerequisites

Core Software Package:

(back to top)

Installation

  1. (Recommended) Fork the repo so that you can save any changes that you make
  2. Clone the repo
    git clone https://github.com/<your fork>/dvd-ai-pc-image-search.git
    cd dvd-ai-pc-image-search
    
  3. Open the solution in Visual Studio
    devenv SemanticImageSearchAIPCT.sln
    
  4. Set the processor architecture for your build and build the solution.

(back to top)

Usage

  1. Run the application in Visual Studio

  2. For initial use we recommend that you use a sample image dataset like COCO (a validation subset) or Fruits-360. After downloading one locally, click on the Import button and select the folder containing the images to begin generating encodings. Progress is shown on the bottom bar of the application, with further information on the Debug tab.

  3. Once the import is complete, click on the microphone button to start phrase detection or type in the text box (and press Enter to trigger search).

  4. The application will retrieve the images that best match the supplied search term(s).

Image Search DVD Demo Ingest on Qualcomm AI PC

Image Search DVD Demo on Qualcomm AI PC

(back to top)

License

Distributed under the Apache 2.0 License. See LICENSE.txt for more information.

(back to top)

Authors

Robert Hernandez, Parimi Satya, Mark Chen, Tyler Cox

(back to top)

Learn more about Dell AI Solutions and the Dell AI Factory »

dell/dvd-ai-pc-image-search

C#

6

12 commits

updated Nov 18, 2024

See the code

README

Issues Apache 2.0 License


Dell Validated Designs for AI PCs are open-source reference guides that streamline development of AI applications meant to run on Dell AI PCs with NPU (neural processing unit) technology.

This project showcases Offline Image Search capabilities with some multimodal models by using OpenAI CLIP and OpenAI Whisper running on AI PC NPUs.

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License

About The Project

This simple reference application uses CLIP and Whisper models from OpenAI running on both Qualcomm and Intel* AI PC silicon. It calculates encodings for all images in a directory with CLIP, then allows for use of spoken phrases (converted to text with Whisper) or text inputs to be encoded, compared to the image set encodings, and return the top matches, all on device.

* Support for Intel AI PCs coming soon.

(back to top)

Built With

(back to top)

Getting Started

This project requires AI PC hardware and software dependencies.

Validated Configurations

This Dell Validated Design has been tested on Dell AI PCs with Qualcomm(R) Snapdragon(R) X Elite processors with at least 16 GB of RAM running Windows 11.

(back to top)

Software Prerequisites

Core Software Package:

(back to top)

Installation

  1. (Recommended) Fork the repo so that you can save any changes that you make
  2. Clone the repo
    git clone https://github.com/<your fork>/dvd-ai-pc-image-search.git
    cd dvd-ai-pc-image-search
    
  3. Open the solution in Visual Studio
    devenv SemanticImageSearchAIPCT.sln
    
  4. Set the processor architecture for your build and build the solution.

(back to top)

Usage

  1. Run the application in Visual Studio

  2. For initial use we recommend that you use a sample image dataset like COCO (a validation subset) or Fruits-360. After downloading one locally, click on the Import button and select the folder containing the images to begin generating encodings. Progress is shown on the bottom bar of the application, with further information on the Debug tab.

  3. Once the import is complete, click on the microphone button to start phrase detection or type in the text box (and press Enter to trigger search).

  4. The application will retrieve the images that best match the supplied search term(s).

Image Search DVD Demo Ingest on Qualcomm AI PC

Image Search DVD Demo on Qualcomm AI PC

(back to top)

License

Distributed under the Apache 2.0 License. See LICENSE.txt for more information.

(back to top)

Authors

Robert Hernandez, Parimi Satya, Mark Chen, Tyler Cox

(back to top)

Learn more about Dell AI Solutions and the Dell AI Factory »

Languages

C#

100.0%