Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusLoppe committed Jun 17, 2024
1 parent 8e15172 commit b7a3611
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions meshgpt_pytorch/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,13 @@ def __init__(
drop_last = True,
collate_fn = partial(custom_collate, pad_id = model.pad_id)
)

<<<<<<< HEAD
self.data_kwargs = data_kwargs
=======

if hasattr(dataset, 'data_kwargs') and exists(dataset.data_kwargs):
assert beartype_isinstance(dataset.data_kwargs, List[str])
self.data_kwargs = dataset.data_kwargs
else:
self.data_kwargs = data_kwargs
>>>>>>> upstream/main

(
self.model,
Expand Down Expand Up @@ -506,16 +503,12 @@ def __init__(
drop_last = True,
collate_fn = partial(custom_collate, pad_id = model.pad_id)
)

<<<<<<< HEAD
self.data_kwargs = data_kwargs
=======

if hasattr(dataset, 'data_kwargs') and exists(dataset.data_kwargs):
assert beartype_isinstance(dataset.data_kwargs, List[str])
self.data_kwargs = dataset.data_kwargs
else:
self.data_kwargs = data_kwargs
>>>>>>> upstream/main

(
self.model,
Expand Down

0 comments on commit b7a3611

Please sign in to comment.