Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't run test.py correctly. #588

Closed
lattetaki opened this issue Apr 2, 2023 · 2 comments
Closed

can't run test.py correctly. #588

lattetaki opened this issue Apr 2, 2023 · 2 comments

Comments

@lattetaki
Copy link

I tried several hours and checked almost all the issues, still cannot run the test.py. I fixed many times, there are always errors, the most common one is:

loading OTB100: 0%| | 0/100 [00:00<?, ?it/s, Basketball][ WARN:0@3.945] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread_('/root/SiamRPNpp/pysot/experiments/siamrpn_r50_l234_dwxcorr/Basketball/img/0001.jpg'): can't open/read file: check file path/integrity
loading OTB100: 0%| | 0/100 [00:00<?, ?it/s, Basketball]
Traceback (most recent call last):
File "../../tools/test.py", line 226, in
main()
File "../../tools/test.py", line 56, in main
dataset = DatasetFactory.create_dataset(name=args.dataset,
File "/root/SiamRPNpp/pysot/toolkit/datasets/init.py", line 24, in create_dataset
dataset = OTBDataset(**kwargs)
File "/root/SiamRPNpp/pysot/toolkit/datasets/otb.py", line 95, in init
self.videos[video] = OTBVideo(video,
File "/root/SiamRPNpp/pysot/toolkit/datasets/otb.py", line 26, in init
super(OTBVideo, self).init(name, root, video_dir,
File "/root/SiamRPNpp/pysot/toolkit/datasets/video.py", line 27, in init
assert img is not None, self.img_names[0]
AssertionError: /root/SiamRPNpp/pysot/experiments/siamrpn_r50_l234_dwxcorr/Basketball/img/0001.jpg

I'm confused because according to the quick start, there should no other folders under the siamrpn_r50_l234_dwxcorr, especially it's like a dataset. My dataset has been put into testing_dataset.

By the way, because of my NVIDIA turing GPU, I have to use CUDA 11.X and matched torch. Is this the problem? According to the error information, I don't think so but nothing else to explain.

@lattetaki
Copy link
Author

this issue has been solved. I put the datasets into ./experiments/siamrpnXXX/, then the test.py started to work. It's not same as tutorial.

@lattetaki
Copy link
Author

this problem is same as #399

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant