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
OpenPCDet
Commits
5904f8e3
Commit
5904f8e3
authored
Jul 03, 2020
by
Shaoshuai Shi
Browse files
remove warning from yaml and dbsampler (#121)
* remove warning from yaml and dbsampler
parent
4337fc4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
pcdet/config.py
pcdet/config.py
+4
-4
pcdet/datasets/augmentor/database_sampler.py
pcdet/datasets/augmentor/database_sampler.py
+1
-1
No files found.
pcdet/config.py
View file @
5904f8e3
...
...
@@ -51,9 +51,9 @@ def merge_new_config(config, new_config):
if
'_BASE_CONFIG_'
in
new_config
:
with
open
(
new_config
[
'_BASE_CONFIG_'
],
'r'
)
as
f
:
try
:
yaml_config
=
yaml
.
load
(
f
)
except
:
yaml_config
=
yaml
.
load
(
f
,
Loader
=
yaml
.
FullLoader
)
except
:
yaml_config
=
yaml
.
load
(
f
)
config
.
update
(
EasyDict
(
yaml_config
))
for
key
,
val
in
new_config
.
items
():
...
...
@@ -70,9 +70,9 @@ def merge_new_config(config, new_config):
def
cfg_from_yaml_file
(
cfg_file
,
config
):
with
open
(
cfg_file
,
'r'
)
as
f
:
try
:
new_config
=
yaml
.
load
(
f
)
except
:
new_config
=
yaml
.
load
(
f
,
Loader
=
yaml
.
FullLoader
)
except
:
new_config
=
yaml
.
load
(
f
)
merge_new_config
(
config
=
config
,
new_config
=
new_config
)
...
...
pcdet/datasets/augmentor/database_sampler.py
View file @
5904f8e3
...
...
@@ -164,7 +164,7 @@ class DataBaseSampler(object):
"""
gt_boxes
=
data_dict
[
'gt_boxes'
]
gt_names
=
data_dict
[
'gt_names'
]
gt_names
=
data_dict
[
'gt_names'
]
.
astype
(
str
)
existed_boxes
=
gt_boxes
total_valid_sampled_dict
=
[]
for
class_name
,
sample_group
in
self
.
sample_groups
.
items
():
...
...
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