Skip to content

Commit

Permalink
Fix Typos
Browse files Browse the repository at this point in the history
Summary: The linter check in the OSS repo found some typos we had -- fixing them: https://github.com/facebookresearch/AugLy/actions/runs/6641100806

Reviewed By: mayaliliya

Differential Revision: D50663068
  • Loading branch information
jbitton authored and facebook-github-bot committed Oct 26, 2023
1 parent 7c49a77 commit c7a0eaf
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions augly/tests/video_tests/base_unit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@

def are_equal_videos(a_path: str, b_path: str) -> bool:
hasher = hashlib.md5()
with open(a_path, "rb") as afile:
buf = afile.read()
with open(a_path, "rb") as a_file:
buf = a_file.read()
hasher.update(buf)
a_md5_hash = hasher.hexdigest()

hasher = hashlib.md5()
with open(b_path, "rb") as bfile:
buf = bfile.read()
with open(b_path, "rb") as b_file:
buf = b_file.read()
hasher.update(buf)
b_md5_hash = hasher.hexdigest()

Expand Down
4 changes: 2 additions & 2 deletions augly/video/augmenters/cv2/base_augmenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- Interface:
- `augment(self, video_temp_path: str, fps: float, **kwargs)`:
extracts frames from the video, and turns original set of frames into
augumented frames by mapping each of them using `apply_augmentation` operators.
augmented frames by mapping each of them using `apply_augmentation` operators.
the path to the temporary directory containing the augmented frames is returned
- Methods to override
Expand Down Expand Up @@ -99,7 +99,7 @@ def apply_augmentation(self, raw_frame: np.ndarray, **kwargs) -> np.ndarray:
@param raw_frame: raw, single RGB/Gray frame
@returns: the augumented frame
@returns: the augmented frame
"""
raise NotImplementedError("Implement apply_augmentation method")

Expand Down
2 changes: 1 addition & 1 deletion augly/video/augmenters/cv2/dots.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def apply_augmentation(self, raw_frame: np.ndarray, **kwargs) -> np.ndarray:
@param raw_frame: raw, single RGB/Gray frame
@returns: the augumented frame
@returns: the augmented frame
"""
assert (raw_frame.ndim == 3) and (
raw_frame.shape[2] == 3
Expand Down
2 changes: 1 addition & 1 deletion augly/video/augmenters/cv2/shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def apply_augmentation(self, raw_frame: np.ndarray, **kwargs) -> np.ndarray:
@param raw_frame: raw, single RGB/Gray frame
@returns: the augumented frame
@returns: the augmented frame
"""
assert (raw_frame.ndim == 3) and (
raw_frame.shape[2] == 3
Expand Down
2 changes: 1 addition & 1 deletion augly/video/augmenters/cv2/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def apply_augmentation(self, raw_frame: np.ndarray, **kwargs) -> np.ndarray:
@param raw_frame: raw, single RGB/Gray frame
@returns: the augumented frame
@returns: the augmented frame
"""
assert (raw_frame.ndim == 3) and (
raw_frame.shape[2] == 3
Expand Down

0 comments on commit c7a0eaf

Please sign in to comment.