mirror of
https://github.com/hzwer/ECCV2022-RIFE.git
synced 2026-02-24 04:19:41 +01:00
Kill warning
This commit is contained in:
@@ -36,8 +36,8 @@ while success:
|
||||
I1 = torch.from_numpy(np.transpose(frame, (2,0,1)).astype("float32") / 255.).to(device).unsqueeze(0)
|
||||
I0 = F.pad(I0, padding)
|
||||
I1 = F.pad(I1, padding)
|
||||
if (F.interpolate(I0, (16, 16), mode='bilinear')
|
||||
- F.interpolate(I1, (16, 16), mode='bilinear')).abs().mean() > 0.2:
|
||||
if (F.interpolate(I0, (16, 16), mode='bilinear', recompute_scale_factor=False)
|
||||
- F.interpolate(I1, (16, 16), mode='bilinear', recompute_scale_factor=False)).abs().mean() > 0.2:
|
||||
mid = lastframe
|
||||
else:
|
||||
mid = model.inference(I0, I1)
|
||||
|
||||
Reference in New Issue
Block a user