1
0
Fork 0
mirror of synced 2024-05-17 03:12:18 +12:00

Use bilinear instead of bicubic beacuse of overshoot

This commit is contained in:
nagadomi 2016-10-22 15:11:05 +09:00
parent b066761cdc
commit 61aeb46303

View file

@ -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)