misnaej commited on
Commit
902c8b9
1 Parent(s): e7e6c18

deactivate "regenerate if too long" for speed

Browse files
Files changed (1) hide show
  1. 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,