-
Notifications
You must be signed in to change notification settings - Fork 34
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
how to removed the Slice operation and replaced the input with a downscaled image and stacked it to match the channel number? #2
Comments
more details needed as you |
ONNX converts the operation of line 87 in common.py
into a slice operation with steps. The easiest way to eliminate the slice operation is to change this line into:
It is also possible to change this operation into a convolution operation. |
Thanks a lot |
Hi, |
Of course, you can remove the slice operation without retraining.
…On Thu, Jul 9, 2020, 16:17 tadejj ***@***.***> wrote:
Hi,
Can I remove slice operation for trained model? I have trained my custom
dataset, and converted it to pytorchscript. But the result is afwul (all
boxes are wrong). Can I use models/onnx_export.py from ultralytics for my
model and remove slice operation without retraining?
Thank you so much
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABA7OF5ZBMCCCBZNXUXWFPTR2V4JDANCNFSM4OGM3S4A>
.
|
Thanks a lot! |
Hi,
Thanks for you work
i using my own trained model file will report error
Slice operation in .pt or in .onnx?
The text was updated successfully, but these errors were encountered: