"vscode:/vscode.git/clone" did not exist on "ec1aded12e8fbdc98d6703f9111ed824addebc77"
Fix WeightedSampler to also work with adhoc datasets
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/437 # Problem - We use `TRAIN_CATEGORIES` to overrider the classes for convenient experimentation, to not have to re-map the JSON file - But it's not possible to use the WeightedTrainingSampler with specified repeat factors (`DATASETS.TRAIN_REPEAT_FACTOR`) when also overriding the classes to use for training (ad-hoc datasets), because the underlying dataset name doesn't match the datasets specified in the `TRAIN_REPEAT_FACTOR` pairs (mapping between <dataset_name, repeat_factor>) # Fix - Update the dataset names for the REPEAT_FACTORS mapping as well, if we have enabled the `WeightedTrainingSampler` and use ad-hoc datasets. Reviewed By: wat3rBro Differential Revision: D41765638 fbshipit-source-id: 51dad484e4d715d2de900b5d0b7c7caa19903fb7
Showing
Please register or sign in to comment