Skip to content

Comments

Coarsen Datasets#534

Merged
TheJeran merged 9 commits intomainfrom
jp/coarsen
Jan 28, 2026
Merged

Coarsen Datasets#534
TheJeran merged 9 commits intomainfrom
jp/coarsen

Conversation

@TheJeran
Copy link
Collaborator

@TheJeran TheJeran commented Jan 28, 2026

This uses the Convolve module for inference to do an average convolution on chunks and then grab every nth element based on the coarsening factor. It starts padded so it doesn't grab the first or last along a dimension like I was thinking. I just verified this.

The logic breaks if there is no midpoint (scaling factor thats not divisible by 4 — don't ask questions). So I just forced power of 2 for now. Which is excessive because technically anything thats a multiple of 4 (excluding 2) would work.

@TheJeran TheJeran marked this pull request as ready for review January 28, 2026 15:35
@TheJeran TheJeran merged commit 8b38b12 into main Jan 28, 2026
6 checks passed
@TheJeran TheJeran deleted the jp/coarsen branch January 28, 2026 15:35
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