зеркало из https://github.com/microsoft/torchgeo.git
Document errors that can be raised by functions
This commit is contained in:
Родитель
3a3b5d80af
Коммит
bc7e8be56a
|
@ -74,6 +74,11 @@ class LandCoverAI(VisionDataset):
|
|||
transforms: a function/transform that takes input sample and its target as
|
||||
entry and returns a transformed version
|
||||
download: if True, download dataset and store it in the root directory
|
||||
|
||||
Raises:
|
||||
AssertionError: if ``split`` argument is invalid
|
||||
RuntimeError: if ``download=False`` and data is not found, or checksums
|
||||
don't match
|
||||
"""
|
||||
assert split in ["train", "val", "test"]
|
||||
|
||||
|
|
|
@ -93,6 +93,11 @@ class VHR10(VisionDataset):
|
|||
transforms: a function/transform that takes input sample and its target as
|
||||
entry and returns a transformed version
|
||||
download: if True, download dataset and store it in the root directory
|
||||
|
||||
Raises:
|
||||
AssertionError: if ``split`` argument is invalid
|
||||
RuntimeError: if ``download=False`` and data is not found, or checksums
|
||||
don't match
|
||||
"""
|
||||
assert split in ["positive", "negative"]
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче