minor fixes

dev
Alexey Borsky 2023-05-03 03:25:55 +03:00
parent 1b30464625
commit 907e270b38
3 changed files with 4 additions and 3 deletions

View File

@ -12,4 +12,4 @@ with open(req_file) as file:
if not launch.is_installed(lib):
launch.run_pip(f"install {lib}", f"text2video requirement: {lib}")
launch.run_pip(f"install {lib}", f"SD-CN-Animation requirement: {lib}")

View File

@ -48,13 +48,13 @@ All examples you can see here are originally generated at 512x512 resolution usi
## Installing the extension
~TODO~
*TODO*
Download RAFT 'raft-things.pth' from here: [RAFT link] and place it into 'stable-diffusion-webui/models/RAFT/' folder.
All generated video will be saved into 'outputs/sd-cn-animation' folder.
## Last version changes: v0.6
* Complete rewrite of the project to make it possible to install as a Automatic1111/Web-ui extension.
* Complete rewrite of the project to make it possible to install as an Automatic1111/Web-ui extension.
* Added separate flag '-rb' for background removal process at the flow computation stage in the compute_flow.py script.
* Added flow normalization before rescaling it, so the magnitude of the flow computed correctly at the different resolution.
* Less ghosting and color change in vid2vid mode

View File

@ -167,6 +167,7 @@ def start_process(*args):
processed_frames, _, _, _ = modules.img2img.img2img(*args_list) #img2img(args_dict)
processed_frame = np.array(processed_frames[0])
processed_frame = skimage.exposure.match_histograms(processed_frame, curr_frame, multichannel=False, channel_axis=-1)
processed_frame = np.clip(processed_frame, 0, 255).astype(np.uint8)
#print('Processed frame ', 0)