Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pysot
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kristýna Janků
pysot
Commits
f6ac48de
There was an error fetching the commit references. Please try again later.
Commit
f6ac48de
authored
4 years ago
by
Vishi Nehra
Browse files
Options
Downloads
Patches
Plain Diff
Fixed handling relative paths #294
parent
2bab97fb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
toolkit/datasets/video.py
+1
-1
1 addition, 1 deletion
toolkit/datasets/video.py
toolkit/datasets/vot.py
+1
-1
1 addition, 1 deletion
toolkit/datasets/vot.py
with
2 additions
and
2 deletions
toolkit/datasets/video.py
+
1
−
1
View file @
f6ac48de
...
...
@@ -15,7 +15,7 @@ class Video(object):
self
.
gt_traj
=
gt_rect
self
.
attr
=
attr
self
.
pred_trajs
=
{}
self
.
img_names
=
[
os
.
path
.
join
(
root
,
x
)
for
x
in
img_names
]
self
.
img_names
=
[
os
.
path
.
join
(
os
.
path
.
abspath
(
root
)
,
os
.
path
.
abspath
(
x
)
)
for
x
in
img_names
]
self
.
imgs
=
None
if
load_img
:
...
...
This diff is collapsed.
Click to expand it.
toolkit/datasets/vot.py
+
1
−
1
View file @
f6ac48de
...
...
@@ -50,7 +50,7 @@ class VOTVideo(Video):
self
.
tag_names
=
list
(
self
.
tags
.
keys
())
if
not
load_img
:
img_name
=
os
.
path
.
join
(
root
,
self
.
img_names
[
0
])
img_name
=
os
.
path
.
join
(
os
.
path
.
abspath
(
root
)
,
os
.
path
.
abspath
(
self
.
img_names
[
0
])
)
img
=
np
.
array
(
Image
.
open
(
img_name
),
np
.
uint8
)
self
.
width
=
img
.
shape
[
1
]
self
.
height
=
img
.
shape
[
0
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment