diff --git a/LICENSE b/LICENSE index adb953134..ae9c7cffc 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015 aleju +Copyright (c) 2015 marcown Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 4fe9ea4dc..361876d1d 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ This python library helps you with augmenting images for your machine learning projects. It converts a set of input images into a new, much larger set of slightly altered images. -[![Build Status](https://travis-ci.org/aleju/imgaug.svg?branch=master)](https://travis-ci.org/aleju/imgaug) -[![codecov](https://codecov.io/gh/aleju/imgaug/branch/master/graph/badge.svg)](https://codecov.io/gh/aleju/imgaug) -[![Codacy Badge](https://api.codacy.com/project/badge/Grade/1370ce38e99e40af842d47a8dd721444)](https://www.codacy.com/app/aleju/imgaug?utm_source=github.com&utm_medium=referral&utm_content=aleju/imgaug&utm_campaign=Badge_Grade) +[![Build Status](https://travis-ci.org/marcown/imgaug.svg?branch=master)](https://travis-ci.org/marcown/imgaug) +[![codecov](https://codecov.io/gh/marcown/imgaug/branch/master/graph/badge.svg)](https://codecov.io/gh/marcown/imgaug) +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/1370ce38e99e40af842d47a8dd721444)](https://www.codacy.com/app/marcown/imgaug?utm_source=github.com&utm_medium=referral&utm_content=marcown/imgaug&utm_campaign=Badge_Grade)
Original Input | -- | - | - | - | + | + | + | + | + | |
Gauss. Noise + Contrast + Sharpen |
-- | - | - | - | + | + | + | + | + | |
Affine | -- | - | - | - | + | + | + | + | + | |
Crop + Pad |
-- | - | - | - | + | + | + | + | + | |
Fliplr + Perspective |
-- | - | - | - | + | + | + | + | + |
- - + +
Note that `BlendAlphaSegMapClassIds` must be called with all inputs @@ -283,7 +283,7 @@ This example changes the train color using `BlendAlphaSegMapClassIds(AddToHueAndSaturation(...))`. The train has a separate class in the segmentation map. - + The next example applies blending to some non color-based augmenters. It uses roughly `BlendAlphaSegMapClassIds(AdditiveGaussianNoise(...))` (left) @@ -291,8 +291,8 @@ and `BlendAlphaSegMapClassIds(Emboss(...))` (right). The street has a separate class in the segmentation map.- - + +
This example shows how blending can be used to achieve dropout effects. @@ -300,14 +300,14 @@ It uses roughly `BlendAlphaRegularGrid(Multiply(0.0))` (left) and `BlendAlphaCheckerboard(Multiply(0.0))` (right).- - + +
This example shows `BlendAlphaSomeColors(RemoveSaturation(1.0))`, applied to a more colorful image: - + This release also adds `BlendAlphaBoundingBoxes`, `BlendAlphaHorizontalLinearGradient` and @@ -320,7 +320,7 @@ A new debug helper -- `SaveDebugImageEveryNBatches` -- was added. The example below shows one of its outputs for a batch containing images, segmentation maps and bounding boxes. - + Note that this augmenter must be called with all inputs at the same time, e.g. via `augmenters(images=..., segmentation_maps...)` for image + segmap @@ -331,7 +331,7 @@ inputs. # Mixed-Category Patches -## Reworked Augmentation Methods [#451](https://github.com/aleju/imgaug/pull/451) [#566](https://github.com/aleju/imgaug/pull/566) +## Reworked Augmentation Methods [#451](https://github.com/marcown/imgaug/pull/451) [#566](https://github.com/marcown/imgaug/pull/566) The internal backend of the library was changed so that augmentation now happens batchwise instead of input-type-wise. Child augmenters still have @@ -440,7 +440,7 @@ Other changes: `BoundingBoxesOnImage.from_xyxy_array()`. -## Reworked Quantization [#467](https://github.com/aleju/imgaug/pull/467) +## Reworked Quantization [#467](https://github.com/marcown/imgaug/pull/467) This patch reworked the quantization routines to also support quantization to `N` bits instead of `N` colors in a way that is similar to posterization @@ -485,7 +485,7 @@ function. arrays. -## Improved Invert [#469](https://github.com/aleju/imgaug/pull/469) +## Improved Invert [#469](https://github.com/marcown/imgaug/pull/469) Added thresholds to `Invert` and the corresponding functions. This enables solarization (inversion with thresholds). The patch also added @@ -506,7 +506,7 @@ a corresponding `Solarize` augmenter and two solarization functions. `imgaug.augmenters.arithmetic.Invert` for `uint8` images. -## All Augmenters are now Pickle-able [#493](https://github.com/aleju/imgaug/pull/493) [#575](https://github.com/aleju/imgaug/pull/575) +## All Augmenters are now Pickle-able [#493](https://github.com/marcown/imgaug/pull/493) [#575](https://github.com/marcown/imgaug/pull/575) Ensured that all augmenters can be pickled and un-pickled without errors. @@ -518,7 +518,7 @@ Ensured that all augmenters can be pickled and un-pickled without errors. all standard RNG datatypes for `random_state`. -## Extended Cropping and Padding Augmenters [#459](https://github.com/aleju/imgaug/pull/459) +## Extended Cropping and Padding Augmenters [#459](https://github.com/marcown/imgaug/pull/459) This patch extended the cropping and padding augmenters. It added augmenters that crop/pad towards multiples of values (e.g. crop the @@ -613,7 +613,7 @@ Fixes: `compute_paddings_to_reach_multiples_of()`. -## More Choices for Image Blending [#462](https://github.com/aleju/imgaug/pull/462) [#556](https://github.com/aleju/imgaug/pull/556) +## More Choices for Image Blending [#462](https://github.com/marcown/imgaug/pull/462) [#556](https://github.com/marcown/imgaug/pull/556) The available augmenters for alpha-blending of images were significantly extended. There are now new blending @@ -715,7 +715,7 @@ List of changes: # Added -## Unwrapped Bounding Box Augmentation [#446](https://github.com/aleju/imgaug/pull/446) +## Unwrapped Bounding Box Augmentation [#446](https://github.com/marcown/imgaug/pull/446) The bounding box augmentation was previously a wrapper around keypoint augmentation. Bounding Boxes were simply converted to keypoints at the @@ -761,7 +761,7 @@ augmentations specific to bounding boxes. of their names. -## Unwrapped Line String Augmentation [#450](https://github.com/aleju/imgaug/pull/450) +## Unwrapped Line String Augmentation [#450](https://github.com/marcown/imgaug/pull/450) This patch is the same as the bounding box unwrapping above, only applied to line strings. @@ -781,7 +781,7 @@ line strings. of their names. -## Added fit_output to PerspectiveTransform [#452](https://github.com/aleju/imgaug/pull/452) [#456](https://github.com/aleju/imgaug/pull/456) +## Added fit_output to PerspectiveTransform [#452](https://github.com/marcown/imgaug/pull/452) [#456](https://github.com/marcown/imgaug/pull/456) This patch added `fit_output` to `PerspectiveTransform`. @@ -792,7 +792,7 @@ This patch added `fit_output` to `PerspectiveTransform`. be faster. -# Added `ChangeColorTemperature` Augmenter [#454](https://github.com/aleju/imgaug/pull/454) +# Added `ChangeColorTemperature` Augmenter [#454](https://github.com/marcown/imgaug/pull/454) This patch added an augmenter and corresponding function to change the color temperature of images. This adds e.g. red, orange or blue tints. @@ -802,7 +802,7 @@ color temperature of images. This adds e.g. red, orange or blue tints. * Added function `imgaug.augmenters.color.change_color_temperature_()`. -## Added Brightness Augmenters [#455](https://github.com/aleju/imgaug/pull/455) +## Added Brightness Augmenters [#455](https://github.com/marcown/imgaug/pull/455) This patch added brightness-related augmenters. At the core is `WithBrightnessChannels`, which converts images to a choice of @@ -820,7 +820,7 @@ a child augmenter and convert the modified `L*a*b*` back to `RGB`. argument `to_colorspaces`, not just `list`. -## Added More Dropout Augmenters [#458](https://github.com/aleju/imgaug/pull/458) +## Added More Dropout Augmenters [#458](https://github.com/marcown/imgaug/pull/458) This patch added more dropout augmenters. `Dropout2d` randomly zeros whole channels, while `TotalDropout` randomly zeros whole images. @@ -840,13 +840,13 @@ to be unchanged.) with e.g. blend augmenters. -## Added `RemoveSaturation` [#462](https://github.com/aleju/imgaug/pull/462) +## Added `RemoveSaturation` [#462](https://github.com/marcown/imgaug/pull/462) * Added `RemoveSaturation`, a shortcut for `MultiplySaturation((0.0, 1.0))` with outputs similar to `Grayscale((0.0, 1.0))`. -## Added `Cartoon` Augmenter [#463](https://github.com/aleju/imgaug/pull/463) +## Added `Cartoon` Augmenter [#463](https://github.com/marcown/imgaug/pull/463) This patch added a filter to change the style of images to one that looks more cartoon-ish. The filter used classical methods. As such it works well @@ -858,7 +858,7 @@ that already have rather saturated colors and pronounced edges. * Added augmenter `imgaug.augmenters.artistic.Cartoon`. -## Added `MeanShiftBlur` Augmenter [#466](https://github.com/aleju/imgaug/pull/466) +## Added `MeanShiftBlur` Augmenter [#466](https://github.com/marcown/imgaug/pull/466) This patch added a mean shift-based blur filter. Note that it is very slow when using the default parameters (high radius). @@ -867,14 +867,14 @@ slow when using the default parameters (high radius). * Added augmenter `imgaug.augmenters.blur.MeanShiftBlur`. -## Added `DeterministicList` Parameter [#475](https://github.com/aleju/imgaug/pull/475) +## Added `DeterministicList` Parameter [#475](https://github.com/marcown/imgaug/pull/475) Added `imgaug.parameters.DeterministicList`. Upon a request to generate samples of shape `S`, this parameter will create a new array of shape `S` and fill it by cycling over its list of values repeatedly. -## Added `Jigsaw` Augmenter [#476](https://github.com/aleju/imgaug/pull/476) [#577](https://github.com/aleju/imgaug/pull/577) +## Added `Jigsaw` Augmenter [#476](https://github.com/marcown/imgaug/pull/476) [#577](https://github.com/marcown/imgaug/pull/577) This patch added a jigsaw puzzle augmenter and corresponding functions. The augmenter splits each image into a regular grid of cells, then @@ -889,7 +889,7 @@ polygons or line strings. * Added function `imgaug.augmenters.geometric.generate_jigsaw_destinations()`. -## Added Wrappers around Package `PIL` [#479](https://github.com/aleju/imgaug/pull/479) [#480](https://github.com/aleju/imgaug/pull/480) [#538](https://github.com/aleju/imgaug/pull/538) +## Added Wrappers around Package `PIL` [#479](https://github.com/marcown/imgaug/pull/479) [#480](https://github.com/marcown/imgaug/pull/480) [#538](https://github.com/marcown/imgaug/pull/538) This patch added wrapper functions and augmenters around popular `PIL` functions. The outputs of these functions and augmenters are @@ -947,7 +947,7 @@ accurately as possible. * `imgaug.augmenters.pillike.Affine` -## Added `Identity` [#481](https://github.com/aleju/imgaug/pull/481) +## Added `Identity` [#481](https://github.com/marcown/imgaug/pull/481) This patch added an identity function augmenter (`Identity`), which is the same as `Noop` and will replace the latter one in the long run. @@ -961,7 +961,7 @@ the same as `Noop` and will replace the latter one in the long run. is now deprecated. -## Added Shearing on the Y-Axis to `Affine` [#482](https://github.com/aleju/imgaug/pull/482) +## Added Shearing on the Y-Axis to `Affine` [#482](https://github.com/marcown/imgaug/pull/482) `Affine` was changed to now also support shearing on the y-axis. Previously, only the x-axis was supported. Use e.g. @@ -978,7 +978,7 @@ Previously, only the x-axis was supported. Use e.g. the dictionary form. -## Added Wrappers around `Affine` [#484](https://github.com/aleju/imgaug/pull/484) +## Added Wrappers around `Affine` [#484](https://github.com/marcown/imgaug/pull/484) This patch added a few convenience wrappers around `Affine`. @@ -991,7 +991,7 @@ This patch added a few convenience wrappers around `Affine`. * Added `imgaug.augmenters.geometric.ShearY`. -## Added More Methods to Remove Out-of-Image Augmentables [#487](https://github.com/aleju/imgaug/pull/487) +## Added More Methods to Remove Out-of-Image Augmentables [#487](https://github.com/marcown/imgaug/pull/487) This patch extended the methods to handle coordinate-based augmentables, e.g. bounding boxes, that are partially/fully outside of the image plane. @@ -1029,14 +1029,14 @@ augmentables that are outside of the image plane. three points (previously: exception). -## Added Bounding Box to Polygon Conversion [#489](https://github.com/aleju/imgaug/pull/489) +## Added Bounding Box to Polygon Conversion [#489](https://github.com/marcown/imgaug/pull/489) * Added method `imgaug.augmentables.bbs.BoundingBox.to_polygon()`. * Added method `imgaug.augmentables.bbs.BoundingBoxesOnImage.to_polygons_on_image()`. -## Added Polygon Subdivision [#489](https://github.com/aleju/imgaug/pull/489) +## Added Polygon Subdivision [#489](https://github.com/marcown/imgaug/pull/489) * Added method `imgaug.augmentables.polys.Polygon.subdivide(N)`. The method increases the polygon's corner point count by interpolating @@ -1044,7 +1044,7 @@ augmentables that are outside of the image plane. * Added method `imgaug.augmentables.polys.PolygonsOnImage.subdivide(N)`. -## Added `WithPolarWarping` Augmenter [#489](https://github.com/aleju/imgaug/pull/489) +## Added `WithPolarWarping` Augmenter [#489](https://github.com/marcown/imgaug/pull/489) This patch added an augmenter to transform images to polar coordinates and apply child augmenters within that space. This leads to interesting @@ -1056,7 +1056,7 @@ as cropping or affine transformations. image. -## Added Convenient Access Methods to Coordinate-Based Augmentables [#495](https://github.com/aleju/imgaug/pull/495) [#541](https://github.com/aleju/imgaug/pull/541) +## Added Convenient Access Methods to Coordinate-Based Augmentables [#495](https://github.com/marcown/imgaug/pull/495) [#541](https://github.com/marcown/imgaug/pull/541) This patch added various magic functions to coordinate-based augmentables that make their usage more convenient. Example: @@ -1093,7 +1093,7 @@ for bb in bbsoi: # looping is now supported * Added property `Keypoint.xy_int`. -## Added `SaveDebugImageEveryNBatches` Augmenter [#502](https://github.com/aleju/imgaug/pull/502) +## Added `SaveDebugImageEveryNBatches` Augmenter [#502](https://github.com/marcown/imgaug/pull/502) This patch added a debug augmenter `SaveDebugImageEveryNBatches` that visualizes a whole batch and saves the corresponding image to a directory. @@ -1124,13 +1124,13 @@ The augmenter might be useful even if no augmentation is actually performed. n-th batch into a provided folder. -## Added Multi-Channel cvals in `pad()` [#502](https://github.com/aleju/imgaug/pull/502) +## Added Multi-Channel cvals in `pad()` [#502](https://github.com/marcown/imgaug/pull/502) Improved `imgaug.augmenters.size.pad()` to support multi-channel values for the `cval` parameter (e.g. RGB colors). -## Added Wrappers around Package `imagecorruptions` [#530](https://github.com/aleju/imgaug/pull/530) +## Added Wrappers around Package `imagecorruptions` [#530](https://github.com/marcown/imgaug/pull/530) Added wrappers around the functions from package [bethgelab/imagecorruptions](https://github.com/bethgelab/imagecorruptions). @@ -1194,7 +1194,7 @@ The interfaces of the wrapper functions are identical to the * Added context `imgaug.random.temporary_numpy_seed()`. -## Added `Cutout` Augmenter [#531](https://github.com/aleju/imgaug/pull/531) [#570](https://github.com/aleju/imgaug/pull/570) +## Added `Cutout` Augmenter [#531](https://github.com/marcown/imgaug/pull/531) [#570](https://github.com/marcown/imgaug/pull/570) This patch added Cutout augmentation, similar to the paper proposal. The augmetner has some similarity with `CoarseDropout`. @@ -1208,7 +1208,7 @@ The augmetner has some similarity with `CoarseDropout`. * Added `imgaug.augmenters.arithmetic.Cutout`. -## Added in-place Methods for Coordinate-based Augmentables [#532](https://github.com/aleju/imgaug/pull/532) +## Added in-place Methods for Coordinate-based Augmentables [#532](https://github.com/marcown/imgaug/pull/532) This patch added for many already existing methods corresponding in-place variations. They are now used throughout the library, improving the @@ -1268,7 +1268,7 @@ performance of augmentation in the case of e.g. bounding boxes. bounding boxes, line strings and polygons. -## Added Standardized LUT Methods [#542](https://github.com/aleju/imgaug/pull/542) +## Added Standardized LUT Methods [#542](https://github.com/marcown/imgaug/pull/542) This patch standardized the handling of lookup tables throughout the library. @@ -1279,7 +1279,7 @@ This patch standardized the handling of lookup tables throughout the library. tables. -## Added Drawing of Bounding Box Labels [#545](https://github.com/aleju/imgaug/pull/545) +## Added Drawing of Bounding Box Labels [#545](https://github.com/marcown/imgaug/pull/545) When drawing bounding boxes on images via `BoundingBox.draw_on_image()` or `BoundingBoxesOnImage.draw_on_image()`, a box containing the label will now @@ -1293,7 +1293,7 @@ use `BoundingBox.draw_label_on_image()`. to automatically draw a bounding box's label. -## Added Index-based Access to Coordinate-based `*OnImage` Instances [#547](https://github.com/aleju/imgaug/pull/547) +## Added Index-based Access to Coordinate-based `*OnImage` Instances [#547](https://github.com/marcown/imgaug/pull/547) Enabled index-based access to coordinate-based `*OnImage` instances, i.e. to `KeypointsOnImage`, `BoundingBoxesOnImage`, `LineStringsOnImage` and @@ -1306,7 +1306,7 @@ Enabled index-based access to coordinate-based `*OnImage` instances, i.e. to * Added `imgaug.augmentables.polys.PolygonsOnImage.__getitem__()`. -## Added `Rain` and `RainLayer` Augmenters [#551](https://github.com/aleju/imgaug/pull/551) +## Added `Rain` and `RainLayer` Augmenters [#551](https://github.com/marcown/imgaug/pull/551) Added augmenter(s) to create fake rain effects. They currently seem to work best at around medium-sized images (~224px). @@ -1315,13 +1315,13 @@ best at around medium-sized images (~224px). * Added `imgaug.augmenters.weather.RainLayer`. -## Added `round` Parameter to `Discretize` [#553](https://github.com/aleju/imgaug/pull/553) +## Added `round` Parameter to `Discretize` [#553](https://github.com/marcown/imgaug/pull/553) Added the parameter `round` to `imgaug.parameters.Discretize`. The parameter defaults to `True`, i.e. the default behaviour of `Discretize` did not change. -## Added `RandAugment` Augmenter [#553](https://github.com/aleju/imgaug/pull/553) +## Added `RandAugment` Augmenter [#553](https://github.com/marcown/imgaug/pull/553) Added a RandAugment augmenter, similar to the one described in the paper "RandAugment: Practical automated data augmentation with a reduced @@ -1343,7 +1343,7 @@ types (e.g. bounding boxes) will be rejected. * Added augmenter `imgaug.augmenters.collections.RandAugment`. -## Added and Improved Warnings for Probably-Wrong Image Inputs [#594](https://github.com/aleju/imgaug/pull/594) +## Added and Improved Warnings for Probably-Wrong Image Inputs [#594](https://github.com/marcown/imgaug/pull/594) Improved the errors and warnings on image augmentation calls. `augment_image()` will now produce a more self-explanatory error @@ -1377,7 +1377,7 @@ was actually provided.) # Changed -## Improved RNG Handling during Polygon Augmentation [#447](https://github.com/aleju/imgaug/pull/447) +## Improved RNG Handling during Polygon Augmentation [#447](https://github.com/marcown/imgaug/pull/447) Changed `Augmenter.augment_polygons()` to copy the augmenter's RNG before starting concave polygon recovery. This is done for cleanliness and @@ -1385,7 +1385,7 @@ should not have any effects for users. Also removed RNG copies in `_ConcavePolygonRecoverer` to improve performance. -## Pooling Augmenters now Affect Maps [#457](https://github.com/aleju/imgaug/pull/457) +## Pooling Augmenters now Affect Maps [#457](https://github.com/marcown/imgaug/pull/457) Pooling augmenters were previously implemented so that they did not pool the arrays of maps (i.e. heatmap arrays, segmentation map arrays). Only @@ -1398,14 +1398,14 @@ changed and pooling augmenters will also pool map arrays behaviour was unintuitive and inconsistent with other augmenters (e.g. `Crop`). -## Affine Translation Precision [#489](https://github.com/aleju/imgaug/pull/489) +## Affine Translation Precision [#489](https://github.com/marcown/imgaug/pull/489) Removed a rounding operation in `Affine` translation that would unnecessarily round floats to integers. This should make coordinate augmentation overall more accurate. -## `Affine.get_parameters()` and `translate_px`/`translate_percent` [#508](https://github.com/aleju/imgaug/pull/508) +## `Affine.get_parameters()` and `translate_px`/`translate_percent` [#508](https://github.com/marcown/imgaug/pull/508) Changed `Affine.get_parameters()` to always return a tuple `(x, y, mode)` for translation, where `mode` is either `px` or `percent`, @@ -1413,7 +1413,7 @@ and `x` and `y` are stochastic parameters. `y` may be `None` if the same parameter (and hence samples) are used for both axes. -## Removed Outdated "Don't Import from this Module" Messages [#539](https://github.com/aleju/imgaug/pull/539) +## Removed Outdated "Don't Import from this Module" Messages [#539](https://github.com/marcown/imgaug/pull/539) The docstring of each module in ``imgaug.augmenters`` previously included a suggestion to not directly import from that module, but instead use @@ -1425,7 +1425,7 @@ for a long time, the suggestion was removed from all modules. Calling preferred way. -## Standardized `shift()` Interfaces of Coordinate-Based Augmentables [#548](https://github.com/aleju/imgaug/pull/548) +## Standardized `shift()` Interfaces of Coordinate-Based Augmentables [#548](https://github.com/marcown/imgaug/pull/548) The interfaces for shift operations of all coordinate-based augmentables (Keypoints, BoundingBoxes, LineStrings, Polygons) @@ -1459,7 +1459,7 @@ work as expected. * Added function `testutils.wrap_shift_deprecation()`. -## Simplified Standard Parameters of Augmenters [#567](https://github.com/aleju/imgaug/pull/567) [#595](https://github.com/aleju/imgaug/pull/595) +## Simplified Standard Parameters of Augmenters [#567](https://github.com/marcown/imgaug/pull/567) [#595](https://github.com/marcown/imgaug/pull/595) The patch changed the standard parameters shared by all augmenters to a reduced and more self-explanatory set. Previously, all augmenters @@ -1495,7 +1495,7 @@ as opposed to previously `name=..., deterministic=..., random_state=...`. -## Improved Default Values of Augmenters [#582](https://github.com/aleju/imgaug/pull/582) +## Improved Default Values of Augmenters [#582](https://github.com/marcown/imgaug/pull/582) **[breaking]** Most augmenters had previously default values that made them equivalent to identity functions. Users had to explicitly @@ -1739,7 +1739,7 @@ The exact changes to default values are listed below. neither `px` nor `percent`. -## `setup.py` Now Accepts any `opencv-*` Installation [#586](https://github.com/aleju/imgaug/pull/586) +## `setup.py` Now Accepts any `opencv-*` Installation [#586](https://github.com/marcown/imgaug/pull/586) `setup.py` was changed so that it now accepts `opencv-python`, `opencv-python-headless`, `opencv-contrib-python` and @@ -1758,13 +1758,13 @@ library requests. Try to ensure that the other library is installed first in these cases. -## Unified OpenCV Input Normalization [#565](https://github.com/aleju/imgaug/pull/565) +## Unified OpenCV Input Normalization [#565](https://github.com/marcown/imgaug/pull/565) Changed various augmenters to use the same normalization for OpenCV inputs. This probably fixes some previously undiscovered bugs. -## Renamed In-place Methods [#444](https://github.com/aleju/imgaug/pull/444) +## Renamed In-place Methods [#444](https://github.com/marcown/imgaug/pull/444) * Renamed `Augmenter.reseed()` to `Augmenter.seed_()`. The old name is now deprecated. @@ -1772,17 +1772,17 @@ inputs. This probably fixes some previously undiscovered bugs. `Augmenter.remove_augmenters_()`. The old name is now deprecated. -## Deprecated `AffineCv2` [#540](https://github.com/aleju/imgaug/pull/540) +## Deprecated `AffineCv2` [#540](https://github.com/marcown/imgaug/pull/540) Deprecated `imgaug.augmenters.geometric.AffineCv2`. -Use `imgaug.augmenters.geometric.Affine` instead. [#540](https://github.com/aleju/imgaug/pull/540) +Use `imgaug.augmenters.geometric.Affine` instead. [#540](https://github.com/marcown/imgaug/pull/540) # Refactored -## Refactored According to pylint Requirements [#504](https://github.com/aleju/imgaug/pull/504) +## Refactored According to pylint Requirements [#504](https://github.com/marcown/imgaug/pull/504) * Refactored all core library files to fulfill (most) pylint requirements. * [rarely breaking] Renamed @@ -1796,70 +1796,70 @@ Use `imgaug.augmenters.geometric.Affine` instead. [#540](https://github.com/alej * Fixed `Resize` always returning an `uint8` array during image augmentation if the input was a single numpy array and all augmented images had the - same shape. [#442](https://github.com/aleju/imgaug/pull/442) [#443](https://github.com/aleju/imgaug/pull/443) + same shape. [#442](https://github.com/marcown/imgaug/pull/442) [#443](https://github.com/marcown/imgaug/pull/443) * Fixed `Affine` coordinate-based augmentation applying wrong offset when shifting images to/from top-left corner. This would lead to an error - of around 0.5 to 1.0 pixels. [#446](https://github.com/aleju/imgaug/pull/446) + of around 0.5 to 1.0 pixels. [#446](https://github.com/marcown/imgaug/pull/446) * Fixed keypoint augmentation in `PiecewiseAffine` potentially being - unaligned if a `KeypointsOnImage` instance contained no keypoints. [#446](https://github.com/aleju/imgaug/pull/446) + unaligned if a `KeypointsOnImage` instance contained no keypoints. [#446](https://github.com/marcown/imgaug/pull/446) * Fixed `imgaug.validation.convert_iterable_to_string_of_types()` crashing due - to not converting types to strings before joining them. [#446](https://github.com/aleju/imgaug/pull/446) + to not converting types to strings before joining them. [#446](https://github.com/marcown/imgaug/pull/446) * Fixed `imgaug.validation.assert_is_iterable_of()` producing a not - well-designed error if the input was not an iterable. [#446](https://github.com/aleju/imgaug/pull/446) + well-designed error if the input was not an iterable. [#446](https://github.com/marcown/imgaug/pull/446) * Fixed image normalization crashing when an input ndarray of multiple images was changed during augmentation to a list of multiple images with different shapes *and* the original input ndarray represented a single image or a collection of 2D `(H,W)` images. This problem affected `augment()`, `augment_batch()` and `augment_batches()`. -* Fixed a typo in an image normalization error message. [#451](https://github.com/aleju/imgaug/pull/451) +* Fixed a typo in an image normalization error message. [#451](https://github.com/marcown/imgaug/pull/451) * Fixed a problem in `WithChannels` that could lead random sampling in child augmenters being unaligned between images and corresponding non-image - data. [#451](https://github.com/aleju/imgaug/pull/451) + data. [#451](https://github.com/marcown/imgaug/pull/451) * Added aliases to `imgaug.random.RNG` for some outdated numpy random number sampling methods that existed in `numpy.random.RandomState` but not in numpy's new RNG system (1.17+). These old methods are not used in `imgaug`, but some custom augmenters and `Lambda` calls may require them when - interacting with the provided `random_state` instances. [#486](https://github.com/aleju/imgaug/pull/486) + interacting with the provided `random_state` instances. [#486](https://github.com/marcown/imgaug/pull/486) * Fixed `Affine` producing unaligned augmentations between images and segmentation maps or heatmaps when using `translate_px` and the segmentation - map or heatmap had a different height/width than corresponding image. [#489](https://github.com/aleju/imgaug/pull/489) + map or heatmap had a different height/width than corresponding image. [#489](https://github.com/marcown/imgaug/pull/489) * Fixed a crash in `SnowflakesLayer` that could occur when using values - close to `1.0` for `flake_size`. [#471](https://github.com/aleju/imgaug/pull/471) + close to `1.0` for `flake_size`. [#471](https://github.com/marcown/imgaug/pull/471) * Fixed `MultiplyHueAndSaturation` crashing if the RNG provided via - `random_state` was not `None` or `imgaug.random.RNG`. [#493](https://github.com/aleju/imgaug/pull/493) + `random_state` was not `None` or `imgaug.random.RNG`. [#493](https://github.com/marcown/imgaug/pull/493) * Fixed `CloudLayer.draw_on_image()` producing tuples instead of arrays - as output for `float` input images. [#540](https://github.com/aleju/imgaug/pull/540) + as output for `float` input images. [#540](https://github.com/marcown/imgaug/pull/540) * Fixed `Affine` parameter `translate_px` behaving like `translate_percent` if a continuous stochastic parameter was provided. Analogously `translate_percent` would behave like `translate_px` if - a discrete stochastic parameter was provided. [#508](https://github.com/aleju/imgaug/pull/508) + a discrete stochastic parameter was provided. [#508](https://github.com/marcown/imgaug/pull/508) * Fixed code hanging indefinitely when using multicore augmentation - on NixOS. [#414](https://github.com/aleju/imgaug/issues/414) [#510](https://github.com/aleju/imgaug/pull/510) + on NixOS. [#414](https://github.com/marcown/imgaug/issues/414) [#510](https://github.com/marcown/imgaug/pull/510) * Fixed a deprecation warning and potential crash in python 3.8 - related to the use of `collections` instead of `collections.abc`. [#527](https://github.com/aleju/imgaug/pull/527) -* Fixed deprecated `scipy.fromfunction()` being called. [#529](https://github.com/aleju/imgaug/pull/529) + related to the use of `collections` instead of `collections.abc`. [#527](https://github.com/marcown/imgaug/pull/527) +* Fixed deprecated `scipy.fromfunction()` being called. [#529](https://github.com/marcown/imgaug/pull/529) * Fixed `imgaug.random.normalize_generator()` crashing in numpy 1.18. The function relied on `numpy.random.bit_generator.BitGenerator`, which was moved in numpy 1.18 to `numpy.random.BitGenerator` without a - deprecation period for the old name. [#534](https://github.com/aleju/imgaug/pull/534) + deprecation period for the old name. [#534](https://github.com/marcown/imgaug/pull/534) * Fixed an issue that could lead to endlessly hanging programs on some OS when using multicore augmentation (e.g. via pool) and augmenters using - OpenCV. [#535](https://github.com/aleju/imgaug/pull/535) + OpenCV. [#535](https://github.com/marcown/imgaug/pull/535) * Fixed `imgaug.random.seed()` not seeding the global `RNG` in-place in numpy 1.17+. The (unfixed) function instead created a new global `RNG` with the given seed. This set the seed of augmenters created *after* the `seed()` call, but not of augmenters created *before* the `seed()` call as they would continue to use the old - global RNG. [#557](https://github.com/aleju/imgaug/pull/557) + global RNG. [#557](https://github.com/marcown/imgaug/pull/557) * Fixed `cval` in `ElasticTransformation` resulting in new pixels in RGB images - being filled with `(cval, 0, 0)` instead of `(cval, cval, cval)`. [#561](https://github.com/aleju/imgaug/pull/561) [#562](https://github.com/aleju/imgaug/pull/562) + being filled with `(cval, 0, 0)` instead of `(cval, cval, cval)`. [#561](https://github.com/marcown/imgaug/pull/561) [#562](https://github.com/marcown/imgaug/pull/562) * Fixed some augmenters in module `weather` not transferring seed values - or random states that were provided upon creation to child augmenters. [#568](https://github.com/aleju/imgaug/pull/568) + or random states that were provided upon creation to child augmenters. [#568](https://github.com/marcown/imgaug/pull/568) * Fixed an inaccuracy in `PerspectiveTransform` that could lead to slightly misaligned transformations between images and coordinate-based augmentables (e.g. bounding boxes). The problem was more significant the smaller the images and larger the `scale` values were. It was also - worsened by using `fit_output`. [#585](https://github.com/aleju/imgaug/pull/585) + worsened by using `fit_output`. [#585](https://github.com/marcown/imgaug/pull/585) * Fixed `KeepSizeByResize` potentially crashing if a single numpy array was provided as the input for an iterable of images (as opposed to - a list of numpy arrays). [#590](https://github.com/aleju/imgaug/pull/590) + a list of numpy arrays). [#590](https://github.com/marcown/imgaug/pull/590) diff --git a/setup.py b/setup.py index 711e25601..6eda5418a 100644 --- a/setup.py +++ b/setup.py @@ -61,8 +61,8 @@ def get_install_requirements(main_requires, alternative_requires): version="0.4.0", author="Alexander Jung", author_email="kontakt@ajung.name", - url="https://github.com/aleju/imgaug", - download_url="https://github.com/aleju/imgaug/archive/0.4.0.tar.gz", + url="https://github.com/marcown/imgaug", + download_url="https://github.com/marcown/imgaug/archive/0.4.1.tar.gz", install_requires=INSTALL_REQUIRES, packages=find_packages(), include_package_data=True, diff --git a/test/augmenters/test_meta.py b/test/augmenters/test_meta.py index ea7b83572..5c7788a15 100644 --- a/test/augmenters/test_meta.py +++ b/test/augmenters/test_meta.py @@ -6606,7 +6606,7 @@ def test_invalid_none_none_tuple_as_n(self): assert got_exception def test_with_children_that_change_shapes_keep_size_false(self): - # test for https://github.com/aleju/imgaug/issues/143 + # test for https://github.com/marcown/imgaug/issues/143 # (shapes change in child augmenters, leading to problems if input # arrays are assumed to stay input arrays) image = np.zeros((8, 8, 3), dtype=np.uint8) @@ -7720,7 +7720,7 @@ def test___str___and___repr___with_nones_as_children(self): assert observed_repr == expected def test_shapes_changed_by_children__no_keep_size_non_stochastic(self): - # Test for https://github.com/aleju/imgaug/issues/143 + # Test for https://github.com/marcown/imgaug/issues/143 # (shapes change in child augmenters, leading to problems if input # arrays are assumed to stay input arrays) def _assert_all_valid_shapes(images):