Skip to content

Potential dataset selection issue in build_train_loader #159

@ChristopherKotthoff

Description

@ChristopherKotthoff

Description

I suspect that in the build_train_loader method, the line for i, datas in enumerate(DatasetCatalog.get(cfg.DATASETS.TRAIN[0])): always references the first dataset in cfg.DATASETS.TRAIN. If training with multiple datasets, this might lead to incorrect size values for datasets beyond the first one.

Steps to Confirm

  1. Set cfg.DATASETS.TRAIN with multiple datasets.
  2. Call build_train_loader with a dataset that isn't the first in the list.
  3. Check if the size is based on the current dataset or always the first one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions