GithubHelp home page GithubHelp logo

Comments (7)

anuragxel avatar anuragxel commented on July 19, 2024 1

Yeah, this is an ONNX thing. It can be handled at an application level pretty easily (generate all models corresponding to each resolution for a dataset, pick the model based on resolution). I have added #3 enhancement covering this, closing this issue for now.

from salt.

anuragxel avatar anuragxel commented on July 19, 2024

So this is an artifact of ONNX generator helper. Did you change the resolution of the helper to generate a ONNX model of the resolution of your images? ONNX supports models for a specific resolution.

from salt.

anuragxel avatar anuragxel commented on July 19, 2024

I would appreciate a PR that can select the right ONNX model based on the resolution of the input (assuming ONNX model name format maybe -- onnx_model_<res>.onnx).

from salt.

1191658517 avatar 1191658517 commented on July 19, 2024

Thank you very much for your prompt reply!I use default resolution of the input as shown blow.
Is there anything that I need to change ?

from salt.

1191658517 avatar 1191658517 commented on July 19, 2024

image

from salt.

anuragxel avatar anuragxel commented on July 19, 2024

Yeah, change it to the resolution of your input image and try again? It should work. This is how ONNX models work, they compile the model ops to a specified resolution (and usually it works for multiples of that resolution, which your image probably isn't).

from salt.

1191658517 avatar 1191658517 commented on July 19, 2024

yes it works nicely now.
this issule(facebookresearch/segment-anything#56) has reported this problem either.

from salt.

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.