GraXpert icon indicating copy to clipboard operation
GraXpert copied to clipboard

Mac AI models 3.x fail - Error compiling model

Open notnicehat opened this issue 8 months ago • 1 comments

Mac user here with version 3.0.2 - attempting to use any of the 3.x Denoise AI models (3.0.0, 3.0.1, 3.0.2) result in an error. I can use the 2.x AI models for denoise, but I'm not sure why it's not working. I cleared the 3.x models out and ran a denoise which downloaded the 3.0.2 model then attempted to denoise and fails.

Screenshot of the ~/Library/ApplicationSupport/GraXpert/denoise-ai-models folder - model.onnx is present Screenshot 2024-07-03 at 12 29 27 PM

Log included - I selected 3.0.2 and it downloads the new model and fails upon denoising: graxpert.log

2024-07-03 12:26:27,315 MainProcess root INFO Progress: 100% 2024-07-03 12:26:28,873 MainProcess root INFO Starting denoising 2024-07-03 12:26:30,099 MainProcess root ERROR [ONNXRuntimeError] : 1 : FAIL : Error compiling model: compiler error: Espresso exception: "Invalid blob shape": generic_elementwise_kernel: cannot broadcast: (1, 300, 1, 1) (1, 123, 1, 1) Traceback (most recent call last): File "graxpert/application/app.py", line 350, in on_denoise_request File "graxpert/denoising.py", line 70, in denoise File "onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in init File "onnxruntime/capi/onnxruntime_inference_collection.py", line 483, in _create_inference_session onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Error compiling model: compiler error: Espresso exception: "Invalid blob shape": generic_elementwise_kernel: cannot broadcast: (1, 300, 1, 1) (1, 123, 1, 1)

notnicehat avatar Jul 03 '24 19:07 notnicehat