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
ONNX Model #21
Comments
Hi, have you tried running the same file for the original MMSegmentation code? |
Sorry I don't understand. Can you please tell me which is the original code? This repo was linked in the paper. I tried to add the torch.roll op found here but the conversion still failed. This step helped to resolve the previous error but I got this error instead:
My goal is to build a TensorRT engine for this model. This is my first time using the mmcv tools. Some more clarification and help would be greatly appreciated. I'm using: |
We have built the SeMask-FPN on top of the original MMSegmentation repo found here: https://github.com/open-mmlab/mmsegmentation. I am trying to understand if the issue is with an operation used in SeMask or with the original mmsegmentation library codebase. If the issue is with the original mmsegmentation library, opening an issue on their GitHub will help us quickly solve the problem. So, could you try running the script for a Swin-based model in the original MMSegmentation codebase? |
Oh, that's what you meant. |
Right, this seems to be a version-related issue. We use torch v1.8.0, which might not support the conversion. Did you try the conversion for the Swin-UPerNet model? |
I remember encountering the |
|
Did it run error-free? |
No, I got similar issues there as well. Altho, I didn't try adding the roll operator when trying that code. |
Right, it's probably an MMSegmentation issue. I suggest you open an issue on the official repo: https://github.com/open-mmlab/mmsegmentation/tree/master/mmseg. The library maintainers should be able to help find the exact problem. |
One more issue that I found: One of them needs slight modifications. I modified the latter for quick testing. Do you wish me to open a new issue? |
Ohh, is it, what kind of modifications? You can mention those here. I will fix the issues. |
I just changed the definition to match how it was being called and 1-2 more changes. Also removed
|
I am sorry, but I cannot understand the reason for the changes. |
I removed |
Hi @romil611, thanks for pointing the inconsistency out. I had already included a different method for inference in the code but missed changing the call in the GitHub repo.
I define the
|
Oh there was a function ready to use just above it. i missed it lol. |
I am closing this issue since the ONNX problem stems from the mmsegmentation library, in my opinion. Feel free to reopen the issue if you have any more questions. |
Hi, I wish to convert it into an onnx model. When trying to run the
pytorch2onnx.py
present inside thetools
directory, I get:Thanks.
The text was updated successfully, but these errors were encountered: