Giter Site home page Giter Site logo

Comments (6)

SzabolcsGergely avatar SzabolcsGergely commented on September 25, 2024 2

Non-square NN resolutions are supported. There must be some confusion in communication on Discord here; sorry about that.

Examples of a variety of non-square models are used here via the API: https://docs.luxonis.com/en/latest/pages/tutorials/pretrained_openvino/#trying-other-models

For example face-detection-adas-0001 there is 384x672 resolution.

He is referring to parsing for non-square yolo output is not supported on-device.

from depthai-core.

OmarALFA avatar OmarALFA commented on September 25, 2024 2

I built the new library off develop. Can confirm this resolves the issue on my end! Non-square yolov4-tiny NN no longer produces the error!

Note, that you will need to adjust the anchor masks depending on the NN resolution, in the case of 640x352:

detectionNetwork->setAnchorMasks({ {"side40", {0, 1, 2}}, {"side20", {3, 4, 5}} });

For other resolutions, the formula is as follows:

  1. width = inputWidth/16
  2. width = inputWidth/32

e.g.
640/16 = 40 --> "side40"
640/32 = 20 --> "side20"

This applies to tiny yolo. For full yolo, there will be a third:
3. width = inputWidth/8

These notes were provided by @szabi-luxonis. Thank you!

from depthai-core.

OmarALFA avatar OmarALFA commented on September 25, 2024 1

Non-square NN resolutions are supported. There must be some confusion in communication on Discord here; sorry about that.

Examples of a variety of non-square models are used here via the API: https://docs.luxonis.com/en/latest/pages/tutorials/pretrained_openvino/#trying-other-models

For example face-detection-adas-0001 there is 384x672 resolution.

My apologies for the ambiguity.

I've edited this issue with more details and to reflect @szabi-luxonis's clarification.

from depthai-core.

SzabolcsGergely avatar SzabolcsGergely commented on September 25, 2024 1

Non-square NN resolutions are supported. There must be some confusion in communication on Discord here; sorry about that.
Examples of a variety of non-square models are used here via the API: https://docs.luxonis.com/en/latest/pages/tutorials/pretrained_openvino/#trying-other-models
For example face-detection-adas-0001 there is 384x672 resolution.

My apologies for the ambiguity.

I've edited this issue with more details and to reflect @szabi-luxonis's clarification.

Is it possible to share the model? Would help validating parsing support for non-squared model.
If not, sharing the parsing code on host is equally helpful.

from depthai-core.

SzabolcsGergely avatar SzabolcsGergely commented on September 25, 2024 1

Tested w/ network/dataset provided by @OmarALFA
640x352 YOLO network.

from depthai-core.

Luxonis-Brandon avatar Luxonis-Brandon commented on September 25, 2024

Non-square NN resolutions are supported. There must be some confusion in communication on Discord here; sorry about that.

Examples of a variety of non-square models are used here via the API:
https://docs.luxonis.com/en/latest/pages/tutorials/pretrained_openvino/#trying-other-models

For example face-detection-adas-0001 there is 384x672 resolution.

from depthai-core.

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.