Git Product home page Git Product logo

Comments (3)

mikel-brostrom avatar mikel-brostrom commented on September 22, 2024

Just follow the tiled inference examples under README πŸ˜„

from yolo_tracking.

Asmlatg avatar Asmlatg commented on September 22, 2024

I did but using yolo.track provided a lightweight result compared to using yolo.predict (like in tiled inference example). So, I wanted to utilize it instead of yolo.predict. Would taking the IDs returned by yolo.track suffice? I attempted to extract the IDs using id = r.boxes.id.cpu().numpy(), but encountered an error.

video 1/1 (11/3766)..: 384x640 10 cars, 74.6ms
strong sort called
[ 1 2 3 4 5 6 7 8 9 10]
video 1/1 (12/3766) .. 384x640 10 cars, 64.8ms
strong sort called
[ 1 2 3 4 5 6 7 8 9 10 11 12]
video 1/1 (13/3766) ...: 384x640 11 cars, 1 truck, 67.3ms
strong sort called
Traceback (most recent call last):
File "tracking/track.py", line 237, in
run(opt)
File "../lib/python3.8/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "tracking/track.py", line 159, in run
for r in results:
File "../lib/python3.8/site-packages/torch/utils/_contextlib.py", line 56, in generator_context
response = gen.send(request)
File "..lib/python3.8/site-packages/ultralytics/engine/predictor.py", line 274, in stream_inference
self.run_callbacks('on_predict_postprocess_end')
File "..lib/python3.8/site-packages/ultralytics/engine/predictor.py", line 377, in run_callbacks
callback(self)
File "../lib/python3.8/site-packages/ultralytics/trackers/track.py", line 64, in on_predict_postprocess_end
predictor.results[i] = predictor.results[i][idx]
File "..lib/python3.8/site-packages/ultralytics/engine/results.py", line 108, in getitem
return self._apply('getitem', idx)
File "..lib/python3.8/site-packages/ultralytics/engine/results.py", line 143, in _apply
setattr(r, k, getattr(v, fn)(*args, **kwargs))
File "../lib/python3.8/site-packages/ultralytics/engine/results.py", line 63, in getitem
return self.class(self.data[idx], self.orig_shape)
IndexError: index 9 is out of bounds for dimension 0 with size 9

from yolo_tracking.

github-actions avatar github-actions commented on September 22, 2024

πŸ‘‹ Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

from yolo_tracking.

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.