mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-08-09 04:12:42 +02:00
tiling for enhancement: ensure precision by rounding
This commit is contained in:
parent
b2777a2562
commit
5f4e4fb8bd
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ def do_prediction(
|
|||
img_patch[:] = 0
|
||||
|
||||
if is_enhancement:
|
||||
seg = (prediction * 255).astype(np.uint8)
|
||||
seg = np.round(prediction * 255).astype(np.uint8)
|
||||
else:
|
||||
seg = np.argmax(prediction, axis=2).astype(np.uint8)
|
||||
if thresholding_for_some_classes:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue