Closed 0ssamaak0 closed 9 months ago
Hello @0ssamaak0 , I would like to work on this issue, can you assign it to me?
it's already assigned, plesae check discord server
can we solve this by using random function to generate random colours eg generate values between 0-255
can we solve this by using random function to generate random colours eg generate values between 0-255
no, it may result in very similar colors, check the issue description. anyway someone has worked on it and made a pull request
The following implementation of coloring the masks and the bboxes is very bad, it's based on a hardcoded color palette copied and pasted across many files such as
intelligence.py
,mathOps.py
,visualizations,py
etcThe current color palette is
They were implemented like this to be diverse and cover wide range of colors, because just choosing random RGB values may lead to some similiarty between colors of diff classes (e.g., both are similar shades of blue)
The main goal is to create a color generator class that generates colors that are not limited (here we have 12 colors) and sample them for a distribution keeps them dfferent from each other, after making this generator it must replaces all the occurenecs of this hard coded code