convert BSDS500 ground truth images from .mat to jpg

I downloaded the BSDS from The Berkeley Segmentation Dataset and Benchmark data and I need to convert the ground truth images from . mat to .jpg; I tried this code Converting .mat file extension image to .jpg via python proposed by

Mr.Rotem

but it doesn't work for me, I got this error: KeyError: 'cjdata' I couldn't fix it, I also tried online converters without any avail any help to convert these images

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum