-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Pull Request resolved: #5245 X-link: fairinternal/detectron2#602 For sampler **RepeatFactorTrainingSampler**, current per-category weight is computed as **1/sqrt(frequency)**. This works fine on LVIS but is not sufficient in highly imbalanced data we have for person segmentation. Thus we add an argument **DATALOADER.REPEAT_SQRT**. If false, we compute per-category weight as **1/frequency**. This change is entirely back-compatible. Reviewed By: wat3rBro Differential Revision: D55355021 Privacy Context Container: L1165023 fbshipit-source-id: 6bca2eecc3b9a7b4693a288c5779627254cd5ec5
- Loading branch information
1 parent
eb96ee1
commit afe9eb9
Showing
3 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters