-
Notifications
You must be signed in to change notification settings - Fork 417
Description
TypeError Traceback (most recent call last)
/tmp/ipython-input-1142371746.py in <cell line: 0>()
154 # dispatch to appropriate renderer
155 if anim_args.animation_mode == '2D' or anim_args.animation_mode == '3D':
--> 156 render_animation(root, anim_args, args, cond, uncond)
157 elif anim_args.animation_mode == 'Video Input':
158 render_input_video(root, anim_args, args, cond, uncond)
2 frames
/content/deforum-stable-diffusion/helpers/render.py in render_animation(root, anim_args, args, cond_prompts, uncond_prompts)
442 color_match_sample = prev_img.copy()
443 else:
--> 444 prev_img = maintain_colors(prev_img, color_match_sample, anim_args.color_coherence)
445
446 # intercept and override to grayscale
/content/deforum-stable-diffusion/helpers/colors.py in maintain_colors(prev_img, color_match_sample, mode)
13 prev_img_lab = cv2.cvtColor(prev_img, cv2.COLOR_RGB2LAB)
14 color_match_lab = cv2.cvtColor(color_match_sample, cv2.COLOR_RGB2LAB)
---> 15 matched_lab = match_histograms(prev_img_lab, color_match_lab, multichannel=True)
16 return cv2.cvtColor(matched_lab, cv2.COLOR_LAB2RGB)
/usr/local/lib/python3.12/dist-packages/skimage/_shared/utils.py in fixed_func(*args, **kwargs)
436
437 if channel_axis is None:
--> 438 return func(*args, **kwargs)
439
440 # TODO: convert scalars to a tuple in anticipation of eventually
TypeError: match_histograms() got an unexpected keyword argument 'multichannel'