Skip to content

Commit d918039

Browse files
committed
chore: remove extra try except
1 parent 7919ded commit d918039

File tree

1 file changed

+3
-8
lines changed
  • src/templates/template-vision-segmentation

1 file changed

+3
-8
lines changed

src/templates/template-vision-segmentation/data.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,9 @@ def setup_data(config: Namespace):
8989
"Dataset not found. You can use `download_datasets` from data.py function to download it."
9090
)
9191

92-
try:
93-
dataset_eval = VOCSegmentationPIL(
94-
root=config.data_path, year="2012", image_set="val", download=False
95-
)
96-
except RuntimeError as e:
97-
raise e(
98-
"Dataset not found. You can use `download_datasets` from data.py function to download it."
99-
)
92+
dataset_eval = VOCSegmentationPIL(
93+
root=config.data_path, year="2012", image_set="val", download=False
94+
)
10095

10196
val_img_size = 513
10297
train_img_size = 480

0 commit comments

Comments
 (0)