Skip to content

Cant convert to onnx yolov5s model with Focus layer #456

Answered by zhiqwang
kelectro asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kelectro , Which model you're using now?

You can specify the version parameter as follows if you're using v5.0 release.

model = YOLOv5.load_from_yolov5(
    model_path,
    size=640,
    size_divisible=32,
    score_thresh=0.35,
    nms_thresh=0.45,
    version="r4.0",
)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@kelectro
Comment options

@zhiqwang
Comment options

@kelectro
Comment options

@zhiqwang
Comment options

Answer selected by zhiqwang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants