All kinds of contributions are welcome, including but not limited to the following.
- Adding additional detectors
- Fixing typos or bugs
- Improving documentation
- fork and pull the latest PyTorch-OOD repository
- checkout a new branch (do not use master/dev branch for PRs)
- commit your changes
- create a PR
If you plan to add some new features that involve large changes, it is encouraged to open an issue for discussion first.
We use pre-commit hook that checks and formats the code for automatically on every commit. The config for a pre-commit hook is stored in .pre-commit-config.
After you clone the repository, you will need to install pre-commit and initialize the pre-commit hook.
pip install -U pre-commit
From the repository folder
pre-commit install