Skip to content
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

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

Open
zengjie617789 opened this issue Jan 23, 2025 · 0 comments
Open

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

zengjie617789 opened this issue Jan 23, 2025 · 0 comments

Comments

@zengjie617789
Copy link

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

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

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

Image

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

Image

  1. 当转换pt模型时,没有出现错误,但是在使用ncnn.py结果文件时,却无法或者其输出结果,显示为空。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant