image-segmentation-keras icon indicating copy to clipboard operation
image-segmentation-keras copied to clipboard

Supported Image Format

Open ansariyusuf opened this issue 4 years ago • 1 comments

Hi,

I am working with a dataset where the images and the corresponding masks are in .tif and not in .png. When I tried to train the segnet model, the data couldn't be loaded. Which image formats are supported as inputs to this framework?

If anyone has suggestion, kindly assist.

Thanks,

Yusuf

ansariyusuf avatar May 12 '21 09:05 ansariyusuf

On keras-segmentation/data_utils/data_loader.py, line 36:

ACCEPTABLE_IMAGE_FORMATS = [".jpg", ".jpeg", ".png", ".bmp"]
ACCEPTABLE_SEGMENTATION_FORMATS = [".png", ".bmp"]

I hope this answers your question.

Jose-Verdu-Diaz avatar May 18 '21 17:05 Jose-Verdu-Diaz