Skip to content

Commit

Permalink
Fix data loader init
Browse files Browse the repository at this point in the history
  • Loading branch information
borchero committed Dec 21, 2021
1 parent 9ddc139 commit f12731e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lightkit/data/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ def __init__(self, dataset: Dataset[T_co], **kwargs: Any):
batch_size=kwargs.get("batch_size", 1),
drop_last=kwargs.get("drop_last", False),
)
kwargs.pop("batch_size", None)
kwargs.pop("shuffle", None)
kwargs.pop("drop_last", None)
kwargs.setdefault("collate_fn", collate_tuple)

super().__init__(dataset, **kwargs) # type: ignore
Expand Down

0 comments on commit f12731e

Please sign in to comment.