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

support functor API #33

Open
johnnychen94 opened this issue Dec 19, 2019 · 1 comment
Open

support functor API #33

johnnychen94 opened this issue Dec 19, 2019 · 1 comment
Assignees
Milestone

Comments

@johnnychen94
Copy link
Collaborator

A simple use case:

pl = ElasticDistortion(6, scale=0.3, border=true) |>
            Rotate([10, -5, -3, 0, 3, 5, 10]) |>
            ShearX(-10:10) * ShearY(-10:10) |>
            CropSize(28, 28) |>
            Zoom(0.9:0.1:1.2)

pl(img) # instead of augment(img, pl)

I find this syntax easier to memorize and use, so I plan to do this when this package got updated.

@johnnychen94 johnnychen94 added this to the v0.6 milestone Dec 19, 2019
@johnnychen94 johnnychen94 self-assigned this Dec 19, 2019
@Evizero
Copy link
Owner

Evizero commented Dec 19, 2019

I considered this before, but given that in reality one mostly uses augment! or augmentbatch! it felt a little inconsistent

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

No branches or pull requests

2 participants