Added utility to draw segmentation masks (#3330)
* add draw segm masks * rewrites with new api * fix flaky colors * fix resize bug * resize for sanity * cleanup * project the image * Minor refactor to adopt num classes * add uint8 in docstring * adds alpha and docstring * move code a bit down * Minor fix * fix type check * Fixing resize bug. * Fix type of alpha. * Remove unnecessary RGBA conversions. * update docs to supported only rgb * minor edits * adds tests * shifts masks up * change tests and impelementation for bool * change mode to L * convert to float * fixes docs Co-authored-by:Vasilis Vryniotis <datumbox@users.noreply.github.com> Co-authored-by:
Vasilis Vryniotis <vvryniotis@fb.com> Co-authored-by:
Francisco Massa <fvsmassa@gmail.com>
Showing
88 Bytes
106 Bytes