Skip to content

Commit

Permalink
Fix label bug when labels share common string
Browse files Browse the repository at this point in the history
  • Loading branch information
jolaem committed Jul 31, 2024
1 parent 83ff072 commit 43fc9fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/caked/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def load(self, datapath, datatype) -> None:
Path(datapath) / p
for p in paths
for c in self.classes
if c in p.split("_")[0]
if c == p.split("_")[0]
]
if self.dataset_size is not None:
paths = paths[: self.dataset_size]
Expand Down

0 comments on commit 43fc9fb

Please sign in to comment.