-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace ImageNet ensemble baseline with Robustness Metrics.
There are two approaches to implement ensembles. 1. Load all SavedModels into a single model. + Pro: Simple to compute results. + Con: All models must fit in memory and compute can't parallelize across models. 2. Eval each model in parallel, saving predictions. Then load predictions and compute metrics. (approach in Uncertainty Baselines) + Pro: Scales with compute and memory. + Con: Requires two stages (the first uses accelerators, the second is CPU-only). We're already doing the first stage to report non-ensemble results. So two stages is not that inconvenient. This CL does #2. Fixes google/uncertainty-baselines#63, google/uncertainty-baselines#71. Note: I added 'ece' back to the imagenet_variants report. PiperOrigin-RevId: 370938990
- Loading branch information
1 parent
8370957
commit f5de029
Showing
2 changed files
with
18 additions
and
5 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