Skip to content

Commit 0b21f50

Browse files
committed
PyTorch fix.
1 parent ed179a4 commit 0b21f50

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Augmentor/Pipeline.py

+1
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ def _transform(image):
527527
for operation in self.operations:
528528
r = round(random.uniform(0, 1), 1)
529529
if r <= operation.probability:
530+
image = [image]
530531
image = operation.perform_operation(image)
531532

532533
return image

tests/test_torch_transform.py

-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ def test_torch_transform():
2323
])
2424

2525
assert red != transforms(red)
26-
red = [red]
2726
assert g.perform_operation(red) == transforms(red)

0 commit comments

Comments
 (0)