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
f53de2be
"rust/git@developer.sourcefind.cn:change/sglang.git" did not exist on "499c85f1318d5ad914a599050bd3f616a28007e0"
Commit
f53de2be
authored
Oct 01, 2019
by
Claudio Michaelis
Committed by
Kai Chen
Oct 02, 2019
Browse files
Fix robustness data pipeline (#1476)
parent
3dc9ddb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tools/test_robustness.py
tools/test_robustness.py
+2
-2
No files found.
tools/test_robustness.py
View file @
f53de2be
...
@@ -350,9 +350,9 @@ def main():
...
@@ -350,9 +350,9 @@ def main():
aggregated_results
[
corruptions
[
0
]][
0
]
aggregated_results
[
corruptions
[
0
]][
0
]
continue
continue
test_data_cfg
=
copy
.
deepcopy
(
cfg
.
data
.
test
)
# assign corruption and severity
# assign corruption and severity
if
corruption_severity
>
0
:
if
corruption_severity
>
0
:
test_data_cfg
=
copy
.
deepcopy
(
cfg
.
data
.
test
)
corruption_trans
=
dict
(
corruption_trans
=
dict
(
type
=
'Corrupt'
,
type
=
'Corrupt'
,
corruption
=
corruption
,
corruption
=
corruption
,
...
@@ -368,7 +368,7 @@ def main():
...
@@ -368,7 +368,7 @@ def main():
# build the dataloader
# build the dataloader
# TODO: support multiple images per gpu
# TODO: support multiple images per gpu
# (only minor changes are needed)
# (only minor changes are needed)
dataset
=
build_dataset
(
cfg
.
data
.
test
)
dataset
=
build_dataset
(
test_data_cfg
)
data_loader
=
build_dataloader
(
data_loader
=
build_dataloader
(
dataset
,
dataset
,
imgs_per_gpu
=
1
,
imgs_per_gpu
=
1
,
...
...
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