Skip to content

Commit

Permalink
FIX - Accept .png images closes #27
Browse files Browse the repository at this point in the history
  • Loading branch information
pab1s committed May 28, 2024
1 parent b3a1779 commit ecec316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasets/car_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def _load_dataset(self):
# Walk through the data directory
for root, _, filenames in os.walk(self.data_dir):
for filename in filenames:
if filename.endswith(".jpg"):
if filename.endswith(".jpg") or filename.endswith(".png"):
label_name = os.path.basename(root)
if label_name not in label_to_idx:
label_to_idx[label_name] = current_label
Expand Down

0 comments on commit ecec316

Please sign in to comment.