From e16e000dead2d3a84e8624ed975dec7aebdf493c Mon Sep 17 00:00:00 2001 From: xingren23 Date: Wed, 20 Mar 2024 16:11:35 +0800 Subject: [PATCH] fix: prompt_weight_1/2 type error --- BatchFuncs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BatchFuncs.py b/BatchFuncs.py index 28b82b2..2c8d5b0 100644 --- a/BatchFuncs.py +++ b/BatchFuncs.py @@ -102,16 +102,16 @@ def interpolate_prompt_series(animation_prompts, max_frames, start_frame, pre_te current_key = 0 next_key = 0 - if type(prompt_weight_1) in {int, float}: + if type(prompt_weight_1) in {int, float, np.float64}: prompt_weight_1 = tuple([prompt_weight_1] * max_frames) - if type(prompt_weight_2) in {int, float}: + if type(prompt_weight_2) in {int, float, np.float64}: prompt_weight_2 = tuple([prompt_weight_2] * max_frames) - if type(prompt_weight_3) in {int, float}: + if type(prompt_weight_3) in {int, float, np.float64}: prompt_weight_3 = tuple([prompt_weight_3] * max_frames) - if type(prompt_weight_4) in {int, float}: + if type(prompt_weight_4) in {int, float, np.float64}: prompt_weight_4 = tuple([prompt_weight_4] * max_frames) # For every keyframe prompt except the last