GithubHelp home page GithubHelp logo

RuntimeError about deepdepthdenoising HOT 5 OPEN

vcl3d avatar vcl3d commented on July 18, 2024
RuntimeError

from deepdepthdenoising.

Comments (5)

spthermo avatar spthermo commented on July 18, 2024

Hi,

the model supports 640x360 input resolution as input. Since you use a different resolution, I presume that the error is at the concatenation of an interpolation layer output with the features of the corresponding skip connection. This happens because the interpolation layers utilize the default h and w (360 and 640, see models/shallow_partial.py), while the skip connections feed the decoder with feature maps of your h' and w', where h' < h and w' < w (i.e. 15 < 90 in your case).

from deepdepthdenoising.

Harleens13 avatar Harleens13 commented on July 18, 2024

Hi @spthermo. Thank for the reply.
I get this part. But sometimes an image of 1280*720 has also been read but an image with dimensions 694*512 gives errors.
Also I have found another discrepancy, when my input image is in .jpg format, I am able to see the denoised depth image (output from inference.py) but can't see the denoised depth image when it is in .png format (it is totally black image everytime). Interestingly the pointclouds in both the cases are available and somewhat similar. Did you guys had the same observation while testing?

from deepdepthdenoising.

kearcer avatar kearcer commented on July 18, 2024

@spthermo yes,i also found input the png image will output the all black images,how to solve this?

from deepdepthdenoising.

zapaishchykova avatar zapaishchykova commented on July 18, 2024

@kearcer try to download another image viewer, like ImageJ

from deepdepthdenoising.

zuru avatar zuru commented on July 18, 2024

After loading a file with the load_depth function, the result should be an image tensor containing the depth values in meters (the scale parameter is responsible for that scaling, with the default value being 0.001 and assuming that the image contains the depth in millimeters).

Typical formats for depth images would be:

  • .exr with raw float values (in arbitrary scaling, in the case of meters for example, it should be load_depth(filename, scale=1.0))
  • .png with unsigned short (i.e. 16bit) values (usually in millimeters)
  • .pgm with unsigned short (i.e. 16bit) values (usually in millimeters)

It should be noted that .jpeg files are unsuitable to store depth values.

If you need more help with your files, please upload a sample that we can check.

from deepdepthdenoising.

Related Issues (6)

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.