mirror of
https://github.com/hzwer/ECCV2022-RIFE.git
synced 2026-02-24 04:19:41 +01:00
Fix montage
This commit is contained in:
@@ -47,13 +47,13 @@ while success:
|
||||
mid = model.inference(I0, I1)
|
||||
mid = ((mid[0].cpu().detach().numpy().transpose(1, 2, 0))*255.).astype('uint8')
|
||||
if args.montage:
|
||||
output.write(torch.cat((lastframe, lastframe), 2))
|
||||
output.write(torch.cat((lastframe, mid[:h, :w]), 2))
|
||||
output.write(np.concatenate((lastframe, lastframe), 1))
|
||||
output.write(np.concatenate((lastframe, mid[:h, :w]), 1))
|
||||
else:
|
||||
output.write(lastframe)
|
||||
output.write(mid[:h, :w])
|
||||
if args.montage:
|
||||
output.write(torch.cat((frame, frame), 2))
|
||||
output.write(np.concatenate((frame, frame), 1))
|
||||
else:
|
||||
output.write(frame)
|
||||
output.release()
|
||||
|
||||
Reference in New Issue
Block a user