-
Notifications
You must be signed in to change notification settings - Fork 152
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
Add CLI tool for exporting ONNX models #175
Conversation
Codecov Report
@@ Coverage Diff @@
## master #175 +/- ##
=======================================
Coverage 96.16% 96.16%
=======================================
Files 10 10
Lines 600 600
=======================================
Hits 577 577
Misses 23 23
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
@zhiqwang @runrunrun1994 hello, it probably would be good if you add a feature for exporting onnx custom models, not only pretrained on coco dataset. I guess you should add something like |
Hi @itsnine @runrunrun1994 , This proposal is very good, because the trainer of from yolort.models import yolov5s
# the following 'yolov5s.pt' is downloaded from https://github.com/ultralytics/yolov5/releases/download/v4.0/yolov5s.pt
args.checkpoint_path = 'yolov5s.pt'
model = yolov5s(num_classes=args.num_classes, score_thresh=args.score_thresh, ...)
model.load_from_yolov5(args.checkpoint_path)
model.eval()
img_path = 'test/assets/bus.jpg'
results = model.predict(img_path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @runrunrun1994 , Thanks for your contributions here. I left some comments, let me know your thoughts about these.
Signed-off-by: runrunrun1994 <[email protected]>
Signed-off-by: runrunrun1994 <[email protected]>
Signed-off-by: runrunrun1994 <[email protected]>
Signed-off-by: runrunrun1994 <[email protected]>
Signed-off-by: runrunrun1994 [email protected]