Merge pull request #3 from a1lazydog/dev
Fix if the prompts is larger than the number of keyframes and looping…
This commit is contained in:
@@ -471,7 +471,7 @@ class NormalizedAmplitudeDrivenString:
|
||||
|
||||
keyframes = self.get_keyframes(normalized_amp, triggering_threshold)
|
||||
|
||||
if loop:
|
||||
if loop and len(prompts) < len(keyframes): # Only loop if there's more prompts than keyframes
|
||||
i = 0
|
||||
result = []
|
||||
for _ in range(len(keyframes) // len(prompts)):
|
||||
|
||||
Reference in New Issue
Block a user