Git Product home page Git Product logo

Comments (3)

bwsw avatar bwsw commented on August 14, 2024

@pranavsrihari123 Hi. Savant supports three preprocessing methods:

  1. Nvinfer standard preprocessing configured for the nvinfer element. This is what you typically use by default, and it is used ALWAYS.
  2. Preprocess object meta with custom Python function, which allows modifying padding, coordinates, crop, etc BEFORE (1).
  3. Preprocess object image with custom Python function which allows custom image manipulation for ROI, like increase the contrast, rotate, etc. BEFORE (1).

When you use (3) you do not normally scale the ROI to network input, etc, because it is done by (1) you just correct the current ROI to prepare it for (1), e.g. when you use Oriented BB, you may rotate, when the ROI is dark, your correct colors. Thus, ROIs always fit the original image. We, indeed, make a copy of the original image and place ROIs on it (similar to the Knapsack packing algorithm) before passing them to Nvinfer (1). We do it that way as a temporary workaround solution.

E.g.

  • you do not need (2) & (3) if you just use YOLO for object detection with coaxial bounding boxes.
  • you do need (3) if you detect LPs or faces and try to align them by keypoints.
  • you do need (2) if you need to crop a certain part of the object for a later model, e.g., the model detected a person, but you need only their head.

from savant.

pranavsrihari123 avatar pranavsrihari123 commented on August 14, 2024

Is Nvinfer standard preprocessing configured to use symmetric padding or asymmetric padding?

I am trying to use a pose estimation model (rtmpose), but it's hard to accurately convert the keypoints to the original ROI because I am unsure how nvinfer is scaling the image.

from savant.

bwsw avatar bwsw commented on August 14, 2024

@pranavsrihari123 you'd better check Nvidia documentation, but quickly looking I see they have symmetrical padding: https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_plugin_gst-nvinfer.html

from savant.

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.