mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
interpolate dont skip duplicate frames
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -94,7 +94,7 @@ def interpolate(images: list, count: int = 2, scale: float = 1.0, pad: int = 1,
|
||||
ssim = ssim_matlab(I0_small[:, :3], I1_small[:, :3])
|
||||
if ssim > 0.99: # skip duplicate frames
|
||||
duplicate += 1
|
||||
continue
|
||||
# continue
|
||||
if ssim < change:
|
||||
output = []
|
||||
for _i in range(pad): # fill frames if change rate is above threshold
|
||||
|
||||
Reference in New Issue
Block a user