tsingqguo / ABA

We propose the adversarial blur attack (ABA) against visual object tracking.
MIT License
13 stars 5 forks source link

No module named 'pysot.tracker.tracker_builder_cross' #3

Open tianty opened 2 years ago

tianty commented 2 years ago

When I run the command “CUDA_VISIBLE_DEVICES=0 python -u ../../tools/attack_test.py --snapshot model.pth --dataset OTB100 --config config.yaml”, the error occurs of: Traceback (most recent call last): File "../../tools/attack_test.py", line 21, in from pysot.tracker.tracker_builder_cross import build_trackerC ModuleNotFoundError: No module named 'pysot.tracker.tracker_builder_cross'

It seems the module of pysot are not found. However, I had fully installed the Pysot module and test in cmd.exe. In the attack_test.py, the all the import command of pysot are work except the 'from pysot.tracker.tracker_builder_cross import build_trackerC' and 'from pysot.models.model_builder_cross import CROSSModelBuilder'.

So I go to official github repo of Pysot, and search the ' build_trackerC ' and ' CROSSModelBuilder '. But there no search results of these two functions. I don't kown how to import these two functions and make the code work.

Besides, another question is that 'model.pth' is model pretrained? And where can I download?

THANKS FOR YOUR HELP!

standbytakme commented 2 years ago

You can try adding pysot to the environment variable,I also want to get the author's training model cl, clean, guo, csa

tianty commented 2 years ago

I already added the dictionary of pysot to the system environment variable. But the function ' build_trackerC ' and ' CROSSModelBuilder ' can not be searched in the pysot source code. And I have take a look in the tracker moduled of pysot source code. So I doubted that there maybe some functions the author did not give.

standbytakme commented 2 years ago

I think so, many things are missing. The author did not give a trained model, nor did he say how to train his own model, but directly gave an evaluation model, such as cl, clean, and guo. Several new models are defined in the experiments folder. They are not the original models of pysot. There is only config in them. The author did not say what data sets were used for training.

chengchangwen commented 1 year ago

You can try adding pysot to the environment variable,I also want to get the author's training model cl, clean, guo, csa

I met this problem too, thanks to your advice I solved it. But I meet new issues now, from ltr.external.PreciseRoIPooling.pytorch.prroi_pool import PrRoIPool2D ModuleNotFoundError: No module named 'ltr.external.PreciseRoIPooling.pytorch' I wonder if you have met this problem? Thanks again.