Skip to content

Commit

Permalink
Add warning and recommend to use pnnx (#5588)
Browse files Browse the repository at this point in the history
  • Loading branch information
lll143653 committed Jul 23, 2024
1 parent 3ee5c18 commit d355b6d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/onnx/onnx2ncnn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2956,6 +2956,15 @@ static std::string trunc_name(std::string name)

int main(int argc, char** argv)
{
fprintf(stderr, "onnx2ncnn may not fully meet your needs. For more accurate and elegant\n\
conversion results, please use PNNX. PyTorch Neural Network eXchange (PNNX) is\n\
an open standard for PyTorch model interoperability. PNNX provides an open model\n\
format for PyTorch. It defines computation graph as well as high level operators\n\
strictly matches PyTorch. You can obtain pnnx through the following ways:\n\
1. Install via python\n\
pip3 install pnnx\n\
2. Get the executable from https://github.com/pnnx/pnnx\n\
For more information, please refer to https://github.com/pnnx/pnnx\n");
if (!(argc == 2 || argc == 4))
{
fprintf(stderr, "Usage: %s [onnxpb] [ncnnparam] [ncnnbin]\n", argv[0]);
Expand Down

0 comments on commit d355b6d

Please sign in to comment.