mirror of
https://github.com/Laurent2916/REVA-QCAV.git
synced 2024-11-09 15:02:03 +00:00
fix: bad loop condition
Former-commit-id: 71677d5f1a37b742985f4335c6dc1c476a82ba48 [formerly df8e6e36e785f07970d47be9183bbab5ac386e01] Former-commit-id: 1162f7d0a8eac822fbd2e3f38edd2f2c8a81124f
This commit is contained in:
parent
3056ebc498
commit
3e335fbcb5
|
@ -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])
|
||||
|
||||
|
|
Loading…
Reference in a new issue