Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusLoppe committed Jun 22, 2024
1 parent 3e7ed57 commit 9e1bb0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions meshgpt_pytorch/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def __init__(

self.dataloader = DataLoader(
dataset,
shuffle = True,
batch_size = batch_size,
drop_last = True,
collate_fn = partial(custom_collate, pad_id = model.pad_id)
Expand All @@ -141,6 +142,7 @@ def __init__(

self.val_dataloader = DataLoader(
val_dataset,
shuffle = True,
batch_size = batch_size,
drop_last = True,
collate_fn = partial(custom_collate, pad_id = model.pad_id)
Expand Down Expand Up @@ -468,6 +470,7 @@ def __init__(

self.dataloader = DataLoader(
dataset,
shuffle = True,
batch_size = batch_size,
drop_last = True,
collate_fn = partial(custom_collate, pad_id = model.pad_id)
Expand All @@ -483,6 +486,7 @@ def __init__(

self.val_dataloader = DataLoader(
val_dataset,
shuffle = True,
batch_size = batch_size,
drop_last = True,
collate_fn = partial(custom_collate, pad_id = model.pad_id)
Expand Down

0 comments on commit 9e1bb0d

Please sign in to comment.