Skip to content

使用pnnx依次转换pt和onnx模型,出现unsqueeze错误 #5887

Open
@zengjie617789

Description

detail | 详细描述 | 詳細な説明

使用pnnx命令行分别对pt和onnx模型进行转换,

  1. 当转换onnx模型时,出现以下错误:

Image

通过查看params文件,发现的确存在unsqueeze操作,但是在torch原模型中,已经将unsqueeze转换为tensor[None,:]或torch.stack();但是在params的文件中依然存在unsqueeze操作。

Image

  1. 当转换pt模型时,没有出现错误,但是在使用ncnn.py结果文件时,却无法或者其输出结果,显示为空。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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