Giter Club home page Giter Club logo

Comments (15)

kcg2015 avatar kcg2015 commented on June 15, 2024

@zhangyuan1997, thanks a lot for bringing this up. It could well be a bug. I will look into it. Meanwhile, could you try commenting out the line 147 to see if it works? Alternatively you can add if len(track_id_list) > 0: tmp_trk.id = track_id_lst.popleft() to avoid popping an empty list.

from vehicle-detection-and-tracking.

zhangyuan1997 avatar zhangyuan1997 commented on June 15, 2024

@zhangyuan1997, thanks a lot for bringing this up. It could well be a bug. I will look into it. Meanwhile, could you try commenting out the line 147 to see if it works? Alternatively you can add if len(track_id_list) > 0: tmp_trk.id = track_id_lst.popleft() to avoid popping an empty list.

Thanks a lot.I will try to debug with your method. The same error occurred (pop from an empty deque) when I used other video to test, but it happened at 198th frame.
qq 20190131102951
Thanks a lot for your response. Have a good day!
Best Yuan.

from vehicle-detection-and-tracking.

zhangyuan1997 avatar zhangyuan1997 commented on June 15, 2024

@zhangyuan1997, thanks a lot for bringing this up. It could well be a bug. I will look into it. Meanwhile, could you try commenting out the line 147 to see if it works? Alternatively you can add if len(track_id_list) > 0: tmp_trk.id = track_id_lst.popleft() to avoid popping an empty list.

Thank you very much! When I comment out the line 147, it works with no error.

from vehicle-detection-and-tracking.

zhangyuan1997 avatar zhangyuan1997 commented on June 15, 2024

@zhangyuan1997, thanks a lot for bringing this up. It could well be a bug. I will look into it. Meanwhile, could you try commenting out the line 147 to see if it works? Alternatively you can add if len(track_id_list) > 0: tmp_trk.id = track_id_lst.popleft() to avoid popping an empty list.

I wonder why there is an empty deque?

from vehicle-detection-and-tracking.

kcg2015 avatar kcg2015 commented on June 15, 2024

@zhangyuan1997 I am wondering about this too. I have not encountered this situation before.

from vehicle-detection-and-tracking.

zhangyuan1997 avatar zhangyuan1997 commented on June 15, 2024

@zhangyuan1997 I am wondering about this too. I have not encountered this situation before.

Have you tried multiple different datasets before, including the ones you recorded?If you need the data set I recorded to help solve the bug, I will send it to you by email.

from vehicle-detection-and-tracking.

kcg2015 avatar kcg2015 commented on June 15, 2024

@zhangyuan1997, I am lookining into my code and would let you know if I fix the bug. Thanks again.

from vehicle-detection-and-tracking.

kcg2015 avatar kcg2015 commented on June 15, 2024

from vehicle-detection-and-tracking.

zhangyuan1997 avatar zhangyuan1997 commented on June 15, 2024

Thanks a lot. I have added this label😄

from vehicle-detection-and-tracking.

zhangyuan1997 avatar zhangyuan1997 commented on June 15, 2024

You can modify def draw_box_label(img, bbox_cv2, box_color=(0, 255, 255), show_label=True): in helper.py Best

Hello, sorry to take up your time. I would like to ask the score in the scores obtained from this statement (line53: self.scores =self.detection_graph.get_tensor_by_name('detection_scores:0')) in the detector.py defaults to the highest score for each box? I found that each box corresponds to a score, corresponding to a category. The figure below shows 100 boxes, 100 categories, and 100 predicted scores (where the red line is drawn) in the first frame.
qq 20190201171327
But in a general classification task should not be a box corresponding to multiple predicted categories and scores? Rather than the 1:1:1 relationship above.

from vehicle-detection-and-tracking.

zhangyuan1997 avatar zhangyuan1997 commented on June 15, 2024

In addition, what is the basis for the score threshold to be 0.3?
qq 20190201172319

Thanks a lot for your response!
Best.

from vehicle-detection-and-tracking.

zhangyuan1997 avatar zhangyuan1997 commented on June 15, 2024

In addition, why is the basis for the score threshold to be 0.3?
qq 20190201172319

Thanks a lot for your response!
Best.

from vehicle-detection-and-tracking.

kcg2015 avatar kcg2015 commented on June 15, 2024

@zhangyuan1997, you have to tune this parameter based on the detector's performance on your images. If the value is too low, you would have false-positives. If the value is too high, you would have miss-detections. I choose 0.3 because it works the best for the images I tested.

from vehicle-detection-and-tracking.

zhangyuan1997 avatar zhangyuan1997 commented on June 15, 2024

Thanks a lot!Having a discussion with you has taught me a lot.😊😊😊Thank you very much. Happy New Year.

from vehicle-detection-and-tracking.

kcg2015 avatar kcg2015 commented on June 15, 2024

Glad that I can be of some help. Let me close this issue for now.

from vehicle-detection-and-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.