Skip to content

Tags: facebookresearch/AugLy

Tags

v1.0.0

Toggle v1.0.0's commit message
Update pypi to augly==1.0.0 (#206)

Summary:
## Related Issue
N/A

- [x] I have read CONTRIBUTING.md to understand how to contribute to this repository :)

Updating the pypi package with recent changes, including the way the dependencies are split.

Pull Request resolved: #206

Reviewed By: jbitton

Differential Revision: D35008009

Pulled By: zpapakipos

fbshipit-source-id: 40fc950be36495837bc53c6bd6d6ff4ec4073bd2

v0.2.1

Toggle v0.2.1's commit message
Add `skew` function (#36)

Summary:
Add Shearing w.r.t y-axis and x-axis

Pull Request resolved: #36

Reviewed By: jbitton

Differential Revision: D29581632

Pulled By: zpapakipos

fbshipit-source-id: 050df38cd64446b363581daec60b15b1278a2308

v0.1.10

Toggle v0.1.10's commit message
Augment audio to a video (#133)

Summary:
## Related Issue
Fixes #130

- [X] I have read CONTRIBUTING.md to understand how to contribute to this repository :)

<Please summarize what you are trying to achieve, what changes you made, and how they acheive the desired result.>

I'm trying to extract the audio to a temporary file and then apply some audio augmentation. After that I swap the current audio in the video with the augmented audio. I also gather metadata for the augmented audio and video. It either returns the output path (if it was specified) or the video path.

Only file that was changed was `/AugLy/augly/video/functional.py`. A question I have is what should be the description for the `audio_aug_function` param?

## Unit Tests
If your changes touch the `audio` module, please run all of the `audio` tests and paste the output here. Likewise for `image`, `text`, & `video`. If your changes could affect behavior in multiple modules, please run the tests for all potentially affected modules. If you are unsure of which modules might be affected by your changes, please just run all the unit tests.

### Video
```bash
python -m unittest discover -s augly/tests/video_tests/ -p "*"
```

Output of test suite for video
```
...../Users/admin/AugLy/augly/image/utils/utils.py:51: ResourceWarning: unclosed file <_io.BufferedReader name='/Users/admin/AugLy/augly/assets/screenshot_templates/bboxes.json'>
  bbox = json.load(open(local_bbox_path, "rb"))[template_key]
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/Users/admin/AugLy/augly/video/helpers/metadata.py:357: ResourceWarning: unclosed file <_io.BufferedReader name='/Users/admin/AugLy/augly/assets/screenshot_templates/web.png'>
  metadata[-1]["intensity"] = getattr(
ResourceWarning: Enable tracemalloc to get the object allocation traceback
./Users/admin/AugLy/augly/image/utils/utils.py:184: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  A = np.matrix(matrix, dtype=np.float)
/Users/admin/AugLy/augly/image/utils/utils.py:184: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
  A = np.matrix(matrix, dtype=np.float)
/Users/admin/opt/anaconda3/envs/augly/lib/python3.9/site-packages/numpy/matrixlib/defmatrix.py:69: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
  return matrix(data, dtype=dtype, copy=False)
..
======================================================================
FAIL: test_ReplaceWithBackground (transforms.composite_test.TransformsVideoUnitTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/admin/AugLy/augly/tests/video_tests/transforms/composite_test.py", line 75, in test_ReplaceWithBackground
    self.evaluate_class(
  File "/Users/admin/AugLy/augly/tests/video_tests/base_unit_test.py", line 122, in evaluate_class
    self.assertTrue(
AssertionError: False is not true

----------------------------------------------------------------------
Ran 63 tests in 813.840s

FAILED (failures=1)
```

## Other testing
N/A only looking for some feedback on the work I did so far

If applicable, test your changes and paste the output here. For example, if your changes affect the requirements/installation, then test installing augly in a fresh conda env, then make sure you are able to import augly & run the unit test

Pull Request resolved: #133

Reviewed By: zpapakipos

Differential Revision: D31368459

Pulled By: jbitton

fbshipit-source-id: 9c76057d1a2057ed25b317f2eb3fd1808c92bd8d

v0.1.7

Toggle v0.1.7's commit message
Add swap_gendered_words augmentation (#110)

Summary:
Pull Request resolved: #110

Fairness augmentation which uses predefined aligned lists of male- and female-gendered words to swap the gender of words in the input text.

Reviewed By: jbitton

Differential Revision: D30341486

fbshipit-source-id: 9ba832d078a730728a2e6643b87e60cfa0f64389

v0.1.5

Toggle v0.1.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Group dependencies for submodules (#67)

* Add CI testing Github action

* Merge python & reqs steps

* Fix python step

* Use conda

* Fix spaces

* Add conda init

* Remove making new conda env

* Remove ci_testing workflow that I was testing

* Group dependencies for modules

* Update version number, notebook imports, fix PyYAML requirement

* Update README pip install instructions

* Fix typo in READMEs

* Define extras only for av

* Remove print

* Add back in regex requirement, update test_python workflow

* Update augly/audio/README.md

Co-authored-by: Joanna Bitton <[email protected]>

* Update augly/image/README.md

Co-authored-by: Joanna Bitton <[email protected]>

* Update augly/text/README.md

Co-authored-by: Joanna Bitton <[email protected]>

* Update augly/video/README.md

Co-authored-by: Joanna Bitton <[email protected]>

Co-authored-by: Zoe Papakipos <[email protected]>
Co-authored-by: Joanna Bitton <[email protected]>

v0.1.3

Toggle v0.1.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add colab badges (#64)

* Add CI testing Github action

* Merge python & reqs steps

* Fix python step

* Use conda

* Fix spaces

* Add conda init

* Remove making new conda env

* Add colab badges to readmes

* Update READMEs

* Try formatting

* Try formatting

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Delete ci_testing workflow

Co-authored-by: Zoe Papakipos <[email protected]>
Co-authored-by: Zoe Papakipos <[email protected]>

v0.1.2

Toggle v0.1.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update `torchaudio` to 0.9 for `tensorflow-gpu` compatibility (#43)

* Update `torchaudio` to 0.9 for `tensorflow-gpu` compatibility

Summary:
As called out in #28, there are some conflicting dependencies between `torchaudio`/`torch` 0.8.1/1.8.1 and `tensorflow-gpu`.

However, as discovered in pytorch/audio#1595, upgrading to v0.9 etc actually resolve this issue.

Thus, I update the torchaudio/torch versions in our `requirements.txt` and I also updated our `numpy` requirement so there are no conflicting dependencies between `tf-gpu` and `augly` :)

I verified on my side that all unit tests still pass and that `setup.py` finishes as expected with no errors. I also update `setup.py` to add our README to our PyPI page.

Differential Revision: D29292956

fbshipit-source-id: e07f8b3d6d2d8bc9b21af166307f2ae00dbca663

* Update setup.py

Co-authored-by: Zoe Papakipos <[email protected]>