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

Fix gradient accumulation & resize before shuffle_buffer_size #2

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

younik
Copy link

@younik younik commented Oct 5, 2024

I share my changes here:

  • Fix gradient accumulation (however I am not using it anymore as I am doing experiments on short-unkillable)
  • Move the resizing of images before shuffling to save CPU memory.
    This is specific for testing smaller images, as the images saved on the disk are 256x256. If we find the shape we aim to use, we may want to save on disk the images with the right shape and then restore the order of shuffling/image processing.

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.

1 participant