Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ RUN pip install flashtext && \
pip install optuna && \
pip install chainercv && \
pip install plotly_express && \
pip install albumentations && \
/tmp/clean-layer.sh

# Tesseract and some associated utility packages
Expand Down
10 changes: 10 additions & 0 deletions tests/test_albumentations.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import unittest

import cv2
from albumentations import HorizontalFlip

class TestAlbumentations(unittest.TestCase):
def test_rotate(self):
image = cv2.imread('/input/tests/data/dot.png')
aug = HorizontalFlip(p=1)
image_rotated = aug(image=image)['image']