PaddlePaddle / PaddlePaddle/Paddle

Fast inference with low RAM usage

Open
#60,740 0 comments 0 reactions 1 assignee View on GitHub

@hitywt is already working on this.

Since Jan 10, 2024.

status/new-issue type/question
Dominant language
C++
Stars
24.1k
Forks
6k
Avg merge
4d 17h
Merged PRs (30d)
60

Description

请提出你的问题 Please ask your question

We have a project where we want to use PaddlePadle or Paddle-Lite
We want to use it for OCR, background matting and face detection.
Our platform is a Nvidia Jetson TX2 NX with 4 GB RAM.

Our requirements are following:

  • Fast inference on GPU
  • Low RAM usage (maximum 1 GB)
  • CUDA 10.2
  • CUDNN 8.0
  • TENSORRT 7.1.3

First, we tried PaddlePaddle:
PaddleOCR with PaddlePaddle takes 700ms for our test document, that’s OK.
But it uses a lot of Ram (over 2 GB before loading the models).
That’s too much, our Software needs more free RAM!

Then we tried Paddle-Lite:
PaddleOCR with Paddle-Lite takes 5500ms for our test document, that’s too slow.
But it uses less RAM, that’s good!

What we need is either Paddle-Lite using the GPU so it is faster or PaddlePaddle using less RAM.

Can you assist us in this problem?

  1. Can you give us a compiled version of PaddlePaddle or Paddle-Lite that meets our requirements?
  2. Can you tell us the changes we need to make in the sources to compile one of these versions by our self?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.