spaceml-org / ml4floods

An ecosystem of data, models and code pipelines to tackle flooding with ML🌊
https://spaceml-org.github.io/ml4floods/
GNU Lesser General Public License v3.0
137 stars 40 forks source link

Ground truth data not downloaded correctly from GCP #105

Closed kgupta359 closed 1 year ago

kgupta359 commented 1 year ago

https://github.com/spaceml-org/ml4floods/blob/ce48c67a75794c81602eaa509325e17d1875464b/ml4floods/models/dataset_setup.py#L90

There's a bug in the function process_filename_train_test()

https://github.com/spaceml-org/ml4floods/blob/ce48c67a75794c81602eaa509325e17d1875464b/ml4floods/models/dataset_setup.py#L143-L164

Line 162: the same filename (i.e., the input image) is downloaded to both input_folder and target_folder. As a result, ground truth masks are not downloaded correctly