Git Product home page Git Product logo

Comments (2)

dendenxu avatar dendenxu commented on July 19, 2024

Hi @miu200521358 thanks for bringing attention to this. I see that you ran out of GPU memory during the precomputation step (load_state_dict_post_hook of super_charged_r4dv).

  1. The very large memory usage 17179869184.00 GiB might be a bug on the PyTorch side and it looks like only a logging bug.
  2. It is possible to render 4K4D on a 8GB machine. The memory required for the rendering itself is very small. The OOM error you encountered happened during pre-computation. And I assume it's because I set the batch size too high (same as the number of views). I tuned the memory usage for a 12GB machine. You can try modifying this invokation
    # Compute projected color of every image, using the original size image
    ibrs_rgbs = sample_geometry_feature_image(
        xyz,
        src_feat_inps,
        src_exts,
        src_ixts,
        src_inps.new_ones(2, 1),
    )  # B, S, N, 3

to wrap it around a for-loop on the second (the S) dimension like how I computed the image features later:

    # Compute blending weights from the image features
    bws = torch.cat([sampler.ibr_regressor.rgb_mlp(xyz_ibr_rgbs[:, j:j + 1]) for j in range(xyz_ibr_rgbs.shape[-3])], dim=-3)  # B, S, N, 1
    timer.record('compute blending weights')

from 4k4d.

dendenxu avatar dendenxu commented on July 19, 2024

@miu200521358 I updated the rendering code to load the DNA-Rendering dataset more efficiently in some recent commits. Could you please try whether this fixed the OOM issue?

from 4k4d.

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.