Skip to content
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 changing point cloud and label directories in segmentation mode #172

Open
brufe163 opened this issue Oct 23, 2024 · 0 comments
Open
Assignees

Comments

@brufe163
Copy link

brufe163 commented Oct 23, 2024

Describe the bug
When I'm trying to use my custom dataset (.pcd files) for segmentation, if I change the directory of the pointclouds and labels, the following error is displayed:

Loading segmentation labels from labels/segmentation/000.bin.
Traceback (most recent call last):
  File "/home/bruno/miniconda3/envs/dust-filtering/lib/python3.11/site-packages/labelCloud/view/gui.py", line 611, in change_pointcloud_folder
    self.controller.pcd_manager.get_next_pcd()
  File "/home/bruno/miniconda3/envs/dust-filtering/lib/python3.11/site-packages/labelCloud/control/pcd_manager.py", line 104, in get_next_pcd
    self.pointcloud = PointCloud.from_file(
                      ^^^^^^^^^^^^^^^^^^^^^
  File "/home/bruno/miniconda3/envs/dust-filtering/lib/python3.11/site-packages/labelCloud/model/point_cloud.py", line 174, in from_file
    labels = seg_handler.read_or_create_labels(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bruno/miniconda3/envs/dust-filtering/lib/python3.11/site-packages/labelCloud/io/segmentations/base.py", line 26, in read_or_create_labels
    raise ValueError(
ValueError: The segmentation label doesn't match with the point cloud, label file contains {labels.shape[0]} while point cloud contains {num_points}.
Aborted (core dumped)

To Reproduce
Steps to reproduce the behavior:

  1. Run labelCloud on the terminal
  2. Select segmentation mode, modify classes, click on save
  3. Go to File and click on Set Label Folder, and change it
  4. Go to File again and click on Set Point Cloud Folder, and change it
  5. Done

Desktop (please complete the following information):

  • OS: Ubuntu 20.04.6 LTS 64-bit
  • Python Version: 3.11.9
  • Installation: pip, on conda environment

Additional context
Sometimes it just works, but I haven't figured out why. It's a really great and useful tool but lately it's just not working :(
Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants