Don't force histogram matching

from #68 to address #29

If you'll have problems with reproducibility, you can turn it back with webui's settings

Co-Authored-By: Robin Fernandes <robin@atlassian.com>
fixing-noise-and-blur
kabachuha 2022-11-04 20:06:22 +03:00
parent c4451dda37
commit 64b5988181
1 changed files with 2 additions and 1 deletions

View File

@ -131,7 +131,8 @@ def generate(args, root, frame = 0, return_sample=False):
p.cfg_scale = args.scale
# FIXME better color corrections as match histograms doesn't seem to be fully working
if root.color_corrections is not None:
p.color_corrections = root.color_corrections
if opts.img2img_color_correction:
root.color_corrections = [processing.setup_color_correction(root.first_frame)]
p.outpath_samples = root.outpath_samples
p.outpath_grids = root.outpath_samples