Skip to content

any suggestion for onnx exporting? #35

Description

@wkkuniquegmail
No description provided.

Activity

  1. lucasjinreal commented on Feb 6, 2022

    @lucasjinreal

    I have export it to onnx, seems no obstacles to do this:

    image

    onnxexp glance -m vits_baker_v1.onnx                                                                                           vits!?
    Namespace(model='vits_baker_v1.onnx', subparser_name='glance', verbose=False, version=False)
    Exploring on onnx model: vits_baker_v1.onnx
    Model summary on: vits_baker_v1.onnx
    -------------------------------------------
    ir version: 7
    opset_import: 11 
    producer_name: pytorch
    doc_string: 
    all ops used: Gather,Constant,Mul,Transpose,Shape,Cast,Range,Unsqueeze,Less,Conv,Concat,Reshape,Div,MatMul,Sub,Add,ConstantOfShape,Slice,Pad,Equal,Where,Softmax,Pow,ReduceMean,Sqrt,Relu,Split,Erf,RandomNormalLike,Not,Greater,And,Expand,ScatterND,NonZero,GatherND,CumSum,Softplus,ReduceSum,GatherElements,Neg,Exp,Ceil,Clip,ReduceMax,If,Tanh,Sigmoid,LeakyRelu,ConvTranspose
    -------------------------------------------
    
    Summary: 
    Name         Shape    Input/Output
    -----------  -------  --------------
    tst          [1, -1]  INPUT
    tst_lengths  [1]      INPUT
    output       [-1]     OUTPUT
    
    
  2. lucasjinreal commented on Sep 29, 2022

    @lucasjinreal

    @AronWang @Aloento I have updated the exportation code here: https://github.com/jinfagang/lark

    I have reconstructed VITS training now it can be more easily training on other backbones.

  3. Aloento commented on Sep 29, 2022

    @Aloento

    @jinfagang sad, 404

  4. lucasjinreal commented on Sep 29, 2022

    @lucasjinreal

    Will be release after some code refactoring. Meanwhile, join QQ group: 526506088 for more discussion about speech model

  5. Approximetal commented on Dec 1, 2022

    @Approximetal

    I have export it to onnx, seems no obstacles to do this:

    image

    onnxexp glance -m vits_baker_v1.onnx                                                                                           vits!?
    Namespace(model='vits_baker_v1.onnx', subparser_name='glance', verbose=False, version=False)
    Exploring on onnx model: vits_baker_v1.onnx
    Model summary on: vits_baker_v1.onnx
    -------------------------------------------
    ir version: 7
    opset_import: 11 
    producer_name: pytorch
    doc_string: 
    all ops used: Gather,Constant,Mul,Transpose,Shape,Cast,Range,Unsqueeze,Less,Conv,Concat,Reshape,Div,MatMul,Sub,Add,ConstantOfShape,Slice,Pad,Equal,Where,Softmax,Pow,ReduceMean,Sqrt,Relu,Split,Erf,RandomNormalLike,Not,Greater,And,Expand,ScatterND,NonZero,GatherND,CumSum,Softplus,ReduceSum,GatherElements,Neg,Exp,Ceil,Clip,ReduceMax,If,Tanh,Sigmoid,LeakyRelu,ConvTranspose
    -------------------------------------------
    
    Summary: 
    Name         Shape    Input/Output
    -----------  -------  --------------
    tst          [1, -1]  INPUT
    tst_lengths  [1]      INPUT
    output       [-1]     OUTPUT
    

    @jinfagang What about the speed?

  6. lumpidu commented on Feb 12, 2023

    @lumpidu

    update ?

  7. JohnHerry commented on Apr 27, 2023

    @JohnHerry

    obstacles

    what is about multi-speaker instance?

  8. JohnHerry commented on May 4, 2023

    @JohnHerry

    It is ok to convert the pytorch model into onnx. but inference speed on GPU with onnx is far more slower then that with pytorch model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions