Comments (7)
Hi @mgithinji 👋🏻, we updated this code yesterday. I'll take a look.
from supervision.
Thanks for taking this on @SkalskiP!
from supervision.
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.
Hi @mgithinji 👋🏻, I managed to reproduce the bug. I'll do my best to solve this problem.
from supervision.
@mgithinji I did two things:
- updated example code and replaced
sv.calculate_dynamic_line_thickness
andsv.calculate_dynamic_text_scale
withsv.calculate_optimal_line_thickness
andsv.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.
@SkalskiP that worked! 😁 I'm guessing you fixed the issue in the new supervision
release. Thanks for covering this issue!
from supervision.
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)
- [PolygonZone] - drop `frame_resolution_wh` requirement HOT 5
- Interpolation error on computing average precision HOT 4
- Update to support new `from_transformers` methods HOT 1
- [DetectionDataset] - extend `from_coco` and `as_coco` with support for masks in RLE format HOT 11
- the result.mp4 cannot be played on the browser HOT 4
- Adding a function to convert Supervision.Detections to Ultralytics.Results? HOT 2
- Filter Detections Error HOT 7
- I want to filter detections so that only the classes "No Helmet", "Person", "Rider" are detected. HOT 1
- Multi-can tracking HOT 1
- ultralytics_stream_example do not work HOT 8
- ByteTrack memory consumption increases indefinitely HOT 4
- [KeyPoints] - add `from_mediapipe` connector allowing Supervision to be used with Google MediaPipe models HOT 4
- Request: as_coco Parameter Adjustment for sv.DetectionDataset in Supervision API HOT 7
- HaloAnnotator does not work HOT 1
- I want to show zone_annotator all the time
- the update of supervision HOT 3
- small objects detection using sahi or combine it with other models HOT 2
- Saving Detections - Possible Issue? HOT 8
- Smoother Fails Due to Missing tracker_id in Detections HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supervision.