-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Weakness: duplicated path concatenation in the toolkit/dataset/vot.py #294
Comments
Thanks for pointing out |
Hi, I have a fix for this, but somehow don't have permission to open a PR. Are you guys still accepting contributions? |
Of course we are accepting contributions, could you please share the error message? |
Yup, when I push my PR I get the following message: |
You should fork this repo first, which should appear as |
Oops, totally forgot about forking the repo, thanks! |
Fixed handling relative paths #294
Hi, |
When I test on UAV123 after "cd experiments/siamrpn_r50_l234_dwxcorr", x == "group1/001333.jpg"
os.path.abspath(x) == "~/pysot/experiments/siamrpn_r50_l234_dwxcorr/group1/001333.jpg" However, the converted x should be "~/pysot/testing_dataset/UAV123/group1/001333.jpg" In this situation, the code should be
The "img_names" should be relative path starting from "root". |
Fixed handling relative paths STVIR#294
@ZhiyuanChen There is a PR merged for this issue. Is this issue closed? If not, I would like to contribute |
As the title describes, there exists two times path concatenations for the member variable named
img_names
belonged to theVOTVideo
class.One of them occurs at
line 18
intoolkit/dataset/video.py
, and the other one is atline 53
intoolkit/dataset/vot.py
if the variableload_img
is set toFalse
.Here are some examples.
absolute path
relative path
Consequently, if users pass a relative path to the
toolkit.datasets.DatasetFactory.create_dataset
method, their programs will crash. So, please fix this weakness timely.The text was updated successfully, but these errors were encountered: