๐ Quick Start
๐ฆ Installation
It is recommended to use anaconda3 to manage and maintain the python library environment.
- Download the .sh file from the anaconda3 website
- Install anaconda3 with .sh file
Bash |
---|
| bash Anaconda3-2023.03-Linux-x86_64.sh
|
๐ง Environment Setup
Create and activate a virtual environment:
Bash |
---|
| 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 |
---|
| # Set required parameters
# - model weight in weight_path
# - id_txt_file and ood_txt_file
# - output_dir
python ncd.py
|