mirror of
https://github.com/hzwer/ECCV2022-RIFE.git
synced 2025-12-16 16:37:51 +01:00
Update RIFE.py
This commit is contained in:
@@ -183,7 +183,7 @@ class Model:
|
|||||||
else:
|
else:
|
||||||
return pred
|
return pred
|
||||||
|
|
||||||
def inference(self, img0, img1):
|
def inference(self, img0, img1, scale=None):
|
||||||
imgs = torch.cat((img0, img1), 1)
|
imgs = torch.cat((img0, img1), 1)
|
||||||
flow, _ = self.flownet(torch.cat((img0, img1), 1))
|
flow, _ = self.flownet(torch.cat((img0, img1), 1))
|
||||||
return self.predict(imgs, flow, training=False)
|
return self.predict(imgs, flow, training=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user