question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Switching IDs when tracking vehicles

See original GitHub issue

Thank you for the repo!

Issues looked at #91 , #133, #76

Current Behavior

I am using fastmot for vehicle re-identification and tracking. There is a lot of id switching for stationary cars and cars traveling at low/high speeds. I am using SSD InceptionV2 as detector and VeRiWild as feature extractor. The input video is interesting as it contains all types of objects small, fast, slow, stationary, etc.

Input video: Input video Output video: output video Config file: config file

Adjusted parameters: max_reid_cost as reid is accurate, std_factor_acc, std_offset_acc from #76.

I was able to save output video with arguments -o path/to/output.mp4 but the output video contains black screen.

How to Reproduce

Added to reid.py

class VeRI(ReID):
    ENGINE_PATH = Path(__file__).parent / 'veriwild_r50ibn.trt'
    MODEL_PATH = Path(__file__).parent / 'veriwild_r50ibn.onnx'
    INPUT_SHAPE = (3, 256, 256)
    OUTPUT_LAYOUT = 2048
    METRIC = 'cosine'

Run the app.py with given config file.

Describe what you want to do

  1. What input videos you will provide, if any: Input video
  2. What outputs you are expecting: less switching
  3. Ask your questions here, if any:

Your Environment

  • Desktop
    • Operating System and version: Ubuntu 18.04
    • NVIDIA Driver version: 470.57.02
    • Used the docker image? Yes

Common issues

  1. GStreamer warnings are normal
  2. If you have issues with GStreamer on Desktop, disable GStreamer and build FFMPEG instead in Dockerfile
  3. TensorRT plugin and engine files have to be built on the target platform and cannot be copied from a different architecture
  4. Reinstalled OpenCV is usually not as optimized as the one shipped in Jetpack

References for models, labels, videos and config: GDrive link

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
GeekAlexiscommented, Sep 2, 2021

These are not duplicate tracks. The issue is from the YOLO outputs. Duplicate detections can’t be removed. Because a new duplicate track will be created if YOLO keeps outputting duplicates. remove_duplicate() is deprecated in version 2 and replaced by rectify_tracks(), which is more robust in crowded scenes.

1reaction
GeekAlexiscommented, Aug 28, 2021

Yes that would help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing a vehicle ID for a Swiftly GPS tracker that you've ...
There may come a time when you need to switch a Swiftly GPS tracker to a new vehicle, and this will include updating...
Read more >
Driver ID in GPS Fleet Tracking Systems
Having access to a driver ID in GPS fleet tracking systems is just one of the many benefits that Geotab's GPS vehicle tracking...
Read more >
Spy Spot 4G Hard Wire Kill Switch GPS Vehicle Tracker ...
Spy Spot 4G Hard Wire Kill Switch GPS Vehicle Tracker - Remotely Disable the Ignition from Any Location - Locator Tracking Device -...
Read more >
Types of Licenses & IDs | Department of Motor Vehicles
Types of Licenses & IDs · Real ID Compliant Driver's License · Enhanced Driver's License (EDL) · Driver Privilege Card (DPC) · Commercial...
Read more >
Address change - State of Michigan
Vehicle. To change your address on your vehicle registration or add a new mailing address online, you will need: Your Michigan license or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found