diff --git a/torchgeo/datasets/forestdamage.py b/torchgeo/datasets/forestdamage.py index 885ac21a471..9c3de28a2b5 100644 --- a/torchgeo/datasets/forestdamage.py +++ b/torchgeo/datasets/forestdamage.py @@ -217,11 +217,7 @@ def _load_target( return boxes, labels def _verify(self) -> None: - """Checks the integrity of the dataset structure. - - Returns: - True if the dataset directories are found, else False - """ + """Verify the integrity of the dataset.""" filepath = os.path.join(self.root, self.data_dir) if os.path.isdir(filepath): return diff --git a/torchgeo/datasets/millionaid.py b/torchgeo/datasets/millionaid.py index 14e0ba7dc12..b7111da1962 100644 --- a/torchgeo/datasets/millionaid.py +++ b/torchgeo/datasets/millionaid.py @@ -312,11 +312,7 @@ def _load_image(self, path: Path) -> Tensor: return tensor def _verify(self) -> None: - """Checks the integrity of the dataset structure. - - Returns: - True if the dataset directories are found, else False - """ + """Verify the integrity of the dataset.""" filepath = os.path.join(self.root, self.split) if os.path.isdir(filepath): return