From e13035af7188b1e80df2f5221e94cd2f737af7e2 Mon Sep 17 00:00:00 2001 From: seranus Date: Thu, 9 Dec 2021 13:58:37 +0100 Subject: [PATCH 1/2] removed trailing comma --- models/Model_Quick96/config_schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/Model_Quick96/config_schema.json b/models/Model_Quick96/config_schema.json index b1d2239..c945a9b 100644 --- a/models/Model_Quick96/config_schema.json +++ b/models/Model_Quick96/config_schema.json @@ -12,7 +12,7 @@ } }, "required": [ - "batch_size", + "batch_size" ], "title": "dfl_config" } From 57263357f285d86ddc926d030623fd09e55b80be Mon Sep 17 00:00:00 2001 From: Jan Date: Thu, 9 Dec 2021 16:05:39 +0100 Subject: [PATCH 2/2] bug fix: added warp again --- samplelib/SampleProcessor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samplelib/SampleProcessor.py b/samplelib/SampleProcessor.py index 7fb8e00..e1957e7 100644 --- a/samplelib/SampleProcessor.py +++ b/samplelib/SampleProcessor.py @@ -266,6 +266,8 @@ class SampleProcessor(object): img_v = np.clip (img_v + (rnd_state.random()-0.5)*a, 0, 1 ) img = np.clip( cv2.cvtColor(cv2.merge([img_h, img_s, img_v]), cv2.COLOR_HSV2BGR) , 0, 1 ) + img = imagelib.warp_by_params (warp_params, img, warp, transform, can_flip=True, border_replicate=border_replicate) + img = np.clip(img.astype(np.float32), 0, 1) # Transform from BGR to desired channel_type if channel_type == SPCT.BGR: