Ido Galil, Mohammed Dabbah
We lifted 15 functions out of this paper's own repositories and ran 13 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.
| Repository | Role | Ran |
|---|---|---|
| mdabbah/COOD_benchmarking | canonical | 13 of 15 |
| Function | Status | Where it lives |
|---|---|---|
| args_dict_to_str | Ran | mdabbah/COOD_benchmarking/utils/misc.py code served (permissive licence) · get_code("f704dc1ab9ae6439") |
| calc_l2_dist_fast_torch | Ran | mdabbah/COOD_benchmarking/utils/confidence_functions.py code served (permissive licence) · get_code("548f24b0b6d01680") |
| diversity_severity_alg | Ran | mdabbah/COOD_benchmarking/utils/confidence_functions.py code served (permissive licence) · get_code("6870ae7d795e4812") |
| get_base_transforms | Ran | mdabbah/COOD_benchmarking/utils/custom_dataset.py code served (permissive licence) · get_code("5fc7e2c633bc3477") |
| get_dataset_name | Ran | mdabbah/COOD_benchmarking/utils/input_handling_utilities.py code served (permissive licence) · get_code("07e0dbb1262e2c0f") |
| get_human_readable_time | Ran | mdabbah/COOD_benchmarking/utils/log_utils.py code served (permissive licence) · get_code("33d9d7ad6f7b9670") |
| get_kappa_name | Ran | mdabbah/COOD_benchmarking/utils/input_handling_utilities.py code served (permissive licence) · get_code("0b6e66d939f4327f") |
| get_testing_transform | Ran | mdabbah/COOD_benchmarking/utils/custom_dataset.py code served (permissive licence) · get_code("fb0c636e44c4ee60") |
| load_pickle | Ran | mdabbah/COOD_benchmarking/utils/data_utils.py code served (permissive licence) · get_code("5d7b6ddd15320485") |
| moving_average | Ran | mdabbah/COOD_benchmarking/utils/confidence_functions.py code served (permissive licence) · get_code("b9c97a558f872a5e") |
| normalize | Ran | mdabbah/COOD_benchmarking/utils/misc.py code served (permissive licence) · get_code("de3a9137e4fe787a") |
| open_img | Ran | mdabbah/COOD_benchmarking/utils/custom_dataset.py code served (permissive licence) · get_code("4d2d381bba47cbe0") |
| to_cpu | Ran | mdabbah/COOD_benchmarking/utils/misc.py code served (permissive licence) · get_code("f0964d89a30e7b99") |
| download_file | Not yet run | mdabbah/COOD_benchmarking/download_dummy_dataset.py code served (permissive licence) · get_code("42bc76618fad0419") |
| get_model_name | Not yet run | mdabbah/COOD_benchmarking/utils/input_handling_utilities.py code served (permissive licence) · get_code("e5b91eff514199b2") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
When deployed for risk-sensitive tasks, deep neural networks must be able to detect instances with labels from outside the distribution for which they were trained. In this paper we present a novel framework to benchmark the ability of image classifiers to detect class-out-of-distribution instances (i.e., instances whose true labels do not appear in the training distribution) at various levels of detection difficulty. We apply this technique to ImageNet, and benchmark 525 pretrained, publicly available, ImageNet-1k classifiers. The code for generating a benchmark for any ImageNet-1k classifier, along with the benchmarks prepared for the above-mentioned 525 models is available at https://github.com/mdabbah/COOD benchmarking. The usefulness of the proposed framework and its advantage over alternative existing benchmarks is demonstrated by analyzing the results obtained for these models, which reveals numerous novel observations including: (1) knowledge distillation consistently improves class-out-of-distribution (C-OOD) detection performance; (2) a subset of ViTs performs better C-OOD detection than any other model; (3) the language-vision CLIP model achieves good zero-shot detection performance, with its best instance outperforming 96% of all other models evaluated; (4) accuracy and in-distribution ranking are positively correlated to C-OOD detection; and (5) we compare various confidence functions for C-OOD detection. Our companion paper, also published in ICLR 2023 (Galil et al., 2023), examines the uncertainty estimation performance (ranking, calibration, and selective prediction performance) of these classifiers in an in-distribution setting.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2302.11893")
get_code_for_paper("2302.11893")
have("2302.11893")
Connect an agent — have() is free.