diff --git a/augly/tests/video_tests/base_unit_test.py b/augly/tests/video_tests/base_unit_test.py index c0669d39..bc67a0da 100644 --- a/augly/tests/video_tests/base_unit_test.py +++ b/augly/tests/video_tests/base_unit_test.py @@ -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() diff --git a/augly/video/augmenters/cv2/base_augmenter.py b/augly/video/augmenters/cv2/base_augmenter.py index 826c8911..ada7cc1a 100644 --- a/augly/video/augmenters/cv2/base_augmenter.py +++ b/augly/video/augmenters/cv2/base_augmenter.py @@ -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 @@ -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") diff --git a/augly/video/augmenters/cv2/dots.py b/augly/video/augmenters/cv2/dots.py index 17cf9ac4..624b0905 100644 --- a/augly/video/augmenters/cv2/dots.py +++ b/augly/video/augmenters/cv2/dots.py @@ -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 diff --git a/augly/video/augmenters/cv2/shapes.py b/augly/video/augmenters/cv2/shapes.py index 73733a94..ce5b022f 100644 --- a/augly/video/augmenters/cv2/shapes.py +++ b/augly/video/augmenters/cv2/shapes.py @@ -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 diff --git a/augly/video/augmenters/cv2/text.py b/augly/video/augmenters/cv2/text.py index 98a13b8a..9aa339ed 100644 --- a/augly/video/augmenters/cv2/text.py +++ b/augly/video/augmenters/cv2/text.py @@ -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