core.imagelib: update

This commit is contained in:
iperov 2021-04-10 09:58:14 +04:00
commit 243f73fafc
5 changed files with 201 additions and 19 deletions

View file

@ -2,7 +2,7 @@ import numpy as np
import cv2
from core import randomex
def gen_warp_params (w, flip, rotation_range=[-10,10], scale_range=[-0.5, 0.5], tx_range=[-0.05, 0.05], ty_range=[-0.05, 0.05], rnd_state=None ):
def gen_warp_params (w, flip=False, rotation_range=[-10,10], scale_range=[-0.5, 0.5], tx_range=[-0.05, 0.05], ty_range=[-0.05, 0.05], rnd_state=None ):
if rnd_state is None:
rnd_state = np.random