-
I am trying to convert to Onnx with Nms one custom model (yolov5s) but it seems that when I have the focus layer as first layer i get the following error :
I am using the code from here to export onnx. If I repeat the process with a newer yolov5 model (yolov5s6)(without the Focus layer) it works fine. Is there any way that I can make the convertion with this model? |
Beta Was this translation helpful? Give feedback.
Answered by
zhiqwang
Aug 11, 2022
Replies: 1 comment 4 replies
-
Hi @kelectro , Which model you're using now? You can specify the model = YOLOv5.load_from_yolov5(
model_path,
size=640,
size_divisible=32,
score_thresh=0.35,
nms_thresh=0.45,
version="r4.0",
) |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
zhiqwang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @kelectro , Which model you're using now?
You can specify the
version
parameter as follows if you're using v5.0 release.