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
|
|
@ -484,7 +484,7 @@ class LoadImagesAndLabels(Dataset):
|
|||
# self.img_files = sorted([x for x in f if x.suffix[1:].lower() in IMG_FORMATS]) # pathlib
|
||||
assert self.im_files, f'{prefix}No images found'
|
||||
except Exception as e:
|
||||
raise Exception(f'{prefix}Error loading data from {path}: {e}\n{HELP_URL}') from e
|
||||
raise FileNotFoundError(f'{prefix}Error loading data from {path}: {e}\n{HELP_URL}') from e
|
||||
|
||||
# Check cache
|
||||
self.label_files = img2label_paths(self.im_files) # labels
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue