Giter VIP home page Giter VIP logo

Comments (5)

wang-xinyu avatar wang-xinyu commented on May 12, 2024

Here 1 << 20 means 1MB, which is the workspace size for tensorrt engine building phase.
This one will not impact the runtime GPU memory utilization.

from tensorrtx.

makaveli10 avatar makaveli10 commented on May 12, 2024

Okay! So, I am using RetinaFace for inference on a video. And it utilizes only 1000 MB during inference. As a result of which processes only at 25 fps. Which is very low for the standards of TensorRT. Can we somehow increase the runtime GPU memory utilization or the 20 fps processing speed??

from tensorrtx.

wang-xinyu avatar wang-xinyu commented on May 12, 2024

You can try smaller input size to get faster speed.

from tensorrtx.

aditya-dl avatar aditya-dl commented on May 12, 2024

Hey @wang-xinyu

Is there a way we can allot more GPU memory to the engine or force the engine to use higher memory?

from tensorrtx.

wang-xinyu avatar wang-xinyu commented on May 12, 2024

@aditya-dl I didn't see any TensorRT API can do this.
I think tensorrt is merging the layers and channels during building phase, then calling cudnn and cuda functions to do inference during runtime phase. It aims at saving the GPU memory, and get shorter latency at the same time.
If you want to use more GPU memory to get shorter latency, I think it can't.
If you want to use more GPU memory to get more FPS, you can try increasing the batch size to processing multi images a time.

from tensorrtx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.