mirror of
https://github.com/k4yt3x/video2x.git
synced 2026-03-13 13:27:30 +08:00
fixed upscaler diff threshold bug
This commit is contained in:
@@ -56,6 +56,11 @@ class Interpolator(multiprocessing.Process):
|
||||
time.sleep(0.1)
|
||||
continue
|
||||
|
||||
# if image0 is None, image1 is the first frame
|
||||
# skip this round
|
||||
if image0 is None:
|
||||
continue
|
||||
|
||||
difference = ImageChops.difference(image0, image1)
|
||||
difference_stat = ImageStat.Stat(difference)
|
||||
difference_ratio = (
|
||||
|
||||
Reference in New Issue
Block a user