Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
SOLOv2-pytorch
Commits
44ff9983
Commit
44ff9983
authored
Aug 02, 2019
by
l-ilya
Committed by
Kai Chen
Aug 02, 2019
Browse files
fixed misspell in the "filename" key of img_info (#1107)
parent
009a82c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmdet/datasets/custom.py
mmdet/datasets/custom.py
+1
-1
No files found.
mmdet/datasets/custom.py
View file @
44ff9983
...
@@ -239,7 +239,7 @@ class CustomDataset(Dataset):
...
@@ -239,7 +239,7 @@ class CustomDataset(Dataset):
if
self
.
with_seg
:
if
self
.
with_seg
:
gt_seg
=
mmcv
.
imread
(
gt_seg
=
mmcv
.
imread
(
osp
.
join
(
self
.
seg_prefix
,
osp
.
join
(
self
.
seg_prefix
,
img_info
[
'file
_
name'
].
replace
(
'jpg'
,
'png'
)),
img_info
[
'filename'
].
replace
(
'jpg'
,
'png'
)),
flag
=
'unchanged'
)
flag
=
'unchanged'
)
gt_seg
=
self
.
seg_transform
(
gt_seg
.
squeeze
(),
img_scale
,
flip
)
gt_seg
=
self
.
seg_transform
(
gt_seg
.
squeeze
(),
img_scale
,
flip
)
gt_seg
=
mmcv
.
imrescale
(
gt_seg
=
mmcv
.
imrescale
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment