Giter Club home page Giter Club logo

Comments (3)

nshmyrev avatar nshmyrev commented on August 18, 2024 3

It is actually easy to export, see the patch here:

alphacep@29c91d4

from mb-istft-vits2.

FENRlR avatar FENRlR commented on August 18, 2024 1

pytorch/pytorch#81075
It looks like we need more time for this.

from mb-istft-vits2.

w11wo avatar w11wo commented on August 18, 2024

I've attempted to apply the same exporting script to MB-iSTFT-VITS2, but I'm running into some trouble during the export. I think it's related to complex numbers being only partially supported by torch.onnx, or something along those lines.

Here's the error log in case anyone's interested:

Traceback (most recent call last):
  File "/content/MB-iSTFT-VITS2/export_onnx.py", line 110, in <module>
    main()
  File "/content/MB-iSTFT-VITS2/export_onnx.py", line 91, in main
    torch.onnx.export(
  File "/usr/local/lib/python3.10/dist-packages/torch/onnx/utils.py", line 506, in export
    _export(
  File "/usr/local/lib/python3.10/dist-packages/torch/onnx/utils.py", line 1548, in _export
    graph, params_dict, torch_out = _model_to_graph(
  File "/usr/local/lib/python3.10/dist-packages/torch/onnx/utils.py", line 1117, in _model_to_graph
    graph = _optimize_graph(
  File "/usr/local/lib/python3.10/dist-packages/torch/onnx/utils.py", line 658, in _optimize_graph
    _C._jit_pass_erase_number_types(graph)
RuntimeError: Unknown number type: complex

To reproduce, I've prepared a Colab notebook here. It uses the models from here.

from mb-istft-vits2.

Related Issues (14)

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.