Skip to content

Commit

Permalink
dataloader fix
Browse files Browse the repository at this point in the history
  • Loading branch information
damaggu committed Sep 2, 2024
1 parent a80f463 commit d193851
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SwissKnife/dataprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def load(self, dataset_dir, subset, annotations):
non_cv_split = subset in ["train", "val"]
if non_cv_split:
dataset_dir = os.path.join(dataset_dir, subset)
frames = glob(dataset_dir + "/*.png")
frames = glob(dataset_dir + "/*.*")
frames = [el.split("/")[-1] for el in frames]

# Add images
Expand Down Expand Up @@ -158,6 +158,7 @@ def prepareData(
else:
annotations = list(annotations.values())

print('d')
# annotations = annotations[:20]
# TODO: make one/cv_fold
if cv_folds == 0:
Expand Down

0 comments on commit d193851

Please sign in to comment.