Giter Club home page Giter Club logo

imgaug-doc's People

Contributors

aleju avatar vicramr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

imgaug-doc's Issues

Tracking Augmentation Parameters Applied

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!

bounding boxes leaving and entering again the image

Hi,
in case of a sequence with many transformations (or just 2), the first transformation may shift a bb outside the image, and the seconds transformation back inside. In this case the bb on image method "is_fully_within_image" returns "True".

It would be nice to have some methods like "did_go_outside_during_sequence" / "did_go_partially_outside_during_sequence" or something like this to indicate if the bbOnImage made the travel outside and back, because in this case a part of the image inside the bb is lost (black) and this indication is quite relevant.

For a sequence with only a few transformations it is possible to check it, considering only the first transform, then the second and so forth but this is cumbersome. So a single function would be quite nice.

Or is there something similar already existig that I missed ?

Sincerely
XM

Callable Object

Hi Alex and Vicram ,

when I try to call 'images_aug = seq(images=images)' in the first examples of the Github, I get the following error!

'Sequential' object is not callable

Helpful advices are appreciated.

@aleju @vicramr

Conda install doesnt work

I ran these commands:

conda config --add channels conda-forge
conda install imgaug

That I found here: https://imgaug.readthedocs.io/en/latest/source/installation.html#installation-in-anaconda

And this is the error I got:

Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Solving environment: ...working... failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): ...working... done

It just hangs up after several attempts.

do we have reversible (equivariant) augmentation in here?

Hi

I wonder if you guys have any reversible augmentation. I mean when I apply the augmentation I can the reverse of it and get the original input. I know it is trivial for flip/rotation/translation. But I am not sure if you have any other reversable augmentation ? for example in PerspectiveTransform or PiecewiseAffine?

Confusing info on JPG Compression

Hi,

There is some confusion regarding the info on the Jpeg compression function

"
compression (number or tuple of number or list of number or imgaug.parameters.StochasticParameter, optional) – Degree of compression used during jpeg compression within value range [0, 100]. Higher values denote stronger compression and will cause low-frequency components to disappear. Standard values used when saving images are at around 75 and will usually not degrade image quality very much.
"

Its true that 75 is usually used, but because of the way the function is implemented (higher number means more supression), this statement is confusing. The corresponding compression value should be 25.

If you open a png file, make a trivial edit, and resave it as jpg, it has the same file size as passing it through the JpegCompression augmentation with 25 parameter, not 75

question: module 'numpy' has no attribute 'bool'

I encountered an error while running with the latest version of imgaug and numpy 1.24. The error message is 'module 'numpy' has no attribute 'bool'. Please refer to the screenshot for details
问题图片

Exporting seq to json

This is a really awesome repo! I want to ensure some consistency accross experiments. I was wondering if there is a way to export a sequential set of augmentations to a json and back. That way it's human readable! Currently I just pickle.dump, but I woudn't prefer that.

Best,
Agastya

about the aug in a batch

Does imgaug support the exact same augmentation for images within a batch, e.g. iaa.Sequential([iaa.Fliplr(0.4),....]) What is the best way to do this, with images within a batch flipped or not flipped at the same time and randomized between the batches? Looking forward to your reply, thanks!

Inverse is needed for object detection

Inverse of a sequential of transformation is needed. The use case is important in object detection. For example, we would resize and pad images in object detection, the bounding boxes are transformed along the process in current library. However, when we perform inference, we need to convert the predicted bounding boxes back to that match original image.

Is it possible for the current library do that? If not, I strongly suggest to add this feature.

Missing Support for arbitary dtypes and frames dimension

Hey ho imgaugment Team :),

When I used your component It is not possible to use a dtype other than uint8. Is that correct, and why is that? I see no reason for this restriction since most augmenters like skewing or rotating would work just fine with other dtypes.

Next question how can I augment multi frame images? With a shape: [frames, height, width, channels]. If I use the augmenters like that the frames will be have each it's own augmention applied and therefore the images are not augmented in the same manner.

Greetings and thanks in advance :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.