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.

No video output for custom classes.

See original GitHub issue

Hello, I am trying to use FastMOT to detect custom classes but there in no detection or tracking output when I run the app.py script, it simply gives me the same input video but resized and with the text “visible: 0” on the top left corner.

I run:

python3 app.py --input_uri custom/v1_second_tree.mp4 --mot --output_uri results.mp4

And get output:

image

I’ve read issue #30 and I have Driver Version: 471.11 (Using Ubuntu 20.04) and I’ve also tried to assign “computes=52” in the makefile as I am using a GTX 970, which has a compute capability of 5.2.

It is important to point out that when I run "docker run … ", a message appears:

image

I think the gpu is available within the docker container, because when I execute the command “nvidia-smi” and “/usr/local/cuda/bin/nvcc --version”, it outputs this:

image And also when I run app.py, I can see that the GPU resources are being used as well as its temperature rising.

Regarding the setup to track custom classes, I simply followed the guide:

  • Successfully trained YOLOv4-p5 using AlexeyAB darknet framework;
  • Converted the trained model to .onnx using the provided script “/scripts/yolo2onnx.py”
  • Disabled fast-reid (according to #35 (comment));
  • Changed subclass YOLO to:

image

  • Changed class labels to the only class I want to detect:

image

  • And changed mot.json accordingly:

image

Any ideas of what might be happening? Thank you so much again for your project and kind support.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
GeekAlexiscommented, Jul 31, 2021

It’s for all scaled YOLOv4 models because these are usually trained with letterbox preprocessing. Will push a fix today.

0reactions
GeekAlexiscommented, Aug 2, 2021

Should be fixed now.

For your question, you need to count confirmed tracks. So you can count unique ID’s in mot.visible_tracks at every frame and accumulate them with a data structure like set. Or you can just output a MOT challenge log with the -l option and count the number of unique ID’s in the log.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Images do not display after adding custom class
I have added that class to my tags. But now, when I load my page, these images don't display at all. Here is...
Read more >
How To Unlock Create A Class Or Custom Loadouts In Call Of ...
In this video i explain How To Unlock Create A Class Or Custom Classes In Call Of Duty Modern Warfare 2.How To Unlock...
Read more >
Unable to see custom classes in Interface Builder drop down
When using the IB drop down to choose a custom class, none of the custom classes appear. IB_DESIGNABLE and IBInspectable do not work:...
Read more >
Custom classes do not get added to markup in editor for ...
Possible Solution. Make sure the className property is added to the output of the edit function for any block that supports custom classes....
Read more >
C# custom class display in inspector
C# custom class display in inspector ... in a different file i no longer can see the class in the inspector, anyone know...
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