GithubHelp home page GithubHelp logo

Comments (2)

huhaoyue avatar huhaoyue commented on June 16, 2024

I want to visualize the reconstructed images by warping, but I can't write related scripts. I really hope can get your help. I saw the same issue in the previous problem, but he provided the test_warp.py is no relevant content after I download it.

from sfmlearner-pytorch.

ClementPinard avatar ClementPinard commented on June 16, 2024

Hi,
the warped images are actually part of the output from photometric reconstruction loss

def photometric_reconstruction_loss(tgt_img, ref_imgs, intrinsics,

And as you can see during training, it is transformed into tensorboard within this line of code : https://github.com/ClementPinard/SfmLearner-Pytorch/blob/master/train.py#L311

As such, to visualize it you can simply run the training with the option --log-output and --training-output-freq set to a certain number N, to get vizualisations on tensorboard, it will output a new image with target, warped and diff every N batch (corresponding to the first image of the batch)

Or you can run photometric reconstruction loss function and then try to modify the function log output tensorboard to get the image and save it in jpg instead of tensorboard format.

def log_output_tensorboard(writer, prefix, index, suffix, n_iter, depth, disp, warped, diff, mask):

from sfmlearner-pytorch.

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.