Skip to content

Commit b593760

Browse files
committed
don't convert to strings
1 parent dc463d7 commit b593760

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_datasets.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,10 +2532,10 @@ def inject_fake_data(self, tmpdir, config):
25322532

25332533
if config["split"] == "train":
25342534
images_folder_name = "cars_train"
2535-
annotations_mat_path = str(devkit / "cars_train_annos.mat")
2535+
annotations_mat_path = devkit / "cars_train_annos.mat"
25362536
else:
25372537
images_folder_name = "cars_test"
2538-
annotations_mat_path = str(base_folder / "cars_test_annos_withlabels.mat")
2538+
annotations_mat_path = base_folder / "cars_test_annos_withlabels.mat"
25392539

25402540
datasets_utils.create_image_folder(
25412541
root=base_folder,
@@ -2553,7 +2553,7 @@ def inject_fake_data(self, tmpdir, config):
25532553
io.savemat(annotations_mat_path, {"annotations": rec_array})
25542554

25552555
random_class_names = ["random_name"] * num_classes
2556-
io.savemat(str(devkit / "cars_meta.mat"), {"class_names": random_class_names})
2556+
io.savemat(devkit / "cars_meta.mat", {"class_names": random_class_names})
25572557

25582558
return num_examples
25592559

0 commit comments

Comments
 (0)