Upgraded to TF version 1.13.2
Removed the wait at first launch for most graphics cards. Increased speed of training by 10-20%, but you have to retrain all models from scratch. SAEHD: added option 'use float16' Experimental option. Reduces the model size by half. Increases the speed of training. Decreases the accuracy of the model. The model may collapse or not train. Model may not learn the mask in large resolutions. true_face_training option is replaced by "True face power". 0.0000 .. 1.0 Experimental option. Discriminates the result face to be more like the src face. Higher value - stronger discrimination. Comparison - https://i.imgur.com/czScS9q.png
This commit is contained in:
@@ -101,7 +101,7 @@ def denoise_image_sequence( input_dir, ext=None, factor=None ):
|
||||
kwargs = {}
|
||||
if ext == 'jpg':
|
||||
kwargs.update ({'q:v':'2'})
|
||||
|
||||
|
||||
job = ( ffmpeg
|
||||
.input(str ( input_path / ('%5d.'+ext) ) )
|
||||
.filter("hqdn3d", factor, factor, 5,5)
|
||||
@@ -174,7 +174,7 @@ def video_from_sequence( input_dir, output_file, reference_file=None, ext=None,
|
||||
input_image_paths = pathex.get_image_paths(input_path)
|
||||
|
||||
i_in = ffmpeg.input('pipe:', format='image2pipe', r=fps)
|
||||
|
||||
|
||||
output_args = [i_in]
|
||||
|
||||
if ref_in_a is not None:
|
||||
@@ -200,14 +200,14 @@ def video_from_sequence( input_dir, output_file, reference_file=None, ext=None,
|
||||
|
||||
job = ( ffmpeg.output(*output_args, **output_kwargs).overwrite_output() )
|
||||
|
||||
try:
|
||||
try:
|
||||
job_run = job.run_async(pipe_stdin=True)
|
||||
|
||||
|
||||
for image_path in input_image_paths:
|
||||
with open (image_path, "rb") as f:
|
||||
image_bytes = f.read()
|
||||
image_bytes = f.read()
|
||||
job_run.stdin.write (image_bytes)
|
||||
|
||||
|
||||
job_run.stdin.close()
|
||||
job_run.wait()
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user