Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/czgdp1807/ptrustintervalsood
Probabilistic Trust Intervals For Detecting Out of Distribution Images
https://github.com/czgdp1807/ptrustintervalsood
aritificial-intelligence deep-learning deep-neural-networks image-classification out-of-distribution-detection
Last synced: 28 days ago
JSON representation
Probabilistic Trust Intervals For Detecting Out of Distribution Images
- Host: GitHub
- URL: https://github.com/czgdp1807/ptrustintervalsood
- Owner: czgdp1807
- License: mit
- Created: 2021-07-23T15:05:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-24T08:37:39.000Z (over 3 years ago)
- Last Synced: 2024-11-09T19:49:14.699Z (3 months ago)
- Topics: aritificial-intelligence, deep-learning, deep-neural-networks, image-classification, out-of-distribution-detection
- Language: Python
- Homepage: https://arxiv.org/abs/2102.01336v2
- Size: 6.7 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This folder contains the source code and weights for the experiments of our work, `Probability Trust Intervals for Out of Distribution Input Detection`.
### Directory Structure
1. The files Cn.py (n denotes the architecture number) contains the code for the Perturbed-NNs.
2. The files, Cn_Eval.py (n denotes the architecture number) contains the code for evaluation of all the considered baselines and our proposed approach.### Experimental Setup
All the experiments are done on [Google Colaboratory](https://colab.research.google.com/). The links to original files have been removed for the purpose of double blind review. If you are interested in executing our code, you may follow the steps given below,
1. Upload the code files to the above website.
2. Create a `weights` folder in your Google drive. Under this folder, create, `mnist` subfolder for weights of `mnist`, `cifar10` subfolder for weights of `cifar10` and so on for other datasets.
3. Mount Google drive to Google colaboratory. You may use [these instructions](https://colab.research.google.com/notebooks/io.ipynb#scrollTo=u22w3BFiOveA) in order to do the same.
4. Change the `prefix` variable (search for `prefix = ""`) in the uploaded code file to the path of parent folder of `weights` in your Google drive. For example if your `weights` folder is somewhere in the path, `./drive/My Drive/reviewCode/PNN/weights` then value of `prefix` should be `./drive/My Drive/reviewCode/PNN/` (observe that the path is to `PNN`, the parent folder of `weights`).
5. Now you should be able to run the notebook and re-generate the results.### Note
We are unable to provide weights of CNNs and PNNs due to the maximum file size limit imposed for the supplementary material.