audio2midi 0.10.0__tar.gz → 0.11.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: audio2midi
3
- Version: 0.10.0
3
+ Version: 0.11.0
4
4
  Summary: Audio To Midi
5
5
  Author-email: dummyjenil <dummyjenil@gmail.com>
6
6
  Provides-Extra: all
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "audio2midi"
3
- version = "0.10.0"
3
+ version = "0.11.0"
4
4
  description = "Audio To Midi"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -913,7 +913,8 @@ class Crepe():
913
913
  inputs = batch[0].to(device)
914
914
  outputs = self.model(inputs)
915
915
  all_outputs.append(outputs.cpu())
916
- progress_callback(i,total_batch)
916
+ if progress_callback:
917
+ progress_callback(i,total_batch)
917
918
  return torch.cat(all_outputs, dim=0)
918
919
 
919
920
  def model_predict(self,audio:np.ndarray,viterbi, center, step_size,progress_callback,batch_size):
File without changes
File without changes
File without changes