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

Tracking Augmentation Parameters Applied #31

Open
aidansmyth95 opened this issue Jun 14, 2023 · 0 comments
Open

Tracking Augmentation Parameters Applied #31

aidansmyth95 opened this issue Jun 14, 2023 · 0 comments

Comments

@aidansmyth95
Copy link

Hi there. I am looking for a way of tracking the augmentations that happen as I augment my batch of images one by one in a for loop.

My augmentation sequence looks like this:

    train_aug = Sequential(
        [
            Resize(tgt_img_size[:2], interpolation="linear"),
            Fliplr(0.3),
            Sometimes(0.3, Affine(rotate=10)),
        ]
    )

I then apply it as follows:
aug_img = train_aug.augment_image(img)

It would be nice if I were able post-augmentation to determine what level of rotation and whether or not it was flipped.

Printing the augmentor parameters looks something like this:
[DiscreteUniform(Deterministic(int 224), Deterministic(int 224)), Deterministic(linear), 'HW']
[Binomial(Deterministic(float 0.30000000))]
[Binomial(Deterministic(float 0.30000000))]

Unfortunately, the above does not tell me how the input image was affected. Your help in this would be greatly appreciated.

Thanks!

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

No branches or pull requests

1 participant