few comments for the future
parent
ba3c17ef7e
commit
89ba89d949
|
|
@ -200,4 +200,6 @@ def start_process(*args):
|
|||
warped_styled_frame_ = gr.Image.update()
|
||||
processed_frame = gr.Image.update()
|
||||
|
||||
# print('TOTAL TIME:', int(time.time() - processing_start_time))
|
||||
|
||||
yield 'done', curr_frame, occlusion_mask, warped_styled_frame_, processed_frame, output_video_name, gr.Button.update(interactive=True), gr.Button.update(interactive=False)
|
||||
|
|
@ -189,6 +189,7 @@ def start_process(*args):
|
|||
alpha_mask = alpha_mask + sdcn_anim_tmp.prev_frame_alpha_mask * 0.5
|
||||
sdcn_anim_tmp.prev_frame_alpha_mask = alpha_mask
|
||||
|
||||
# alpha_mask = np.round(alpha_mask * 8) / 8 #> 0.3
|
||||
alpha_mask = np.clip(alpha_mask, 0, 1)
|
||||
occlusion_mask = np.clip(alpha_mask * 255, 0, 255).astype(np.uint8)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue