Augly

Latest version: v1.0.0

Safety actively analyzes 624712 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.2.1

Changes

Audio:
- New augmentations: `loop`
- Efficiency improvements: made `high_pass_filter` & `low_pass_filter` ~97% faster by using `torchaudio`

Image:
- New augmentations: `skew`
- Added bbox computation helper `spatial_bbox_helper` to make it easier to add new image augmentations & automatically compute the bounding box transformations (e.g. see how we used this for `skew` [here](https://github.com/facebookresearch/AugLy/blob/main/augly/image/functional.py#L2430))
- Efficiency improvements: made `resize` ~35% faster by defaulting to bilinear interpolation

Text:
- Allow multi-word typo replacement
- Efficiency improvements: made `contractions`, `replace_similar_chars`, `replace_similar_unicode_chars`, `replace_upside_down` ~40-60% faster using algorithmic improvements

Video:
- Efficiency improvements: made 30 of the video augmentations faster using [`vidgear`](https://github.com/abhiTronix/vidgear) (a new dependency we added in this release) to execute `ffmpeg` commands using higher compression rates (e.g. `hflip` 75% faster, `loop` 85% faster, `remove_audio` 96% faster, `pixelization` 71% faster)

Overall:
- Modified internal imports to be Python 3.6-compatible
- Added error messages to unit tests for easier debugging
- If you want to see a full report benchmarking the runtimes of all AugLy augmentations versus other libraries, keep an eye out for the AugLy paper, which will be up on Arxiv in January!

0.1.10

Changes
Image
- Added bounding box support to all augmentations
- Images are now returned in the same format they were passed into all augmentations (except `convert_color`)

Text
- New augmentations: `swap_gendered_words`, `merge_words`, `change_case`, `contractions`
- Allow for kwarg overriding in `__call__()` for all augmentations
- Exposed `typo_type` param in `simulate_typos` aug
- Added `ignore_words` param to `replace_words` & `swap_gendered_words`

Video
- New augmentation: `augment_audio`

Other
- Enforce `black` formatting

0.1.7

Changes
Image
- New augmentations: `apply_pil_filter`, `clip_image_size`, `overlay_onto_background_image`, `overlay_onto_background_image_with_blurred_mask`, `apply_pil_filter`, `clip_image_size`, `overlay_onto_background_image`
- New unit tests: `Compose`, `overlay_image`
- Fixed `color_jitter_intensity`
- Don't modify input image in `overlay_stripes`
- Added metadata arg to `Compose` operator
- Added support to `overlay_text` for multi-line text
- Added `resize_src_to_match_template` option to `overlay_onto_screenshot`
- Improved `meme_format` error message

Text
- New augmentation: `insert_whitespace_chars`
- Add metadata arg to Compose operator
- Added more font options to `replace_fun_fonts`

Video
- Added metadata arg to Compose operator, added unit test

0.1.5

Changes
Other
- Trimmed down dependencies
- Audio & video dependencies are only installed if the `[av]` extra is specified

0.1.3

Changes
Text
- Added font .pkl files that had been accidentally deleted
Other
- Added test & lint GitHub workflows

0.1.2

First github release! Aligns with augly==0.1.2 on pypi.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.