Comments (15)
@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, 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.
Thanks a lot for your response. Have a good day!
Best Yuan.
from vehicle-detection-and-tracking.
@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, 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.
@zhangyuan1997 I am wondering about this too. I have not encountered this situation before.
from vehicle-detection-and-tracking.
@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.
@zhangyuan1997, I am lookining into my code and would let you know if I fix the bug. Thanks again.
from vehicle-detection-and-tracking.
from vehicle-detection-and-tracking.
Thanks a lot. I have added this label😄
from vehicle-detection-and-tracking.
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.
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.
In addition, what is the basis for the score threshold to be 0.3?
Thanks a lot for your response!
Best.
from vehicle-detection-and-tracking.
In addition, why is the basis for the score threshold to be 0.3?
Thanks a lot for your response!
Best.
from vehicle-detection-and-tracking.
@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.
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.
Glad that I can be of some help. Let me close this issue for now.
from vehicle-detection-and-tracking.
Related Issues (20)
- using infrared camera HOT 4
- Drawing the tracking of the cars HOT 4
- detecting of persons not working HOT 6
- tracking is lost
- about matching detections and trackers HOT 8
- NameError: name 'Tracker' is not defined HOT 2
- moviepy.editor.VideoClip not working
- module 'helpers' has no attribute 'draw_box_label' HOT 1
- A question about video tracking HOT 7
- Using this for person tracking on different videos HOT 7
- Tracker without constant velocity HOT 2
- About state, process, measurement covariance HOT 1
- no module movie.py HOT 1
- Assign Id to the tracked object HOT 3
- License? HOT 2
- Tracking and counting
- TypeError in main.py HOT 5
- how do you initialize the tracker? I have problems when I run main.py as shown below. HOT 1
- requirements.txt file HOT 1
- No folder named models HOT 1
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 vehicle-detection-and-tracking.