BreezeWhite/oemer

Code prints "Note 1 is not a valid note." and nothing more

mm3509 opened this issue · 4 comments

mm3509 commented

Describe the bug

On an ancient score sheet, the code prints Note 1 is not a valid note. and nothing more.

Input Image

ss015

Full Traceback

Here are the relevant lines:

$ oemer ss015.png 
2023-11-21 19:37:10 No checkpoint found in /opt/conda/envs/oemer/lib/python3.8/site-packages/oemer/checkpoints/unet_big/model.onnx
2023-11-21 19:37:10 Downloading checkpoints (1/4)
1st_model.onnx: 100% 70767752/70767752                    
2023-11-21 19:37:14 Downloading checkpoints (2/4)
1st_weights.h5: 100% 70977288/70977288                    
2023-11-21 19:37:17 Downloading checkpoints (3/4)
2nd_model.onnx: 100% 38448467/38448467                    
2023-11-21 19:37:18 Downloading checkpoints (4/4)
2nd_weights.h5: 100% 38570576/38570576                    
2023-11-21 19:37:20 Extracting staffline and symbols
/opt/conda/envs/oemer/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py:69: UserWarning: Specified provider 'CoreMLExecutionProvider' is not in available provider names.Available providers: 'TensorrtExecutionProvider, CUDAExecutionProvider, AzureExecutionProvider, CPUExecutionProvider'
  warnings.warn(
2023-11-21 19:37:20.750841571 [E:onnxruntime:Default, provider_bridge_ort.cc:1480 TryGetProviderInfo_CUDA] /onnxruntime_src/onnxruntime/core/session/provider_bridge_ort.cc:1193 onnxruntime::Provider& onnxruntime::ProviderLibrary::Get() [ONNXRuntimeError] : 1 : FAIL : Failed to load library libonnxruntime_providers_cuda.so with error: libcublasLt.so.11: cannot open shared object file: No such file or directory

2023-11-21 19:37:20.750882272 [W:onnxruntime:Default, onnxruntime_pybind_state.cc:747 CreateExecutionProviderInstance] Failed to create CUDAExecutionProvider. Please reference https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements to ensure all dependencies are met.
2330 1577
2023-11-21 19:38:38 Extracting layers of different symbols
2023-11-21 19:38:38.490073650 [E:onnxruntime:Default, provider_bridge_ort.cc:1480 TryGetProviderInfo_CUDA] /onnxruntime_src/onnxruntime/core/session/provider_bridge_ort.cc:1193 onnxruntime::Provider& onnxruntime::ProviderLibrary::Get() [ONNXRuntimeError] : 1 : FAIL : Failed to load library libonnxruntime_providers_cuda.so with error: libcublasLt.so.11: cannot open shared object file: No such file or directory

2023-11-21 19:38:38.490110416 [W:onnxruntime:Default, onnxruntime_pybind_state.cc:747 CreateExecutionProviderInstance] Failed to create CUDAExecutionProvider. Please reference https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements to ensure all dependencies are met.
2330 1577
2023-11-21 19:41:21 Dewarping
2023-11-21 19:41:29 Extracting stafflines
78 355 6
356 633 6
634 911 6
912 1189 6
1190 1467 6
1468 1745 6
1746 2300 6
2023-11-21 19:41:32 Extracting noteheads
2023-11-21 19:41:32 Analyzing notehead bboxes
2023-11-21 19:41:33 Instanitiating notes
2023-11-21 19:41:34 Grouping noteheads
2023-11-21 19:41:36 Extracting symbols
/opt/conda/envs/oemer/lib/python3.8/site-packages/sklearn/base.py:348: InconsistentVersionWarning: Trying to unpickle estimator SVC from version 1.2.0 when using version 1.3.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations
  warnings.warn(

...
/opt/conda/envs/oemer/lib/python3.8/site-packages/sklearn/base.py:348: InconsistentVersionWarning: Trying to unpickle estimator SVC from version 1.2.0 when using version 1.3.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations
  warnings.warn(
2023-11-21 19:41:47 Extracting rhythm types
2023-11-21 19:42:10 Building MusicXML document
2023-11-21 19:42:10 Note 1 is not a valid note.
$

Command You Execute

oemer ss015.png 

Did the command output the result MusicXML file?

No, it went straight to the command-line prompt, which is why I included the $ at the end of the traceback.

I have tried the provided image on colab, and oemer does go all the way to the end and shows the results though. I think the invalid note isn't the failure reason. It's somewhere else goes wrong.

You're right, it does run on Colab and on my machine too, in fact, and it saves a .musicxml file with the sheet music. I was surprised by the console error that I forgot to look for it. Thank you for your quick help and sorry for the inconvenience. Closing.