GithubHelp home page GithubHelp logo

Comments (3)

Karthikaddagadderamesh avatar Karthikaddagadderamesh commented on July 26, 2024 1

@dLopes-SE @rjose97 Hello I plan to use network to train on my own dataset. I already have a dataset which contains RGB images,semantic labels images and RGBD images. I would like to know if I could create planes and plane normal for my own dataset and use it.

Any information is welcomed
Thanks in advance

from planercnn.

dLopes-SE avatar dLopes-SE commented on July 26, 2024

Hello @rjose97,

You should change ScanNet class in order to load your files and, instead of only loading one .npy file with all the planar equations in world coordinates (like PlaneRCNN does), you need to load a .npy or a .txt, in my case, for each frame.
Then you need to associate each segmentation to each plane, which is your question. You can do it with something like this:

newPlanes = []  
        newPlaneInfo = []
        newSegmentation = np.full(segmentation.shape, fill_value=-1)
        newIndex = 0

        for oriIndex, count in segmentList:
            # Non-planar label
            if oriIndex == 0:
                continue
                
            # Case plane does not exist (due to an error in Matlab)
            if np.amax(planes[oriIndex-1]) == 0:
                continue

            newPlanes.append(planes[oriIndex-1])   
            newSegmentation[segmentation == oriIndex] = newIndex
            #newPlaneInfo.append(self.plane_info[oriIndex] + [oriIndex])
            newIndex += 1
            continue

segmentation = newSegmentation
planes = np.array(newPlanes)
plane_info = newPlaneInfo   

Note: My data generator has an error is some unique frames, that's why I'm checking it.

I hope it was usefull, good luck.

Greetings,
Dylan Lopes, UC, Portugal.

from planercnn.

rjose97 avatar rjose97 commented on July 26, 2024

Thank you so much

from planercnn.

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.