Skip to content

Is class numbering with gaps supported for training on custom datasets? #669

Open

Description

@MJ0t

Checklist

My Question

Hi,

I have data following the standard Las classification, meaning that some indices are unused or reserved. If possible I would like to use this data directly and only configure dataset and pipeline to handle the class to index mapping.
I am fine-tuning a KP-Conv model with the output layer modified to fit our number of classes.

From the CustomDataset3D label_to_index - template I assume that a mapping from a arbitrary class number to the consecutive output-channel index is somehow supported.

When running the training pipeline, I get an index out of bounds error here, since the 'label' == 65 is greater than my number of classes.

It is not a big deal to write the processing to re-index the class numbers. I am just wondering: is this functionality is actually supported? And, I am missing something completely?

Thanks in advance for any support

Activity

  1. added
    question
    on Jan 13, 2025
  2. Inshu0302 commented on Sep 24, 2025

    @Inshu0302

    Hi, facing similar issue, did you find any solution to this. I have 17 classes but I want to ignore some during training but getting the same number of classes in accuracy and val.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions