Skip to content

Commit

Permalink
Merge 76b69a2 into 10198b7
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanxingql authored Mar 23, 2023
2 parents 10198b7 + 76b69a2 commit 9b611f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mmedit/models/editors/tof/tof_vfi_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ def forward(self, imgs):
flow_10 = self.spynet(imgs[:, 0], imgs[:, 1]).permute(0, 2, 3, 1)
flow_01 = self.spynet(imgs[:, 1], imgs[:, 0]).permute(0, 2, 3, 1)

wrap_frame0 = flow_warp(imgs[:, 0], flow_01 / 2)
wrap_frame1 = flow_warp(imgs[:, 1], flow_10 / 2)
warp_frame0 = flow_warp(imgs[:, 0], flow_01 / 2)
warp_frame1 = flow_warp(imgs[:, 1], flow_10 / 2)

wrap_frames = torch.stack([wrap_frame0, wrap_frame1], dim=1)
output = self.resnet(wrap_frames)
warp_frames = torch.stack([warp_frame0, warp_frame1], dim=1)
output = self.resnet(warp_frames)

return output

Expand Down

0 comments on commit 9b611f8

Please sign in to comment.