Git Product home page Git Product logo

Comments (1)

zengyh1900 avatar zengyh1900 commented on June 2, 2024

hi @ayushjain-ow ,

I think you're right! Would you like to make a pull request to fix this issue? I think we can solve it in two ways.

First, we can remove LoadImageFromFile and LoadMask from the infer_pipeline_cfg if the type of the img and mask are np.array. In a word, we can check their type to set the infer_pipeline_cfg

Second, when you input by image filename, you need to make sure the input image size can be divided by 4. This is because the global_local will downsample the input image by strided convolution and then upsample it by 4. Your example image has shape (662, 1000, 3), therefore the output size will be ceil(662/4)*4=664. I think we need to add an assertion before inference to remind users this issue.

Looking forward to your pull request!

from mmagic.

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.