New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when inference with other datasest #86
Comments
I have solved that by changing the |
Thanks. May you give me some hints on how to fine tune the model on a small dataset for specific purpose? |
I also try to train the model on my own dataset, I didn't have the problem as u said since my points are 6 times more than KITTI. I do found some hyper-parameters, i.e. LOC_SCOPE, LOC_BIN_SIZE, CLS_MEAN_SIZE |
I'm also experimenting tbh, but I can recommend reducing the number of sample points |
Those are more class-related if that's your purpose I recommend to follow |
OK. Thank you very much. One last question: Is it correct to infer on a different dataset with the model trained on KITTI by only changing the paths of dataloader functions in kittidataset.py? No more actions on augmented scenes or rpn features? |
Make sense, since the line the script crashed is all about sample numbers. BTW, do you use the default parameters in the config file? |
Using |
I modified some items I said before. My dataset is consist of depth images captured by binocular camera and then I transformed these depth images to point clouds. Maybe both of us should follow PointPillars paper setting definition as recommended. |
Excuse me for unable to make it clear. I trained the rcnn with offline method so finetuning the network may call for actions on the data (but I changed it to online, so it's not an issue now). If I want to finetune RPN I might need to do the same thing. Is the checkpoint of an rcnn the only parameter file we need to evaluate, finetune or infer on a dataset? What about rpn? (including the default.yaml) |
Indeed you can update some params in |
Where is this flag set? I can't find it. Having issues getting the network to ignore images. |
Hello, developers. I trained the model on KITTI object dataset and I tried to use it on another point cloud dataset, but the dataloader crashed. May you give some advice on this issus?
I made my point cloud dataset KITTI-like: it has identity calibration file and lidar and label folders. but no pictures. I set a flag to ignore the image input. Unfortunately the rpn couldn't get the correct samples.
File ".../PointRCNN-master/tools/../lib/datasets/kitti_rcnn_dataset.py", line 238, in getitem
return self.get_rpn_sample(index)
File ".../PointRCNN-master/tools/../lib/datasets/kitti_rcnn_dataset.py", line 304, in get_rpn_sample
extra_choice = np.random.choice(choice, self.npoints - len(pts_rect), replace=False)
File "mtrand.pyx", line 1168, in mtrand.RandomState.choice
ValueError: Cannot take a larger sample than population when 'replace=False'
The text was updated successfully, but these errors were encountered: