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
OpenDAS
mmdetection3d
Commits
c2701467
"torchvision/vscode:/vscode.git/clone" did not exist on "611c23489e76a8c9b52f5edbb62af40f99bbe26b"
Unverified
Commit
c2701467
authored
Aug 02, 2021
by
Ziyi Wu
Committed by
GitHub
Aug 02, 2021
Browse files
fix bug in test.py (#819)
parent
31ef559a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tools/test.py
tools/test.py
+2
-1
No files found.
tools/test.py
View file @
c2701467
...
...
@@ -181,7 +181,8 @@ def main():
# palette for visualization in segmentation tasks
if
'PALETTE'
in
checkpoint
.
get
(
'meta'
,
{}):
model
.
PALETTE
=
checkpoint
[
'meta'
][
'PALETTE'
]
else
:
elif
hasattr
(
dataset
,
'PALETTE'
):
# segmentation dataset has `PALETTE` attribute
model
.
PALETTE
=
dataset
.
PALETTE
if
not
distributed
:
...
...
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