Coder Social home page Coder Social logo

Comments (7)

BeileiCui avatar BeileiCui commented on May 28, 2024 1

Hi @anhquancao I tried your suggestion to change "squeeze()" to "squeeze(-1)" and the problem is solved! Really thanks for your time!

from scenerf.

anhquancao avatar anhquancao commented on May 28, 2024

Hi @wangqiwangyuqing, thank you for pointing out the error, let me check it and will get back to you this week.

from scenerf.

anhquancao avatar anhquancao commented on May 28, 2024

It's weird that you have ~4k frames. For validation, there are only 800 frames since we only use the frame_id % 5 == 0 as in this line of code.
https://github.com/astra-vision/SceneRF/blob/main/scenerf/data/semantic_kitti/kitti_dataset.py#L95

Can you check if the variable self.scans in the following line contains only frames with frame_id % 5 == 0
https://github.com/astra-vision/SceneRF/blob/main/scenerf/data/semantic_kitti/kitti_dataset.py#L165

from scenerf.

BeileiCui avatar BeileiCui commented on May 28, 2024

@anhquancao Hi. I met the same error and my validation only contains frame_id % 5 == 0
1684472670199
looking forward to your reply!

from scenerf.

anhquancao avatar anhquancao commented on May 28, 2024

Hi @BeileiCui, thanks for your info.
It's really weird, I cloned the code, downloaded the checkpoint and ran the evaluation. However, my evaluation passed item 92/799 and had no error.
Screenshot from 2023-05-19 11-24-31

Did you following my instruction to setup the dataset?
https://github.com/astra-vision/SceneRF#dataset

Which command did you use?

Can you print the length of weights_at_depth and the shape of the tensor inside?

from scenerf.

anhquancao avatar anhquancao commented on May 28, 2024

Can you change the line 737 as following in scenerf.py and try again @wangqiwangyuqing @BeileiCui ?
https://github.com/astra-vision/SceneRF/blob/main/scenerf/models/scenerf.py#L737

The error is when there is only 1 ray, the squeeze() function turns the array of 1 item into a scalar which causes the issue in torch.cat. So the solution is to change "squeeze()" to "squeeze(-1)".

from scenerf.

anhquancao avatar anhquancao commented on May 28, 2024

Great! You are welcome.

from scenerf.

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.