I’ve been modifying Yolo example from Nvidia DLI Course (Lesson 5.0 Using Different Neural Networks) and decided to change default YoloV3-tiny model on my own custom trained.
No detections at all, except some random ‘motor’ objects.
My network has 4 classes (car, truck, bike, trailer), so I have no idea where ‘motor’ came from.
I’ve already tried to delete TRT engines and rebuild both yolo and deepstream app, but it didn’t gave any results. Please advice if I’ve missed something?
P.S. Yolo was configured properly (number of classes and links to weights)
Dear ChrisDing,
Actually original darknet weights/configs are giving absolutely similar results on my video file.
Still original weights are working well on Deepstream test video, this one:
“Does it give correct result by Darknet inference?” ---- I mean to test if your trained model is correct.
config_infer_primary_yoloV3_tiny.txt should be modified, such as num-detected-classes
“Does it give correct result by Darknet inference?”
–model gives correct results when I’m running it using default deepstream-app, command looks like this:
deepstream-app -c deepstream_app_config_yoloV3_tiny_road_2.txt
But please note that I’m running it on a separate Jetson Nano device, OS version is the same.
I’ve reflashed OS image to try this on fresh system.
As you adviced I’ve double-checked and made following changes in files:
sources/objectDetector_Yolo
1.1. nvdsinfer_custom_impl_Yolo/nvdsparsebbox_Yolo.cpp
-static const int NUM_CLASSES_YOLO = 4;
-weights are similar to ones in .cfg file
After all these changes, I still got this random boxes with ‘motor’ (https://imgur.com/a/4hXWPHa), but as you can see from above I don’t even have a class with this name.
Also I’ve tried to comment out model engine file:
#model-engine-file=model_b1_fp32.engine
Looks like engine is rebuilding but result stays the same.
Yes, issue was resolved.
I haven’t touched the project for a while but I’ve runned it today and bounding boxes are shown and labelled correctly.
If I would find out what actually caused this issue and why it started wourking, I will reply in this thread (to be helpful for other devs).