diff --git a/tests/data/seco/seasonal_contrast_100k/000000/20190803T154559_20190803T154611_T18QVG.tif b/tests/data/seco/seasonal_contrast_100k/000000/20190803T154559_20190803T154611_T18QVG.tif new file mode 100644 index 00000000000..badbf6b55fc Binary files /dev/null and b/tests/data/seco/seasonal_contrast_100k/000000/20190803T154559_20190803T154611_T18QVG.tif differ diff --git a/tests/data/seco/seasonal_contrast_100k/000000/20191027T154551_20191027T154553_T18QVG.tif b/tests/data/seco/seasonal_contrast_100k/000000/20191027T154551_20191027T154553_T18QVG.tif new file mode 100644 index 00000000000..badbf6b55fc Binary files /dev/null and b/tests/data/seco/seasonal_contrast_100k/000000/20191027T154551_20191027T154553_T18QVG.tif differ diff --git a/tests/data/seco/seasonal_contrast_100k/000000/20191027T154551_20191027T154553_T18QVG/B1.tif b/tests/data/seco/seasonal_contrast_100k/000000/20191027T154551_20191027T154553_T18QVG/B1.tif index 9b12f794d3a..badbf6b55fc 100644 Binary files a/tests/data/seco/seasonal_contrast_100k/000000/20191027T154551_20191027T154553_T18QVG/B1.tif and b/tests/data/seco/seasonal_contrast_100k/000000/20191027T154551_20191027T154553_T18QVG/B1.tif differ diff --git a/tests/data/seco/seasonal_contrast_100k/000000/20200120T154549_20200120T154543_T18QVH.tif b/tests/data/seco/seasonal_contrast_100k/000000/20200120T154549_20200120T154543_T18QVH.tif new file mode 100644 index 00000000000..badbf6b55fc Binary files /dev/null and b/tests/data/seco/seasonal_contrast_100k/000000/20200120T154549_20200120T154543_T18QVH.tif differ diff --git a/tests/data/seco/seasonal_contrast_100k/000000/20200120T154549_20200120T154543_T18QVH/B1.tif b/tests/data/seco/seasonal_contrast_100k/000000/20200120T154549_20200120T154543_T18QVH/B1.tif index 9f353286827..badbf6b55fc 100644 Binary files a/tests/data/seco/seasonal_contrast_100k/000000/20200120T154549_20200120T154543_T18QVH/B1.tif and b/tests/data/seco/seasonal_contrast_100k/000000/20200120T154549_20200120T154543_T18QVH/B1.tif differ diff --git a/tests/data/seco/seasonal_contrast_100k/000000/20200414T154551_20200414T154549_T18QVG.tif b/tests/data/seco/seasonal_contrast_100k/000000/20200414T154551_20200414T154549_T18QVG.tif new file mode 100644 index 00000000000..badbf6b55fc Binary files /dev/null and b/tests/data/seco/seasonal_contrast_100k/000000/20200414T154551_20200414T154549_T18QVG.tif differ diff --git a/tests/data/seco/seasonal_contrast_100k/000000/20200414T154551_20200414T154549_T18QVG/B1.tif b/tests/data/seco/seasonal_contrast_100k/000000/20200414T154551_20200414T154549_T18QVG/B1.tif index 1ac6cda5817..badbf6b55fc 100644 Binary files a/tests/data/seco/seasonal_contrast_100k/000000/20200414T154551_20200414T154549_T18QVG/B1.tif and b/tests/data/seco/seasonal_contrast_100k/000000/20200414T154551_20200414T154549_T18QVG/B1.tif differ diff --git a/tests/data/seco/seasonal_contrast_100k/000000/20200623T154601_20200623T154555_T18QVH.tif b/tests/data/seco/seasonal_contrast_100k/000000/20200623T154601_20200623T154555_T18QVH.tif new file mode 100644 index 00000000000..2c0cfc7eae2 Binary files /dev/null and b/tests/data/seco/seasonal_contrast_100k/000000/20200623T154601_20200623T154555_T18QVH.tif differ diff --git a/tests/data/seco/seasonal_contrast_100k/000001/20190214T071009_20190214T072118_T39RUJ.tif b/tests/data/seco/seasonal_contrast_100k/000001/20190214T071009_20190214T072118_T39RUJ.tif new file mode 100644 index 00000000000..77269cfaab4 Binary files /dev/null and b/tests/data/seco/seasonal_contrast_100k/000001/20190214T071009_20190214T072118_T39RUJ.tif differ diff --git a/tests/data/seco/seasonal_contrast_100k/000001/20190515T070629_20190515T071534_T39RUJ.tif b/tests/data/seco/seasonal_contrast_100k/000001/20190515T070629_20190515T071534_T39RUJ.tif new file mode 100644 index 00000000000..861cd1d28e3 Binary files /dev/null and b/tests/data/seco/seasonal_contrast_100k/000001/20190515T070629_20190515T071534_T39RUJ.tif differ diff --git a/tests/data/seco/seasonal_contrast_100k/000001/20190803T070629_20190803T071729_T39RUJ.tif b/tests/data/seco/seasonal_contrast_100k/000001/20190803T070629_20190803T071729_T39RUJ.tif new file mode 100644 index 00000000000..82a9a8eeb43 Binary files /dev/null and b/tests/data/seco/seasonal_contrast_100k/000001/20190803T070629_20190803T071729_T39RUJ.tif differ diff --git a/tests/data/seco/seasonal_contrast_100k/000001/20191030T072031_20191030T072025_T39RUJ.tif b/tests/data/seco/seasonal_contrast_100k/000001/20191030T072031_20191030T072025_T39RUJ.tif new file mode 100644 index 00000000000..561392bc922 Binary files /dev/null and b/tests/data/seco/seasonal_contrast_100k/000001/20191030T072031_20191030T072025_T39RUJ.tif differ diff --git a/tests/data/seco/seasonal_contrast_100k/000001/20200108T072301_20200108T072255_T39RUJ.tif b/tests/data/seco/seasonal_contrast_100k/000001/20200108T072301_20200108T072255_T39RUJ.tif new file mode 100644 index 00000000000..cd3e0293dc9 Binary files /dev/null and b/tests/data/seco/seasonal_contrast_100k/000001/20200108T072301_20200108T072255_T39RUJ.tif differ diff --git a/tests/data/seco/seco_100k.zip b/tests/data/seco/seco_100k.zip index 0e8c7db2761..54721445b4f 100644 Binary files a/tests/data/seco/seco_100k.zip and b/tests/data/seco/seco_100k.zip differ diff --git a/tests/datasets/test_seco.py b/tests/datasets/test_seco.py index 24c1327c612..a01863d0e7c 100644 --- a/tests/datasets/test_seco.py +++ b/tests/datasets/test_seco.py @@ -42,7 +42,7 @@ def dataset( monkeypatch.setitem( SeasonalContrastS2.metadata["100k"], "md5", - "4d3e6e4afed7e581b7de1bfa2f7c29da", + "6f527567f066562af2c78093114599f9", ) monkeypatch.setitem( SeasonalContrastS2.metadata["1m"], diff --git a/torchgeo/datasets/seco.py b/torchgeo/datasets/seco.py index 2d0e685f1f8..45f715b34d7 100644 --- a/torchgeo/datasets/seco.py +++ b/torchgeo/datasets/seco.py @@ -126,7 +126,7 @@ def __getitem__(self, index: int) -> Dict[str, Tensor]: root = os.path.join( self.root, self.metadata[self.version]["directory"], f"{index:06}" ) - subdirs = os.listdir(root) + subdirs = [f for f in os.listdir(root) if os.path.isdir(os.path.join(root, f))] subdirs = random.sample(subdirs, self.seasons) images = [self._load_patch(root, subdir) for subdir in subdirs]