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 trained my model using yolov5 and with ultralitics/yolov5 github repository converted it to a onnx model. I want to convert it to a h5 keras model but the code throws an exception.
`import onnx2keras
from onnx2keras import onnx_to_keras
import keras
import onnx
I trained my model using yolov5 and with ultralitics/yolov5 github repository converted it to a onnx model. I want to convert it to a h5 keras model but the code throws an exception.
`import onnx2keras
from onnx2keras import onnx_to_keras
import keras
import onnx
onnx_model = onnx.load('best.onnx')
k_model = onnx_to_keras(onnx_model,['images'],name_policy='renumerate')
keras.models.save_model(k_model,'kerasModel.h5',overwrite=True,include_optimizer=True)`
Can someone tell me what can I do to fix this?
The text was updated successfully, but these errors were encountered: