SpaceNetChallenge / utilities

Packages intended to assist in the preprocessing of SpaceNet satellite imagery data corpus to a format that is consumable by machine learning algorithms.
Other
248 stars 97 forks source link

Is there a utility to convert the TIFF files into JPEG or PNG format? #78

Closed 00krishna closed 6 years ago

00krishna commented 6 years ago

Just wanted to check if there was a utility in the package to convert the original TIFF files into JPEG or PNG format for ingestion into machine learning tools?

dlindenbaum commented 6 years ago

Hello,

Yes, please see the readme:

For example:

python python/createDataSpaceNet.py /path/to/spacenet_sample/AOI_2_Vegas_Train/ \
           --srcImageryDirectory RGB-PanSharpen
           --outputDirectory /path/to/spacenet_sample/annotations/ \
           --annotationType PASCALVOC2012 \
           --convertTo8Bit \
           --outputFileType JPEG \
           --imgSizePix 400