Giter Club home page Giter Club logo

Comments (5)

yqzhishen avatar yqzhishen commented on July 30, 2024

Did you export your ONNX model with the right version of PyTorch (1.13)?

from diffsinger.

usasho avatar usasho commented on July 30, 2024

Yes, 1.13 can be converted correctly The latest torch 2.2 is now mainstream, and the tool for creating training data some.sofa can only be used with pytorch 2.2.Since torch itself takes up a lot of space, installing multiple versions is also a hassle.

from diffsinger.

yqzhishen avatar yqzhishen commented on July 30, 2024

So you confirm your model is exported under PyTorch 1.13, and is used with the latest version of OpenUTAU? Please note that the ONNX exporter is only expected to work under PyTorch 1.13, and under other version it may break even if it seems to run successfully. Have you tried other projects? Does every project raise this error?

from diffsinger.

usasho avatar usasho commented on July 30, 2024

Yes, onnx exported with pytorch 1.13 can be used.pytorch2 cannot be reshaped and is exported, but cannot be used.

from diffsinger.

yqzhishen avatar yqzhishen commented on July 30, 2024

I can now confirm that you exported the model with PyTorch 2.2, because I tried PyTorch 2.2 and reproduced your error. This is due to a bug of PyTorch itself, and I will not fix it.

Anyway, I have told you that exporting the model sucessfully does not mean the model is correct, and PyTorch 1.13 is the only version that is tested and verified. Please install PyTorch 1.13 to export the model. Only the CPU-only version is enough so it will not take much space.

from diffsinger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.