Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding get_loader function #7

Merged
merged 2 commits into from
Feb 12, 2024
Merged

Adding get_loader function #7

merged 2 commits into from
Feb 12, 2024

Conversation

mooniean
Copy link
Collaborator

@mooniean mooniean commented Feb 9, 2024

No description provided.

train_data = Subset(self.dataset, indices=idx[:-s])
val_data = Subset(self.dataset, indices=idx[-s:])

self.loader_train = DataLoader(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a class variable? Just wondering why would it be useful like that.

@crangelsmith
Copy link
Collaborator

LGTM, some thoughts:
We should add a connection between the data transformation (min_max, gaussian blur, etc) and the DiskDataLoader. Eg. the transformation should be given in the instantiation of the class, and passed down into the disk dataset.

Also, we need docstrings everywhere, copilot is very useful for that.

@mooniean
Copy link
Collaborator Author

I've addressed the comment, made issues with the second comment and also added a test that purposely fails to check the proportions of the train/val!

@mooniean mooniean merged commit f45e418 into main Feb 12, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants