Git Product home page Git Product logo

Comments (7)

SkalskiP avatar SkalskiP commented on June 12, 2024 2

Hi @mgithinji 👋🏻, we updated this code yesterday. I'll take a look.

from supervision.

mgithinji avatar mgithinji commented on June 12, 2024 1

Thanks for taking this on @SkalskiP!

from supervision.

dvignacioglobal avatar dvignacioglobal commented on June 12, 2024

Also having this problem. I noticed that this happens when there is no person being detected in the video.

File "C:\Users\Dennis\miniconda3\envs\PCEE\Lib\site-packages\supervision\detection\tools\smoother.py", line 80, in update_with_detections
tracker_id = detections.tracker_id[detection_idx]
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
IndexError: index 0 is out of bounds for axis 0 with size 0

from supervision.

SkalskiP avatar SkalskiP commented on June 12, 2024

Hi @mgithinji 👋🏻, I managed to reproduce the bug. I'll do my best to solve this problem.

from supervision.

SkalskiP avatar SkalskiP commented on June 12, 2024

@mgithinji I did two things:

  • updated example code and replaced sv.calculate_dynamic_line_thickness and sv.calculate_dynamic_text_scale with sv.calculate_optimal_line_thickness and sv.calculate_optimal_text_scale respectively
  • released a new pre-release version supervision-0.21.0rc1 that at least during my tests worked

could you test it?

pip uninstall supervision
pip install supervision==0.21.0rc1

from supervision.

mgithinji avatar mgithinji commented on June 12, 2024

@SkalskiP that worked! 😁 I'm guessing you fixed the issue in the new supervision release. Thanks for covering this issue!

from supervision.

SkalskiP avatar SkalskiP commented on June 12, 2024

Wonderful! In that case, I'm closing this issue. For the time being (until supervision-0.21.0 release) the solution is to run examples with supervision==0.21.0rc1.

from supervision.

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.