Open PIjarihd opened 3 years ago
I want to hide the confidence score which come along with the label. How can I do that?
I don't think there is a command-line option to do what you're asking.
If you use the DarkHelp C++ API, you can toggle the names_include_percentage
setting: https://www.ccoderun.ca/darkhelp/api/classDarkHelp.html#ad23b58d26aed92e80f64e1023236c4b1
But again, this is not part of the CLI, it is a setting made available in the API.
names_include_percentage
Thank you for your response. However, in which file should I make this change? I have cloned the YOLOv4 repo. Please tell me the filename in which this change should be made.
None. This change would go into your source code if you were using the DarkHelp C++ API.
If you don't want to write your own C++ application then another option is to use the DarkHelp Server. In which case you'd set this in the .json
configuration file. See the following:
You can find instructions on building DarkHelp (which includes DarkHelp Server) for both Linux and Windows here: https://github.com/stephanecharette/DarkHelp/
@stephanecharette Though I do not know much about YOLOv4 and the files it contains, I think You are complicating the simple task. Like changing the font size, there must be something small to hide the prediction percentage also. In YOLOv5, I did it by making default=True
in the statement parser.add_argument('--hide-conf', default=True, action='store_true', help='hide confidences')
.
@AlexeyAB How can I hide the percentage in YOLOv4? Thank You in advance.
DarkHelp supports all the things you say: changing the font type, changing font size, changing colours, hiding the percentage, hiding the label on small objects, even setting the amount of background shading. I don't complicate things, I specifically wrote DarkHelp to make things simpler. Note that all of these settings are also available in the JSON configuration file for DarkHelp Server as described on that web page.
DarkHelp supports all the things you say: changing the font type, changing font size, changing colours, hiding the percentage, hiding the label on small objects, even setting the amount of background shading. I don't complicate things, I specifically wrote DarkHelp to make things simpler. Note that all of these settings are also available in the JSON configuration file for DarkHelp Server as described on that web page.
I am new to all these. Can I send the YOLO output to C# GUI using DarkHelp? Is that easy here? If that is, please tell me how.
Also, I am trying to find solution editing the files within the YOLOv4 Darknet folder. So, if you know the procedure to do so, please help me with that also. And thank you so much for your response, Sir.
comment this
https://github.com/AlexeyAB/darknet/blob/aef928cc0c0394f9e07232e037ea191b18ab3431/src/image.c#L439
Should I comment this while training? Or does it work at testing even when I did not comment while training? I tried to test after commenting that line, it is still same.
You should recompile darknet and try.
@PIjarihd are able to solve this? @lsd1994 what you mean by recompile darknet? Facing the same issue here
DarkHelp supports all the things you say: changing the font type, changing font size, changing colours, hiding the percentage, hiding the label on small objects, even setting the amount of background shading. I don't complicate things, I specifically wrote DarkHelp to make things simpler. Note that all of these settings are also available in the JSON configuration file for DarkHelp Server as described on that web page.
Is darkhelp an editor for darknet or another platform that need to be compiled?
Click on the links or do a google search. Should be easy to find.
The class structure has changed in the year since I replied with those links. Thus, the generated doxygen pages have changed as well. New URLs are:
If something doesn’t work for you, then show 2 screenshots:
If you do not get an answer for a long time, try to find the answer among Issues with a Solved label: https://github.com/AlexeyAB/darknet/issues?q=is%3Aopen+is%3Aissue+label%3ASolved