Browse Source

Add warning and recommend to use pnnx (#5588)

tags/20240820
lll143653 GitHub 1 year ago
parent
commit
d355b6dc5b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      tools/onnx/onnx2ncnn.cpp

+ 9
- 0
tools/onnx/onnx2ncnn.cpp View File

@@ -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]);


Loading…
Cancel
Save