Code Monkey home page Code Monkey logo

Comments (7)

ltphy avatar ltphy commented on July 16, 2024

in dataset.py, when preparing data, the ground truth boxes are filtered with point cloud range. You may comment this.
Or do a clean-up with boxes outside the pointcloud range when create a pickle train file.

from openpcdet.

PengfeiMa avatar PengfeiMa commented on July 16, 2024

Hi, @vatsal-shah, I met the same error as yours. I also Nuscenes to the KITTI format using their script.
But I found that there are some label file is empty in train set and val set, just del the empty label file name from the ImageSet/train.txt or val.txt.
It works!

from openpcdet.

sshaoshuai avatar sshaoshuai commented on July 16, 2024

We will re-sample a scene if we find there doesn't exist any objects in current scene. See #340.

from openpcdet.

GYE19970220 avatar GYE19970220 commented on July 16, 2024

Hi, @vatsal-shah, I met the same error as yours. I also Nuscenes to the KITTI format using their script.
But I found that there are some label file is empty in train set and val set, just del the empty label file name from the ImageSet/train.txt or val.txt.
It works!

Hi @PengfeiMa ,I met the same error as yours, how to check if the label file is empty or not ?

from openpcdet.

PengfeiMa avatar PengfeiMa commented on July 16, 2024

@GYE19970220 Open the label file, if there is nothing, then delete the file name from the ImageSet/train.txt or val.txt.

from openpcdet.

GYE19970220 avatar GYE19970220 commented on July 16, 2024

@PengfeiMa Thanks, bro. I have found the empty label. Del them and train other problem occurs,I will keep on going.Can you leave a mailbox to facilitate communication?Mine [email protected]

from openpcdet.

maxiuw avatar maxiuw commented on July 16, 2024

As nonsense as it is, I didn't find any other way than really remove it from the train.txt file. Additionally it is not super easy to identify which label is wrong since it does not crash right away. My brute force fix is adding to get_infos loop this

 try:
    annotations['bbox'] = np.concatenate([obj.box2d.reshape(1, 4) for obj in obj_list], axis=0)
except:
    print(sample_idx)
    
    file = open("/home/raghav/code/UDA/DA-IA-SSD/data/kitti/ImageSets/val.txt", "r")
    lines = file.readlines()
    new_lines = []
    for line in lines:
        if sample_idx not in line.strip():
            new_lines.append(line)
    file.close()
    file = open("/home/raghav/code/UDA/DA-IA-SSD/data/kitti/ImageSets/val.txt", "w")
    file.writelines(new_lines)
    file.close()

from openpcdet.

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.