Add global settings.yaml in USER_CONFIG_DIR (#125)
This commit is contained in:
parent
a9b9fe7618
commit
598f17a472
16 changed files with 127 additions and 45 deletions
|
|
@ -91,7 +91,7 @@ class BaseDataset(Dataset):
|
|||
# self.img_files = sorted([x for x in f if x.suffix[1:].lower() in IMG_FORMATS]) # pathlib
|
||||
assert im_files, f"{self.prefix}No images found"
|
||||
except Exception as e:
|
||||
raise Exception(f"{self.prefix}Error loading data from {img_path}: {e}\n{HELP_URL}")
|
||||
raise FileNotFoundError(f"{self.prefix}Error loading data from {img_path}: {e}\n{HELP_URL}") from e
|
||||
return im_files
|
||||
|
||||
def update_labels(self, include_class: Optional[list]):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue