Skip to content

Conversation

@ximing-crypto
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@mengshengwu mengshengwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"cell_type": "markdown",
"metadata": {},
"source": [
"## 4. CV (Computer Vision) NPU Inference\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect number,4 has exist

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

" print(\"=== CV NPU Inference Example ===\")\n",
" \n",
" # Model configuration\n",
" model_name = \"NexaAI/paddle-ocr-mlx\" # Example CV model for OCR\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not npu models, do u had test this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@mengshengwu mengshengwu requested a review from Copilot October 22, 2025 06:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds NPU (Neural Processing Unit) inference support for computer vision tasks, specifically OCR (Optical Character Recognition), to the existing notebook demonstrating NPU capabilities. The change expands the notebook's examples to include CV alongside existing LLM, VLM, Embedder, Reranker, and ASR functionalities.

Key Changes

  • Added CV model installation instructions and import statement
  • Implemented a comprehensive CV NPU inference example with OCR text detection and recognition
  • Included timing metrics and result visualization for CV inference
Comments suppressed due to low confidence (2)

examples/python/npu.ipynb:1

  • Corrected comment label from 'ASR model' to 'CV model' to match the actual model type being pulled (paddleocr-npu).
{

examples/python/npu.ipynb:1

  • Model name mismatch: the code uses 'NexaAI/paddle-ocr-mlx' but the prerequisites section specifies 'NexaAI/paddleocr-npu'. These should be consistent - either both should reference the MLX version or both should reference the NPU version.
{

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@mengshengwu
Copy link
Collaborator

python has moved to bindings folder, need rebase main to resolve confilics.

@ximing-crypto ximing-crypto force-pushed the feat/add-cv-npu-example branch from 00ed60a to 22b06c1 Compare October 23, 2025 07:06
@zhiyuan8
Copy link
Contributor

@mengshengwu please review and directly merge after your changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants