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
084a3890
Commit
084a3890
authored
Jul 08, 2019
by
Jiaqi Wang
Committed by
Kai Chen
Jul 08, 2019
Browse files
fix a potential bug in GroupSampler (#955)
parent
b8bcda67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmdet/datasets/loader/sampler.py
mmdet/datasets/loader/sampler.py
+1
-1
No files found.
mmdet/datasets/loader/sampler.py
View file @
084a3890
...
...
@@ -67,7 +67,7 @@ class GroupSampler(Sampler):
range
(
len
(
indices
)
//
self
.
samples_per_gpu
))
]
indices
=
np
.
concatenate
(
indices
)
indices
=
torch
.
from_numpy
(
indices
).
long
()
indices
=
indices
.
astype
(
np
.
int64
).
tolist
()
assert
len
(
indices
)
==
self
.
num_samples
return
iter
(
indices
)
...
...
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