-
Notifications
You must be signed in to change notification settings - Fork 14
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
[Yolact][Pytorch Frontend][Paritioning Issue] Yolact - Instance segmentation model compilation issue #85
Comments
Hi @jornt-xilinx , Please help us with your suggestion for improving the performance. Did you find any irregularities in this mod['main']? FYI:
|
@abdulazizm I think the issue is the bilinear resize2d layers. From the Vitis AI user guide:
I created a small test case and the DPU compiler couldn't handle these resize layers. I believe the issue is the floating scale from [35, 35] to [69, 69]. |
Thanks for the quick reply, @jornt-xilinx . Completely makes sense. Are there any suggestions to improve this further by any chance? |
@jtuyls aten::view, aten::permute operators are running on cpu it seems. DPU is not supporting these? Tried changing aten::view -> aten::reshape , seems its also pulled on CPU. Is this expected? |
@jtuyls I don't think the issue is with scaling_factor. Refer below mod['main'] -> this has resize2d [69,69] to [138,138] in CPU after partition.
Is there any timeline for supporting bilinear interpolation with this tvm flow? |
@abdulazizm I think that this (69, 69) -> (128, 128) resize could be offloaded to the DPU indeed, however, the tanh and reshape ops in between are prohibiting putting resize2d in the DPU subgraph (we only support one DPU subgraph). |
https://github.com/Ma-Dan/yolact/tree/onnx - Ma-Dan version of yolact is onnx exportable (hope its good to JIT trace), tried this with pytorch frontend but getting segmentation fault at
partition_for_vitis_ai(mod, params, dpu=target)
as below (debug logs enabled - can post full log in file if needed)To JIT trace yoloact model:
Please refer: https://discuss.tvm.apache.org/t/frontend-pytorch-compile-yolact-for-xilinx-hardware-zcu104/11909/5?u=abdulazizm
The text was updated successfully, but these errors were encountered: