Skip to content

๐Ÿš€ Quick Start

๐Ÿ“ฆ Installation

It is recommended to use anaconda3 to manage and maintain the python library environment.

  1. Download the .sh file from the anaconda3 website
  2. Install anaconda3 with .sh file
Bash
bash Anaconda3-2023.03-Linux-x86_64.sh

๐Ÿ”ง Environment Setup

Create and activate a virtual environment:

Bash
1
2
3
4
conda create -n openhaiv python=3.10 -y
conda activate openhaiv
pip install -r requirements.txt
python setup.py install

Required packages:

  • pytorch>=1.12.0 torchvision>=0.13.0 (recommend official torch command)
  • numpy>=1.26.4
  • scipy>=1.14.0
  • scikit-learn>=1.5.1

๐Ÿƒโ€โ™‚๏ธ Running Examples

๐Ÿšจ Out-of-Distribution Detection

Bash
python ncdia/train.py --cfg configs/pipeline/ood_detection/msp/det_oes_rn50_msp_train.yaml --opts device='cuda:0'

๐ŸŒฑ Class-incremental Learning

Bash
bash ./scripts/inc_BM200_lwf.sh  

๐Ÿ” Novel Class Discovery

Bash
1
2
3
4
5
6
# Set required parameters
# - model weight in weight_path
# - id_txt_file and ood_txt_file
# - output_dir

python ncd.py