Official implementation of HyperTrack, including models and training&testing codes.
A new unified hyperspectral tracking framework (e.g. VIS, NIR, and RedNIR Tracking).
-
HyperTrack has high performance on hyperspectal tracking tasks.
-
A single model cross three kinds of hyperspectral images.
Create and activate a conda environment:
conda create -n hypertrack python=3.7
conda activate hypertrack
Install the required packages:
bash install_hypertrack.sh
Put the training datasets in ./data/. It should look like:
$<PATH_of_HyperTrack>
-- data
-- Test
|-- VIS
|-- NIR
|-- RedNIR
...
-- Train
|-- VIS
|-- NIR
|-- RedNIR
...
Run the following command to set paths:
cd <PATH_of_HyperTrack>
python tracking/create_default_local_file.py --workspace_dir . --data_dir ./data --save_dir ./output
You can also modify paths by these two files:
./lib/train/admin/local.py # paths for training
./lib/test/evaluation/local.py # paths for testing
Download the pretrained foundation model (Mixformer) and put it under ./pretrained_networks/.
python run_training.py
You can train models with various modalities and variants by modifying run_train.py
.
python test.py
You can test models with various modalities and variants by modifying test.py
.
- This repo is based on Mixformer which is an excellent work.
- We thank for the PyTracking library, which helps us to quickly implement our ideas.