We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Allow named steps, via OrderedDict, in the Chain, similarly to named steps in pytorch.nn.Sequential:
OrderedDict
Chain
pytorch.nn.Sequential
pipe = Chain(OrderedDIct( ('lung ct data', dataset), ('filter spacing', Filter(lambda spacing: spacing[-1] <= 2.5, verbose=True),), ('select ids', Filter.keep(dataset.ids[:20])), ('zoom', Apply(image=lambda x: zoom_to_shape(x, (64,64,64)))) )
This allows to get an access to different preprocessing steps by a name, rather then by the index:
pipe['filter spacing']
instead of:
pipe[1]
to get all the preprocessing up to spacing filtering.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Allow named steps, via
OrderedDict
, in theChain
, similarly to named steps inpytorch.nn.Sequential
:This allows to get an access to different preprocessing steps by a name, rather then by the index:
instead of:
to get all the preprocessing up to spacing filtering.
The text was updated successfully, but these errors were encountered: