Browse Source

Fix denoising benchmark

nagadomi 9 năm trước cách đây
mục cha
commit
dde2cdf294
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tools/benchmark.lua

+ 1 - 1
tools/benchmark.lua

@@ -76,7 +76,7 @@ local function transform_jpeg(x, opt)
       jpeg:fromBlob(blob, len)
       x = jpeg:toTensor("byte", "RGB", "DHW")
    end
-   return x
+   return iproc.byte2float(x)
 end
 local function baseline_scale(x, filter)
    return iproc.scale(x,