Skip to content

Commit

Permalink
Fix typo (#336)
Browse files Browse the repository at this point in the history
* Update README.md and  cityscapes.py
  • Loading branch information
catl-neo authored Feb 1, 2024
1 parent cecb36a commit af4e9d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
8 changes: 4 additions & 4 deletions easycv/datasets/segmentation/data_sources/cityscapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,16 @@ def get_source_iterator(self):
'')[:-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)
Expand Down

0 comments on commit af4e9d5

Please sign in to comment.