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

Support skipping preprocess when exporting ONNX #193

Merged
merged 5 commits into from
Oct 7, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Cleanup get_yolov5_size
  • Loading branch information
zhiqwang committed Oct 7, 2021
commit 5421eea92492bbdf597dbf022cd96628f499e215
13 changes: 6 additions & 7 deletions yolort/v5/helper.py
Original file line number Diff line number Diff line change
@@ -30,15 +30,14 @@ def add_yolov5_context():
def get_yolov5_size(depth_multiple, width_multiple):
if depth_multiple == 0.33 and width_multiple == 0.5:
return "s"
elif depth_multiple == 0.67 and width_multiple == 0.75:
if depth_multiple == 0.67 and width_multiple == 0.75:
return "m"
elif depth_multiple == 1.0 and width_multiple == 1.0:
if depth_multiple == 1.0 and width_multiple == 1.0:
return "l"
else:
raise NotImplementedError(
f"Currently does't support architecture with depth: {depth_multiple} "
f"and {width_multiple}, fell free to create a ticket labeled enhancement to us"
)
raise NotImplementedError(
f"Currently does't support architecture with depth: {depth_multiple} "
f"and {width_multiple}, fell free to create a ticket labeled enhancement to us"
)


def load_yolov5_model(