CRF Segmentations are entirely black
KahaanS opened this issue · comments
I have been following the instructions for object segmentation and output is as expected until the CRF segmentation step at which point the output images are entirely black. The masks produced in the previous step are correct, and the upscaling the mask also works, however the output from the denseCRF function is a completely black image.
Adding this bit of code after calculating the CRF segmap before applying it to the image fixes this. Closing the issue now.
if np.max(segmap_crf) == 1:
segmap_crf = segmap_crf * 255