GithubHelp home page GithubHelp logo

Comments (2)

nikolausmayer avatar nikolausmayer commented on September 3, 2024

You're right, once initialized the network is fixed to one exact resolution. We need image widths and heights that are multiples of 64, and so we have to setup upsampling and downsampling layers before/after the core network. The flow output even needs special treatment.

I can think of 4 different workflows here:

  • (easiest, slowest) Call the docker script for each image pair individually.
  • (still easy, a little faster) Change the Python script which the docker command executes. Currently the script initializes the network once, but it should not be too hard to rewrite it such that the network is reinitialized whenever the input size changes. This could be fast if your input list is sorted by image size, and if many input images share a common size (as should be the case in your example).
  • (still easy, also faster) What you propose: Sort the inputs by sizes and create lists for each size class. If the whole docker overhead is not too bad, this might be as good as the previous option.
  • (difficult, but fast) Actually rewrite the network layers such that they can deal with dynamic input sizes. I would ... not recommend this :P

from flownet2-docker.

meegoStar avatar meegoStar commented on September 3, 2024

Great! Thanks for your reply. I would try the 2nd method first.
The 4th would be too much work for me now :D
Big thanks again!

from flownet2-docker.

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.