Skip to content

Commit

Permalink
Update rife.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise authored Jan 12, 2025
1 parent afdeaed commit 5eea93c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rife.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2500,7 +2500,7 @@ int RIFE::process_v4(const ncnn::Mat& in0image, const ncnn::Mat& in1image, float
int w_padded, h_padded;

w_padded = (w + padding - 1) / padding * padding;
h_padded = (h + padding) / padding * padding;
h_padded = (h + padding - 1) / padding * padding;

const size_t in_out_tile_elemsize = opt.use_fp16_storage ? 2u : 4u;

Expand Down Expand Up @@ -3231,7 +3231,7 @@ int RIFE::process_v4_cpu(const ncnn::Mat& in0image, const ncnn::Mat& in1image, f
// pad to 32n
int w_padded, h_padded;
w_padded = (w + padding - 1) / padding * padding;
h_padded = (h + padding) / padding * padding;
h_padded = (h + padding - 1) / padding * padding;

ncnn::Mat in0;
ncnn::Mat in1;
Expand Down

0 comments on commit 5eea93c

Please sign in to comment.