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
329748c0
Commit
329748c0
authored
May 07, 2020
by
liyinhao
Browse files
add assertion
parent
470a58ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
mmdet3d/datasets/pipelines/indoor_augment.py
mmdet3d/datasets/pipelines/indoor_augment.py
+1
-0
No files found.
mmdet3d/datasets/pipelines/indoor_augment.py
View file @
329748c0
...
...
@@ -147,6 +147,7 @@ class IndoorGlobalRotScale(object):
# Augment RGB color
if
self
.
use_color
:
assert
points
.
shape
[
1
]
>=
6
rgb_color
=
points
[:,
3
:
6
]
+
self
.
color_mean
# brightness change for each channel
rgb_color
*=
(
1
+
0.4
*
np
.
random
.
random
(
3
)
-
0.2
)
...
...
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