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

Feat: datasplit limit validation size #289

Merged
merged 5 commits into from
Sep 12, 2024
Merged

Feat: datasplit limit validation size #289

merged 5 commits into from
Sep 12, 2024

Conversation

mzouink
Copy link
Member

@mzouink mzouink commented Sep 10, 2024

Sometimes i want to speedup validation so as option we can limit validation size:
max_validation_volume_size = 600**3

mzouink and others added 3 commits September 10, 2024 11:54
There appear to be some python formatting errors in
38a1b7e. This pull request
uses the [psf/black](https://github.com/psf/black) formatter to fix
these issues.
rhoadesScholar
rhoadesScholar previously approved these changes Sep 10, 2024
crop = True
max_idx = np.argmax(voxel_shape)
voxel_shape = Coordinate(
s if i != max_idx else s // 2 for i, s in enumerate(voxel_shape)
Copy link
Member

Choose a reason for hiding this comment

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

For the record, I don't like using s // 2...

Copy link
Member

Choose a reason for hiding this comment

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

Consider a volume that is 100x100x110, but a max size of 100**3
This will reduce the volume to 100x100x55 instead of just getting to the max size :/

@rhoadesScholar
Copy link
Member

@mzouink Need to fix tests 😬

@mzouink
Copy link
Member Author

mzouink commented Sep 12, 2024

@mzouink Need to fix tests 😬

the reason was funlib persistence. should be good now

@mzouink mzouink merged commit 3430d6a into main Sep 12, 2024
3 of 4 checks passed
@mzouink mzouink deleted the ft_datasplit_gt_limit branch September 12, 2024 20:25
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