This project provides a baseline model and evaluation code for track1 and track2 for CVPR23 3rd Anti-UAV workshop.
Test Set can be downloaded with following code:
from modelscope.msdatasets import MsDataset
from modelscope.utils.constant import DownloadMode
cache_dir = '/home/ly261666/datasets'
test_set_1 = MsDataset.load('3rd_Anti-UAV', namespace='ly261666', cache_dir=cache_dir, download_mode=DownloadMode.FORCE_REDOWNLOAD)
print(next(iter(test_set_1)))
You can also download dataset from the url。
Evaluate code can be seen in the section “Baseline Evaluation Code for test Set” in this page.
conda create -n anti_uav python=3.7
conda activate anti_uav
# pytorch >= 1.3.0
pip install torch==1.8.1+cu102 torchvision==0.9.1+cu102 torchaudio==0.8.1 --extra-index-url https://download.pytorch.org/whl/cu102
git clone https://github.com/ly19965/CVPR_Anti_UAV
cd CVPR_Anti_UAV
pip install -r requirements/tests.txt
pip install -r requirements/framework.txt
pip install -r requirements/cv.txt
pip install -r requirements/yolov5.txt
Run the download code:
from modelscope.msdatasets import MsDataset
from modelscope.utils.constant import DownloadMode
## set dataset path
cache_dir = '/home/ly261666/datasets'
# Download train set
train_set = MsDataset.load('3rd_Anti-UAV', namespace='ly261666', split='train', cache_dir=cache_dir, download_mode=DownloadMode.FORCE_REDOWNLOAD)
print(next(iter(train_set)))
# Download validation set
val_set = MsDataset.load('3rd_Anti-UAV', namespace='ly261666', split='validation', cache_dir=cache_dir, download_mode=DownloadMode.FORCE_REDOWNLOAD)
print(next(iter(val_set)))
cd CVPR_Anti_UAV
CUDA_VISIBLE_DEVICES=0 PYTHONPATH=. python tests/pipelines/test_anti-uav_val_track1.py
eval result: 0.125
Note:
cd CVPR_Anti_UAV
CUDA_VISIBLE_DEVICES=1 PYTHONPATH=. python tests/pipelines/test_anti-uav_val_track2.py
eval result: 0.125
Note:
## git pull ostracker code
git clone -b ostracker https://github.com/ly19965/CVPR_Anti_UAV
## Training code on Got-10k dataset
cd CVPR_Anti_UAV
PYTHONPATH=. python uav_scripts/train_ostracker_got10k_l.py
## Training code on Anti-UAV 2023 dataset
cd CVPR_Anti_UAV
PYTHONPATH=. python uav_scripts/train_ostracker_uav_l.py
Note:
## Training code on Got-10k dataset
cd CVPR_Anti_UAV
PYTHONPATH=. python uav_scripts/train_siamfc_got10k.py
## Training code on Anti-UAV 2023 dataset
cd CVPR_Anti_UAV
PYTHONPATH=. python uav_scripts/train_siamfc_uav.py
Note:
cd CVPR_Anti_UAV
PYTHONPATH=. python uav_scripts/test_anti-uav_val_track1.py
Note:
cd CVPR_Anti_UAV
CUDA_VISIBLE_DEVICES=1 PYTHONPATH=. python uav_scripts/train_uav_detection.py
Note:
cd CVPR_Anti_UAV
PYTHONPATH=. python uav_scripts/test_anti-uav_val_track2.py
eval result: 0.169
Note:
line 101 in uav_scripts/test_anti-uav_val_track2.py
tracker_model_path = ""
det_model_path = ""
uav_tracker.model.load_state_dcit(torch.load(tracker_model_path))
uav_detection.model.load_state_dcit(torch.load(det_model_path))
Note: Code is available now, but the test set will be released in 2023.03.07.
cd CVPR_Anti_UAV
python tests/pipelines/test_anti-uav_track1.py
Note:
[001/140] 20190925_131530_1_7 IR Fixed Measure: 0.245
[002/140] 20190925_213001_1_5 IR Fixed Measure: -0.164
[003/140] 20190925_222534_1_3 IR Fixed Measure: 0.800
[004/140] 20190926_183941_1_8 IR Fixed Measure: 0.754
...
[Overall] IR Mixed Measure:
cd CVPR_Anti_UAV
pip install -r yolov5/requirements.txt
python tests/pipelines/test_anti-uav_track2.py
Note: