Giter Club home page Giter Club logo

Comments (4)

mdfirman avatar mdfirman commented on September 7, 2024

Hi, thanks for getting in touch with this.

Can you please be a bit more specific about what you are trying here.

  • Are you training with the KITTI dataset, or with a different dataset?
  • Are you changing the input dimensions with --height xx --width yy flags, or via a different means?
  • And if you are setting them via these flags, what values are you using?

Thanks!

from monodepth2.

otrivedi avatar otrivedi commented on September 7, 2024

Thanks for the response.

I'm only running the inference in the simple example code provided on my 1280x720p images, and I'm overriding the "feeder_height" and width in the following line:

input_image = input_image.resize((feed_width, feed_height), Image.LANCZOS)

If I set the values to the native resolution (w=1280, h=720) I'll get the following features generated:

torch.Size([1, 64, 360, 640])
torch.Size([1, 64, 180, 320])
torch.Size([1, 128, 90, 160])
torch.Size([1, 256, 45, 80])
torch.Size([1, 512, 23, 40])

The error occurs when the odd-dimension tensor tries to concatenate during upscaling. The model I'm working with is mono+stereo_1024x320.

from monodepth2.

mdfirman avatar mdfirman commented on September 7, 2024

Ok, thanks for the extra info. I seem to remember that the network only runs if the dimensions are a multiple of 32. Could you maybe try 1280x704? Thanks.

from monodepth2.

mdfirman avatar mdfirman commented on September 7, 2024

(Ah, yes I see you have identified this in your original issue – it needs to have 2^5 as a factor. Yes. I don't think there is any easy way to avoid this. I think that you need to use multiples of 32, or elso hack the networks to pad/crop dimensions where needed)

from monodepth2.

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.