issue #104 fix attempt
parent
9e08b4c7d3
commit
00fbf01831
|
|
@ -87,7 +87,7 @@ def start_process(*args):
|
|||
utils.set_CNs_input_image(args_dict, Image.fromarray(curr_video_frame))
|
||||
|
||||
processed_frames, _, _, _ = utils.txt2img(args_dict)
|
||||
processed_frame = np.array(processed_frames[0])
|
||||
processed_frame = np.array(processed_frames[0])[...,:3]
|
||||
processed_frame = np.clip(processed_frame, 0, 255).astype(np.uint8)
|
||||
init_frame = processed_frame.copy()
|
||||
|
||||
|
|
@ -153,7 +153,7 @@ def start_process(*args):
|
|||
utils.set_CNs_input_image(args_dict, Image.fromarray(curr_video_frame))
|
||||
|
||||
processed_frames, _, _, _ = utils.img2img(args_dict)
|
||||
processed_frame = np.array(processed_frames[0])
|
||||
processed_frame = np.array(processed_frames[0])[...,:3]
|
||||
processed_frame = skimage.exposure.match_histograms(processed_frame, init_frame, channel_axis=-1)
|
||||
processed_frame = np.clip(processed_frame, 0, 255).astype(np.uint8)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue