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

Can't convert model(.h5) to onnx format #247

Open
Nand7773 opened this issue Dec 15, 2023 · 0 comments
Open

Can't convert model(.h5) to onnx format #247

Nand7773 opened this issue Dec 15, 2023 · 0 comments

Comments

@Nand7773
Copy link

I'm getting this error when running

export TF_KERAS=1

python keras_to_onnx.py

--keras_model_file="path/to/keras/model.h5"
--output_file="path/to/save/model.onnx"
--op_set=11

error is:- NameError: Exception encountered when calling layer "yolo_loss" (type Lambda).
name 'K' is not defined

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

1 participant