Coder Social home page Coder Social logo

Export to Onnx about lama HOT 12 CLOSED

advimman avatar advimman commented on July 20, 2024
Export to Onnx

from lama.

Comments (12)

Pirner avatar Pirner commented on July 20, 2024 2

any news on this?

from lama.

AMEERAZAM08 avatar AMEERAZAM08 commented on July 20, 2024 1

Hii all can i get lama.onnx file. ? @windj007 @marcojoao @wcyjerry @ulfemsoy @ssometimes

from lama.

LLSean avatar LLSean commented on July 20, 2024 1

Has anyone successfully converted so far?

from lama.

windj007 avatar windj007 commented on July 20, 2024

Hi! Yeah, it seems that ONNX does not support FFT/IFFT

from lama.

windj007 avatar windj007 commented on July 20, 2024

Feel free to reopen the issue if you heave further questions.

from lama.

wcyjerry avatar wcyjerry commented on July 20, 2024

@marcojoao Hi, bro. I'm facing the same question, while trying to use torch.onnx to export lama with rfft,
Have u sovled this?

from lama.

ssometimes avatar ssometimes commented on July 20, 2024

@marcojoao Hi, bro. I'm facing the same question, while trying to use torch.onnx to export lama with rfft, Have u sovled this?

I also encountered the same error, did you solve it?😂

from lama.

marcojoao avatar marcojoao commented on July 20, 2024

@marcojoao Hi, bro. I'm facing the same question, while trying to use torch.onnx to export lama with rfft, Have u sovled this?

@marcojoao Hi, bro. I'm facing the same question, while trying to use torch.onnx to export lama with rfft, Have u sovled this?

I also encountered the same error, did you solve it?😂

Hello, short answer no, I did notice that Onnx team already included the necessary function, but pytorch did not update to the latest Onnx version, so here is no conversion for this new function.

I successfully converted the the fallback to "Atan" but the results are not that great.
If you guys dont wanna wait, a possible solution is to compile pytorch with the new Onnx version and your custom C++ wrapper to the new function, if you are brave enougth.

from lama.

wcyjerry avatar wcyjerry commented on July 20, 2024

@marcojoao Thx a lot. That's a good way to do it, but seems like really hard. So I will bailan(means wait) till pytorch officionally update with onnx. 0u0

from lama.

ulfemsoy avatar ulfemsoy commented on July 20, 2024

@marcojoao Hi, bro. I'm facing the same question, while trying to use torch.onnx to export lama with rfft, Have u sovled this?

@marcojoao Hi, bro. I'm facing the same question, while trying to use torch.onnx to export lama with rfft, Have u sovled this?

I also encountered the same error, did you solve it?😂

Hello, short answer no, I did notice that Onnx team already included the necessary function, but pytorch did not update to the latest Onnx version, so here is no conversion for this new function.

I successfully converted the the fallback to "Atan" but the results are not that great. If you guys dont wanna wait, a possible solution is to compile pytorch with the new Onnx version and your custom C++ wrapper to the new function, if you are brave enougth.

@marcojoao, do you know if the conversion to .onnx is possible now, one year later?

from lama.

ulfemsoy avatar ulfemsoy commented on July 20, 2024

No, not any success so far. Seems to be caused by still missing functionality in ONNX compared to PyTorch.

from lama.

OPHoperHPO avatar OPHoperHPO commented on July 20, 2024

Hello everyone,

We at @Carve-Photos have successfully ported LaMa to ONNX with results closely resembling the original. Check it out here: https://huggingface.co/Carve/LaMa-ONNX

from lama.

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.