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

Add RandomCrop transform #53

Closed
fepegar opened this issue Jan 21, 2020 · 1 comment
Closed

Add RandomCrop transform #53

fepegar opened this issue Jan 21, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@fepegar
Copy link
Owner

fepegar commented Jan 21, 2020

Related to #22

@fepegar fepegar added the enhancement New feature or request label Jan 21, 2020
@fepegar
Copy link
Owner Author

fepegar commented Jan 21, 2020

This can actually be achieved using an ImageSampler:

class ImageSampler(IterableDataset):
def __init__(self, sample, patch_size):
self.sample = sample
self.patch_size = np.array(to_tuple(patch_size, n=3), dtype=np.uint16)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant