Git Product home page Git Product logo

Comments (6)

wrencanfly avatar wrencanfly commented on September 2, 2024 4

could you plz provide more details concerning rebuilding and reinstalling?I'm also making a try to a higher language feature dimension.

@Zhirui86
Hi, finally I figured out where the issue is:

if you met error like: RuntimeError: Function _RasterizeGaussiansBackward returned an invalid gradient at index 4 - got [2228907, 4] but expected shape compatible with [2228907, 3]

We need to edit following files:

  1. LangSplat/submodules/langsplat-rasterization/cuda_rasterizer/config.h
    change NUM_CHANNELS_language_feature to the desired dim. Delete the local package and rebuild it.- remember to remove LangSplat/submodules/langsplat-rasterization/build folder if you have one, otherwise, it will use the cache.

  2. LangSplat/scene/gaussian_model.py
    https://github.com/minghanqin/LangSplat/blob/main/scene/gaussian_model.py#L206C1-L206C87
    change the line:

                language_feature = torch.zeros((self._xyz.shape[0], 3), device="cuda")

We need to initialize the language_feature as the desired dim here, as for me it should be:

                language_feature = torch.zeros((self._xyz.shape[0], 4), device="cuda")

Cheers!

from langsplat.

gongfuxiaoxiong avatar gongfuxiaoxiong commented on September 2, 2024 2

Hello, did you solve the error in brackets by just creating a new environment?(RuntimeError: CUDA error: an illegal memory access was encountered
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.)

from langsplat.

wrencanfly avatar wrencanfly commented on September 2, 2024

The issue was solved by creating a new environment on WSL2 cuda118. I am going to explore more to reproduce this issue.

Currently I met a new issue when changing language features dimensions to 4:

RuntimeError: Function RasterizeGaussiansBackward returned an invalid qradient at index 4 - got[2228907,4] but expected shape compatible with [2228907,3]

image

Any help would be appreciated!

from langsplat.

Zhirui86 avatar Zhirui86 commented on September 2, 2024

could you plz provide more details concerning rebuilding and reinstalling?I'm also making a try to a higher language feature dimension.

from langsplat.

Zhirui86 avatar Zhirui86 commented on September 2, 2024

Have you ever tried a 512-dimension feature?I can build successfully in a lower level while it turns out as follows when setting dimension into 512:

image

from langsplat.

JoannaCCJH avatar JoannaCCJH commented on September 2, 2024

Have you ever tried a 512-dimension feature?I can build successfully in a lower level while it turns out as follows when setting dimension into 512:

image

Hi! I have the similar issue. Have you resolved this problem?

from langsplat.

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.