-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
Description
synopsys-caffe/src/caffe/layers/resample_layer.cu
Lines 62 to 63 in b3c4a6b
| float x_in = x_out * fx + fy / 2.0f - 0.5f; | |
| float y_in = y_out * fy + fx / 2.0f - 0.5f; |
According to bilinear interpolation formula should be:
x_in = (x_out + 0.5) * fx - 0.5
y_in = (y_out + 0.5) * fy - 0.5