Git Product home page Git Product logo

Comments (4)

mikel-brostrom avatar mikel-brostrom commented on May 24, 2024

I identified the slow part. step2 in bot_sort.py:

''' Step 2: First association, with high score detection boxes'''

Some example of timed steps:

0: 480x640 1 person, Done. YOLO:(0.045s), BoTSORT:(0.092s)
step2: 0.46398663699999965
step3: 0.0002665390000000656
step4: 6.4769999994496175e-06
step5: 6.332999999969502e-06
merge: 0.00024224299999886512
0: 480x640 1 person, Done. YOLO:(0.044s), BoTSORT:(0.125s)
step2: 0.511612865
step3: 0.00026188500000046133
step4: 4.029000001182226e-06
step5: 4.534000000333549e-06
merge: 0.00018842100000071582
0: 480x640 1 person, Done. YOLO:(0.044s), BoTSORT:(0.225s)
step2: 0.21331869099999956
step3: 0.00011200399999999888
step4: 1.0119999984681272e-06
step5: 1.358000000450943e-06
merge: 0.0001030410000009141

from bot-sort.

mikel-brostrom avatar mikel-brostrom commented on May 24, 2024

Ok, the camera motion compensation seems to be the issue:

# Fix camera motion
warp = self.gmc.apply(img, dets)
STrack.multi_gmc(strack_pool, warp)
STrack.multi_gmc(unconfirmed, warp)

from bot-sort.

NirAharon avatar NirAharon commented on May 24, 2024

Hi @mikel-brostrom, this is not normal behavior.
Please try to use the new --cmc-method I uploaded: sparseOptFlow.
Please let me know if it was able to fix this problem.

from bot-sort.

mikel-brostrom avatar mikel-brostrom commented on May 24, 2024

Sorry for my late response. Just saw that I never responded to this. Yes, this solved the real-time issue. Could you provide a rationale why before we leave this behind us 😄?

from bot-sort.

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.