Giter VIP home page Giter VIP logo

Comments (8)

FangGet avatar FangGet commented on May 12, 2024 1

@Gpoxolcku I came up with an error like "Graphdef cannot be larger than 2GB in tensorflow", if it's also yours, just add "tf.reset_default_graph" after sess.run will fix this problem.

from stereo-magnification.

snaves avatar snaves commented on May 12, 2024

I think you need to set the "--xoffset" flag (if this is a rectified left-right stereo pair), and possibly also the "--yoffset" and "--zoffset" flags if the camera motion is not horizontal. Those flags tell the binary what the camera motion is between the left and right views. They are zero by default, and so you will get degenerate results if you do not set at least "--xoffset". I have just added an example to demonstrate in the examples subdirectory.

from stereo-magnification.

snaves avatar snaves commented on May 12, 2024

Note also that if you want to render multiple images, you can provide multiple offsets in the "--render_multiples" argument (e.g, "--render_multiples="-10,0,10").

from stereo-magnification.

Gpoxolcku avatar Gpoxolcku commented on May 12, 2024

Thank you for your reply! Also I'd like to mention that when I try to render multiple images, it fails with (likely) out-of-memory error (I use Google Colab GPU). Is there any possible way to fix it?

from stereo-magnification.

snaves avatar snaves commented on May 12, 2024

Interesting -- I haven't tested on a Colab GPU. I guess the backup is to render a single image and call the binary multiple times. However, I am unsure of why you would run out of memory, though I will give it some thought. Please feel free to propose a fix if you uncover the issue.

from stereo-magnification.

BaileyRobbins avatar BaileyRobbins commented on May 12, 2024

Can you explain what the offset values in render_multiples mean? Are they the offsets in world coordinates from camera 0?

from stereo-magnification.

snaves avatar snaves commented on May 12, 2024

The values in --render_multiples indicate viewpoint offset multipliers on the translation vector indicated by [--xoffset, --yoffset, --zoffset]. That is, if render_multiple = 2, then the camera is moved to the location "reference_viewpoint + 2 * [xoffset, yoffset, zoffset]".

from stereo-magnification.

noobtoob4lyfe avatar noobtoob4lyfe commented on May 12, 2024

Note also that if you want to render multiple images, you can provide multiple offsets in the "--render_multiples" argument (e.g, "--render_multiples="-10,0,10").

Hello. I was googeling around for a way to try out this code and I saw your comment about a Colab notebook. Is this Google Colab Notebook still available? May I try it out? Thanks in advance.

from stereo-magnification.

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.