Ive labelled some images using the pen tool. When exporting the data I only have the option to export a json file which contains URL links to the masks. I couldnt find an exporter within the documentation which extracted these masks and saved them locally so I wrote my own by modifying the available exporters. However when exporting the mask from the link they always appear blank (all white). This simplified gist shows how I extract masks.

I am able to extract the raw images fine and the mask images display fine from the URL link within a webrowser but will not download manually from this (e.g.mask).

Does anyone know what I might be doing wrong or an alternative way to export masks generated by the pen tool?

Hi Jeremy, that’s correct- in segmentation, the exported file contains URLs to the mask PNGs. Try this script, which parses your export (there are both JSON and CSV parsing methods) for the masks and downloads them into your machine’s local Downloads folder.