From 4aa33d3ba8f5f6f3b2a266fb25a985c64d149560 Mon Sep 17 00:00:00 2001 From: iperov Date: Thu, 12 Aug 2021 14:37:57 +0400 Subject: [PATCH] _ --- core/imagelib/warp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/imagelib/warp.py b/core/imagelib/warp.py index fe07a0a..ae38668 100644 --- a/core/imagelib/warp.py +++ b/core/imagelib/warp.py @@ -69,14 +69,14 @@ def gen_pts(W, H, rnd_state=None): if rnd_state is None: rnd_state = np.random - min_pts, max_pts = 4, 16 + min_pts, max_pts = 4, 8 n_pts = rnd_state.randint(min_pts, max_pts) min_radius_per = 0.00 max_radius_per = 0.10 pts = [] - for i in range(max_pts): + for i in range(n_pts): while True: x, y = rnd_state.randint(W), rnd_state.randint(H) rad = min_radius_per + rnd_state.rand()*(max_radius_per-min_radius_per)