Skip to content

EfficentNet模型转换错误,转出的中间过程有个size不正确 #6463

@leiyu2

Description

@leiyu2

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

EfficentNet模型转换错误,导致size有问题,精度偏差很大。

model | 模型 | モデル

  1. original model
    EfficentNet-b1 输入是3224224

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

pytorch代码:(伪代码,只是说明我遇到的问题)
输入尺寸:144×56×56
x = nn.ZeroPad2d(1,2,1,2)(x)
x = F.conv2d(144,144,kernel_size=5,stride=2,groups=144,bias=False)(x)
输出是1442828
用pnnx转换之后,模型的输出是1442827, pad 变成了 0,2,1,2
请教下各位老师,可以帮忙修复下这个问题吗?多谢。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions