View Single Post
Old 8th April 2017, 23:54   #14  |  Link
Frechdachs
Registered User
 
Frechdachs's Avatar
 
Join Date: May 2014
Posts: 20
Quote:
Originally Posted by ChaosKing View Post
I also noticed something... there is detailmaskpre0, detailmaskpre1, detailmaskpre2 in mftoon, but it is not used anywhere in the script later and slows down by a factor of 10
When I uncomment the lines -> 13fps vs 150fps, same output. That's why the dboost parameter did nothing for me xD
Yes, the port to masktools2 is faulty, the detailmask evaluates to a sharpened version of the source clip which is obviously wrong. Apparently, in the past 11 years no one actually bothered to look at the code to see what this actually does.

Quick and dirty: Function
Can probably be simplified but I dont't feel like wasting any more time on this shitty function.

I looked at the function before the masktools2 port and fixed the detailmask. Use legacy=True to get the behaviour of v0.54, but this is not recommended. Actually, you shouldn't use this function at all.

Works on any bitdepth.

Last edited by Frechdachs; 9th April 2017 at 00:01.
Frechdachs is offline   Reply With Quote