Skip to content

Conversation

marctuscher
Copy link

Passing kwargs to each Transform in a Pipeline. This change was useful for me in a case similar to the following:

@Resize def decodes(self, x:Center, **kwargs)->Center: orig_size = kwargs["orig_size"] ... pipe = Pipeline(L(Resize(400), ...)) pipe.setup() pipe.decode(c, orig_size=(600, 600)) 

Now containing only intended changes... Hopefully... :)

Best,
Marc

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant