Skip to content

Commit

Permalink
fix test for City data creation (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Nov 6, 2020
1 parent f00e85d commit 4d254fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/datamodules/test_datamodules.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def _create_synth_Cityscapes_dataset(path_dir):

for split in dataset_splits:
for city in non_existing_citites:
(images_dir / split / city).mkdir(parents=True)
(fine_labels_dir / split / city).mkdir(parents=True)
(images_dir / split / city).mkdir(parents=True, exist_ok=True)
(fine_labels_dir / split / city).mkdir(parents=True, exist_ok=True)
base_name = str(uuid.uuid4())
image_name = f'{base_name}_leftImg8bit.png'
instance_target_name = f'{base_name}_gtFine_instanceIds.png'
Expand Down

0 comments on commit 4d254fd

Please sign in to comment.