Преглед изворни кода

Use bilinear instead of bicubic beacuse of overshoot

nagadomi пре 8 година
родитељ
комит
61aeb46303
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/iproc.lua

+ 1 - 1
lib/iproc.lua

@@ -184,7 +184,7 @@ function iproc.rotate(src, theta)
    local conversion
    src, conversion = iproc.byte2float(src)
    local dest = torch.Tensor():typeAs(src):resizeAs(src)
-   rotate_with_warp(src, dest, theta, 'bicubic')
+   rotate_with_warp(src, dest, theta, 'bilinear')
    dest:clamp(0, 1)
    if conversion then
       dest = iproc.float2byte(dest)