ncnn pnnx转换Swin-Transformer模型错误

jfewjypa  于 4个月前  发布在  其他
关注(0)|答案(5)|浏览(41)

error log | 日志或报错信息 | ログ

reshape tensor with batch index 3 is not supported yet!
reshape tensor with batch index 2 is not supported yet!
reshape tensor with batch index 1 is not supported yet!
reshape tensor with batch index 3 is not supported yet!
reshape tensor with batch index 2 is not supported yet!
reshape tensor with batch index 1 is not supported yet!
reshape tensor with batch index 3 is not supported yet!
reshape tensor with batch index 2 is not supported yet!
reshape tensor with batch index 1 is not supported yet!
slice with step 2 is not supported
slice with step 2 is not supported
slice with step 2 is not supported
slice with step 2 is not supported
slice with step 2 is not supported
slice with step 2 is not supported
slice with step 2 is not supported
slice with step 2 is not supported
slice with step 2 is not supported
slice with step 2 is not supported
slice with step 2 is not supported
slice with step 2 is not supported
reshape tensor with batch index 2 is not supported yet!
reshape tensor with batch index 2 is not supported yet!
reshape tensor with batch index 2 is not supported yet!
reshape tensor with batch index 1 is not supported yet!
reshape tensor with batch index 1 is not supported yet!
reshape tensor with batch index 3 is not supported yet!
reshape to 6-rank tensor is not supported yet!
reshape tensor with batch index 1 is not supported yet!
reshape to 6-rank tensor is not supported yet!
reshape tensor with batch index 2 is not supported yet!
reshape tensor with batch index 2 is not supported yet!
reshape tensor with batch index 2 is not supported yet!
reshape to 6-rank tensor is not supported yet!
reshape tensor with batch index 1 is not supported yet!
reshape tensor with batch index 1 is not supported yet!
reshape tensor with batch index 3 is not supported yet!
reshape to 6-rank tensor is not supported yet!
reshape tensor with batch index 1 is not supported yet!
reshape to 6-rank tensor is not supported yet!
reshape tensor with batch index 2 is not supported yet!
reshape tensor with batch index 2 is not supported yet!
reshape tensor with batch index 2 is not supported yet!
reshape to 6-rank tensor is not supported yet!
reshape tensor with batch index 1 is not supported yet!
reshape tensor with batch index 1 is not supported yet!
reshape tensor with batch index 3 is not supported yet!
reshape to 6-rank tensor is not supported yet!
reshape tensor with batch index 1 is not supported yet!
reshape to 6-rank tensor is not supported yet!
flatten 2 to -1 not possible for 0-rank tensor
unsupported permute dims!
unsupported permute dims!
unsupported permute dims!
unsupported permute dims!
unsupported permute dims!
unsupported permute dims!
unsupported permute dims!
unsupported permute dims!
unsupported permute dims!
permute across batch dim is not supported yet!
permute across batch dim is not supported yet!
permute across batch dim is not supported yet!
permute across batch dim is not supported yet!
permute across batch dim is not supported yet!
permute across batch dim is not supported yet!
unsqueeze batch dim 0 is not supported yet!
unsqueeze batch dim 0 is not supported yet!
unsqueeze batch dim 0 is not supported yet!
unsqueeze batch dim 0 is not supported yet!
unsqueeze batch dim 0 is not supported yet!

model | 模型 | モデル

  1. original model
    swin transformer tiny模型
    来源:
    https://github.com/microsoft/Swin-Transformer

how to reproduce | 复现步骤 | 再現方法

  1. ./pnnx swin_transformer_official_tiny.pt
epfja78i

epfja78i1#

up 好像正在修复这个错误,让nihui大佬歇歇在改,哈哈,你可以试试mnn, 我试了mnn 可以转swin transformer 模型,推理也正确 https://blog.csdn.net/sxj731533730/article/details/122601993

rdlzhqv9

rdlzhqv92#

up 好像正在修复这个错误,让nihui大佬歇歇在改,哈哈,你可以试试mnn, 我试了mnn 可以转swin transformer 模型,推理也正确 https://blog.csdn.net/sxj731533730/article/details/122601993

谢谢,我用TNN也转换成功。因为目前手头其他模型基本都是基于NCNN部署的,所以还是希望NCNN也能支持SWINT。

5n0oy7gb

5n0oy7gb3#

up 好像正在修复这个错误,让nihui大佬歇歇在改,哈哈,你可以试试mnn, 我试了mnn 可以转swin transformer 模型,推理也正确 https://blog.csdn.net/sxj731533730/article/details/122601993

谢谢,我用TNN也转换成功。因为目前手头其他模型基本都是基于NCNN部署的,所以还是希望NCNN也能支持SWINT。

TNN的速度和怎么样

sycxhyv7

sycxhyv74#

up 好像正在修复这个错误,让nihui大佬歇歇在改,哈哈,你可以试试mnn, 我试了mnn 可以转swin transformer 模型,推理也正确 https://blog.csdn.net/sxj731533730/article/details/122601993

谢谢,我用TNN也转换成功。因为目前手头其他模型基本都是基于NCNN部署的,所以还是希望NCNN也能支持SWINT。

TNN的速度和怎么样

swin transformer在TNN中速度较慢,大量MATMUL是耗时瓶颈。比res100差不多要慢一倍

fcy6dtqo

fcy6dtqo5#

up 好像正在修复这个错误,让nihui大佬歇歇在改,哈哈,你可以试试mnn, 我试了mnn 可以转swin transformer 模型,推理也正确 https://blog.csdn.net/sxj731533730/article/details/122601993

谢谢,我用TNN也转换成功。因为目前手头其他模型基本都是基于NCNN部署的,所以还是希望NCNN也能支持SWINT。

good job!!!

相关问题