fix: bad loop condition

Former-commit-id: 71677d5f1a37b742985f4335c6dc1c476a82ba48 [formerly df8e6e36e785f07970d47be9183bbab5ac386e01]
Former-commit-id: 1162f7d0a8eac822fbd2e3f38edd2f2c8a81124f
This commit is contained in:
Laurent Fainsin 2022-06-30 15:54:36 +02:00
parent 3056ebc498
commit 3e335fbcb5

View file

@ -119,7 +119,7 @@ class RandomPaste(A.DualTransform):
# generate some positions
positions = []
NB = rd.randint(1, self.nb)
while len(positions) <= NB:
while len(positions) < NB:
x = rd.randint(0, target_shape[0] - paste_shape[0])
y = rd.randint(0, target_shape[1] - paste_shape[1])