You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm struggling to get this to work.
First of, I never used python before but I think I managed to get it all up and running.
However I keep getting this out of memory error.
Simple question; do I need more memory =))
This is the end result:
C:\Users\macsh\AppData\Local\Programs\Thonny\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py:56: UserWarning: Specified provider 'CUDAExecutionProvider' is not in available provider names.Available providers: 'CPUExecutionProvider'
"Available providers: '{}'".format(name, ", ".join(available_provider_names)))
Traceback (most recent call last):
File "C:\Users\macsh\AppData\Local\Programs\Thonny\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Users\macsh\AppData\Local\Programs\Thonny\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\macsh\AppData\Local\Programs\Thonny\Scripts\oemer.exe_main.py", line 7, in
File "C:\Users\macsh\AppData\Local\Programs\Thonny\lib\site-packages\oemer\ete.py", line 261, in main
mxl_path = extract(args)
File "C:\Users\macsh\AppData\Local\Programs\Thonny\lib\site-packages\oemer\ete.py", line 118, in extract
staff, symbols, stems_rests, notehead, clefs_keys = generate_pred(str(img_path))
File "C:\Users\macsh\AppData\Local\Programs\Thonny\lib\site-packages\oemer\ete.py", line 47, in generate_pred
staff_symbols_map, _ = inference(os.path.join(MODULE_PATH, "checkpoints/unet_big"), img_path)
File "C:\Users\macsh\AppData\Local\Programs\Thonny\lib\site-packages\oemer\inference.py", line 53, in inference
image = cv2.imread(img_path)
cv2.error: OpenCV(4.5.3) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-1gnnrwcf\opencv\modules\core\src\alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 673442055 bytes in function 'cv::OutOfMemoryError'
The text was updated successfully, but these errors were encountered:
Yah, just checked. The image is about 640 Mb.
Doesn't seem that large, in todays day and age.
It was a standard PDF image pull.
What would you recommend as optimal size for the input image size?
Highest regards,
Mac
Dear WhiteBreeze,
I'm struggling to get this to work.
First of, I never used python before but I think I managed to get it all up and running.
However I keep getting this out of memory error.
Simple question; do I need more memory =))
This is the end result:
C:\Users\macsh\AppData\Local\Programs\Thonny\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py:56: UserWarning: Specified provider 'CUDAExecutionProvider' is not in available provider names.Available providers: 'CPUExecutionProvider'
"Available providers: '{}'".format(name, ", ".join(available_provider_names)))
Traceback (most recent call last):
File "C:\Users\macsh\AppData\Local\Programs\Thonny\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Users\macsh\AppData\Local\Programs\Thonny\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\macsh\AppData\Local\Programs\Thonny\Scripts\oemer.exe_main.py", line 7, in
File "C:\Users\macsh\AppData\Local\Programs\Thonny\lib\site-packages\oemer\ete.py", line 261, in main
mxl_path = extract(args)
File "C:\Users\macsh\AppData\Local\Programs\Thonny\lib\site-packages\oemer\ete.py", line 118, in extract
staff, symbols, stems_rests, notehead, clefs_keys = generate_pred(str(img_path))
File "C:\Users\macsh\AppData\Local\Programs\Thonny\lib\site-packages\oemer\ete.py", line 47, in generate_pred
staff_symbols_map, _ = inference(os.path.join(MODULE_PATH, "checkpoints/unet_big"), img_path)
File "C:\Users\macsh\AppData\Local\Programs\Thonny\lib\site-packages\oemer\inference.py", line 53, in inference
image = cv2.imread(img_path)
cv2.error: OpenCV(4.5.3) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-1gnnrwcf\opencv\modules\core\src\alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 673442055 bytes in function 'cv::OutOfMemoryError'
The text was updated successfully, but these errors were encountered: