mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-16 10:03:41 -07:00
fix denoise_image_sequence
This commit is contained in:
parent
d897893fd5
commit
374d8c2388
1 changed files with 5 additions and 1 deletions
|
@ -98,10 +98,14 @@ def denoise_image_sequence( input_dir, ext=None, factor=None ):
|
|||
if factor is None:
|
||||
factor = np.clip ( io.input_int ("Denoise factor? (1-20 default:5) : ", 5), 1, 20 )
|
||||
|
||||
kwargs = {}
|
||||
if ext == 'jpg':
|
||||
kwargs.update ({'q:v':'2'})
|
||||
|
||||
job = ( ffmpeg
|
||||
.input(str ( input_path / ('%5d.'+ext) ) )
|
||||
.filter("hqdn3d", factor, factor, 5,5)
|
||||
.output(str ( input_path / ('%5d.'+ext) ) )
|
||||
.output(str ( input_path / ('%5d.'+ext) ), **kwargs )
|
||||
)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue