* Update README.md and  cityscapes.py
pull/338/head
Catl Neo 2024-02-01 14:06:09 +08:00 committed by GitHub
parent cecb36a9ce
commit af4e9d5d19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -248,7 +248,7 @@ Please refer to the following model zoo for more details.
## Data Hub
EasyCV have collected dataset info for different senarios, making it easy for users to finetune or evaluate models in EasyCV model zoo.
EasyCV have collected dataset info for different scenarios, making it easy for users to finetune or evaluate models in EasyCV model zoo.
Please refer to [data_hub.md](docs/source/data_hub.md).

View File

@ -110,16 +110,16 @@ class SegSourceCityscapes(SegSourceRaw):
'')[:-len(self.img_suffix[0])]
find_label_path = False
for label_format in self.label_suffix:
lable_path = os.path.join(self.label_root,
label_path = os.path.join(self.label_root,
img_name + label_format)
if io.exists(lable_path):
if io.exists(label_path):
find_label_path = True
self.label_files.append(lable_path)
self.label_files.append(label_path)
break
if not find_label_path:
logging.warning(
'Not find label file %s for img: %s, skip the sample!' %
(lable_path, img_path))
(label_path, img_path))
self.img_files.remove(img_path)
assert len(self.img_files) == len(self.label_files)