deactivate "regenerate if too long" for speed
Browse files- generate.py +1 -1
generate.py
CHANGED
@@ -230,7 +230,7 @@ class GenerateMidiText:
|
|
230 |
|
231 |
if not bar_count_checks and self.force_sequence_length:
|
232 |
# if the generated sequence is not the expected length
|
233 |
-
if failed > 1:
|
234 |
full_piece, bar_count_checks = forcing_bar_count(
|
235 |
input_prompt,
|
236 |
generated,
|
|
|
230 |
|
231 |
if not bar_count_checks and self.force_sequence_length:
|
232 |
# if the generated sequence is not the expected length
|
233 |
+
if failed > -1: # deactivated for speed
|
234 |
full_piece, bar_count_checks = forcing_bar_count(
|
235 |
input_prompt,
|
236 |
generated,
|