-
-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with a custom Yolo #5
Comments
Hi @marcoslucianops, I ask again if you can help me about this problem? |
Hi @elementdl , Can you send me your configs files, nvdsparsebbox_Yolo.cpp and yolo.cfg file? |
Hi @marcoslucianops, I followed this manual : For the cfg i didn"t change much, only the number of filter (57) in [convutional], just before [yolo] and (14) on [yolo] For the cpp I only changed the number of classes : 14 here : |
Do you changed label.txt file to your classes? |
If you trained with 0, 1, 2 masks, you need change in nvdsparsebbox_Yolo file
to
|
Hi @marcoslucianops, thank you for your response. I just changed this line in nvdsparsebbox_Yolo.cpp, and I compiled it with the makefile, but nothing changed (car are still labeled as bicycle). Do I have to do something after "make"? maybe transfer a file in the right place for deepstream? |
You need put in the same order of obj.names file.
Isn’t needed. The configs files needs have correct path of your files. You need only and run deepstream-app in config.txt file location. |
Yes I did it.
I also did this, I still don't know why it is not working. |
Try change
To default
And recompile |
Hi @marcoslucianops it only changed the rate of detection, I've got the same errors about the labels. |
In this case, unfortunately, I don't know how to solve this problem. |
Hi,
I have some trouble with deepstream.
I trained a Yolov3-tiny on darknet with specific classes :
person
wheelchair
bicycle
motorcycle
car
bus
truck
ambulance
traffic light
stop sign
cedez le passage
shoes
sports ball
traffic cones
As you can see it contains some classes of the COCO dataset but not only them, and not in the same order.
I trained on darknet, and It worked : I took somes pictures to verify it :
Then I took the .cfg .weight and .names for deepstream (I uses deepstream 4.0).
I changed the number of classes in nvdsparsebbox_Yolo.cpp, and I compiled it.
I also created a config_infer_primary... and deepstream_app_config... and configure it well (right number of classes, right sources)
I changed my .names for labels.txt
And I tried Yolo_Deepstream
I don't understand my results :
For now The video I used let me saw theses objects :
person
car
bicycle
wheelchair
but i detect this :
person is detected as person
car is detected as bicycle
bicycle is detected as wheelchair
wheelchair is detected as...wheelchair.
I really don't know where is the problem, It works on darknet, and I didn't modify the order.
Plus, first I thought that some classes were inversed, with car->bicycle and bicycle->wheelchair, but wheelchair->wheelchair!
Do you know where the problem can be in deepstream?
Sincerely,
The text was updated successfully, but these errors were encountered: