Git Product home page Git Product logo

Comments (2)

JunkyByte avatar JunkyByte commented on September 18, 2024

Hello, batched inference is not implemented and is on the TODO list.
It should be straightforward using torch checkpoints but might require some more engineering using tensorrt and onnx.

The postprocessing to extract the coordinates from heatmaps should work right away, you can find it here.

I would be interested to merge a batched inference version if the performance gain is noticeable.
If you want to work on this I can provide you feedback and help. I would start by adapting the onnx models because the trt inference is more complex. Check the notebook used to export the models link and try to run inference on a batched input, it should have dynamic batch size already enabled.
Once it works check the other notebook to_trt.ipynb that exports the trt models from the onnx ones. The export function and inference engine must be adapted to accept arbitrary batch sizes.

If you manage to run the models on batches we can later adapt the code to also run batched pre/post processing and bbox extraction.

from easy_vitpose.

JunkyByte avatar JunkyByte commented on September 18, 2024

Closing for inactivity, feel free to reopen

from easy_vitpose.

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.