ohhhyeahhh / SiamCAR

SiamCAR: Siamese Fully Convolutional Classification and Regression for Visual Tracking (CVPR 2020, Oral)
https://openaccess.thecvf.com/content_CVPR_2020/html/Guo_SiamCAR_Siamese_Fully_Convolutional_Classification_and_Regression_for_Visual_Tracking_CVPR_2020_paper.html
322 stars 63 forks source link

RUN eval.py and demo.py error !! #39

Closed AstoncPou closed 2 years ago

AstoncPou commented 4 years ago

~1. :octocat:PROBLEM 1 (eval.py);when i run~

python eval.py --tracker_path ./results --dataset UAV123 --tracker_prefix 'model_genearl'

but i got :

Traceback (most recent call last): File "eval.py", line 12, in from toolkit.datasets import OTBDataset, UAVDataset, LaSOTDataset ModuleNotFoundError: No module named 'toolkit'`

  1. :octocat:PROBLEM 2(demo.py) when i run

python demo.py

but i GOT:

FileNotFoundError: [Errno 2] No such file or directory: './snapshot_r50/new_model.pth' so the dir and files is't found,it's misssing!!

  1. :octocat:pretrained_models/readme.md is NOTHING!

pretrained_models/readme.md is nothings!!

  1. :octocat:train.py when i run python train.py i got : FileNotFoundError: [Errno 2] No such file or directory: '/home/XXX/softs/SiamCAR/pysot/datasets/../../train_dataset/vid/train.json'
WangJun-ZJUT commented 4 years ago

For the problem of ModuleNotFoundError, please add the following code to the eval.py base_dir = os.path.dirname(os.path.dirname(os.path.abspath(file)) sys.path.append (base_dir)

For the problem of FileNotFoundError, please check your file path

iYbei commented 2 years ago

for the first problem ,you should run export PYTHONPATH=path/to/Siamcar:$PYTHONPATH in ubuntu