fix SampleProcessor

This commit is contained in:
iperov 2021-08-11 10:06:18 +04:00
parent 4581d48ff0
commit c8e6f23a31

View file

@ -89,7 +89,8 @@ class SampleProcessor(object):
resolution = opts.get('resolution', None)
if resolution is None:
continue
params_per_resolution[resolution] = imagelib.gen_warp_params(resolution,
if resolution not in params_per_resolution:
params_per_resolution[resolution] = imagelib.gen_warp_params(resolution,
sample_process_options.random_flip,
rotation_range=sample_process_options.rotation_range,
scale_range=sample_process_options.scale_range,