From c089784bbe0d3b52a9119ef27c5d11190ac52662 Mon Sep 17 00:00:00 2001 From: Ritwik Gupta Date: Thu, 22 Sep 2022 00:07:50 -0700 Subject: [PATCH] Remove "labels" folder from verify The `labels` folder exists for the `tier3` imagery that was released after the `tier1` imagery for xView2. It should really be called `targets` but we messed up. When you're merging `tier1` with `tier3`, simply copy all the files from `tier3/labels` to `tier1/targets`. --- torchgeo/datasets/xview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchgeo/datasets/xview.py b/torchgeo/datasets/xview.py index fd7ec06feb8..bf289844a07 100644 --- a/torchgeo/datasets/xview.py +++ b/torchgeo/datasets/xview.py @@ -188,7 +188,7 @@ def _verify(self) -> None: # Check if the files already exist exists = [] for split_info in self.metadata.values(): - for directory in ["images", "labels", "targets"]: + for directory in ["images", "targets"]: exists.append( os.path.exists( os.path.join(self.root, split_info["directory"], directory)