Support random colors by default for draw_bounding_boxes (#5127)
* Add random colors
* Update error message, pretty the code
* Update edge cases
* Change implementation to tuples
* Fix bugs
* Add tests
* Reuse palette
* small rename fix
* Update tests and code
* Simplify code
* ufmt
* fixed colors -> random colors in docstring
* Actually simplify further
* Silence mypy. Twice. lol.
Co-authored-by:
Nicolas Hug <nicolashug@fb.com>
Showing
Please register or sign in to comment