Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onnx / ORT 1.9 Error #27

Open
Adrianwgn opened this issue Sep 20, 2023 · 1 comment
Open

onnx / ORT 1.9 Error #27

Adrianwgn opened this issue Sep 20, 2023 · 1 comment

Comments

@Adrianwgn
Copy link

Hi, I would love to use your addon, but unfortunately i always get the same error.
I have tried running Blender as admin, installing Blender, tried different versions of blender (3.4 and 3.6.2) and deepbump (v7 and v6) but somehow i always get the error:

I dont know much about python and google wasnt able to help me.
Am I doing something wrong? How can i fix this?
Thanks for your help! :)

Screenshot (1)

@Bonitodelcapo
Copy link

Bonitodelcapo commented Sep 21, 2023

As stated in the error and in the official ONNX runtime python API you need to explicitly define an execution provider. to do this change the code in the module_color_to_normals.py file as follows:
`
#ort_session = ort.InferenceSession(addon_path + "/deepbump256.onnx")

options = ort.SessionOptions()
options.enable_profiling=True
ort_session = ort.InferenceSession(
        addon_path + "/deepbump256.onnx",
        sess_options=options,
        providers=['CUDAExecutionProvider', 'CPUExecutionProvider'])

`
Another way would be to explicitly download an older version of the onnxruntime package using pip. Beware that you explicitly need to use the blender python interpreter.
To clear confusion about blender's python interpreter here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants