pcod-common
v1.0.0
Shared preprocessing and postprocessing for point-cloud object detection
Loading...
Searching...
No Matches
pbod_postprocess.hpp
Go to the documentation of this file.
1
// Copyright Institute for Automotive Engineering (ika), RWTH Aachen University
2
// SPDX-License-Identifier: Apache-2.0
3
4
#pragma once
5
6
#include <string>
7
#include <vector>
8
9
#include "
pcod_common/bounding_box.hpp
"
10
#include "
pcod_common/pillar_grid.hpp
"
11
12
namespace
pcod_common
{
13
15
struct
PbodPostprocessConfig
{
16
std::vector<std::string>
class_names
;
17
std::vector<float>
score_thresholds
;
18
};
19
21
struct
PbodOutputsView
{
22
const
float
*
focal_logits
=
nullptr
;
23
const
float
*
size_posterior
=
nullptr
;
24
const
float
*
class_logits
=
nullptr
;
25
const
float
*
reg_logits
=
nullptr
;
26
int
num_pillars
= 0;
27
int
num_classes
= 0;
28
int
reg_dim
= 0;
29
};
30
37
std::vector<BoundingBox>
DecodePbod
(
const
PbodOutputsView
& outputs,
const
PillarGrid
& grid,
const
PbodPostprocessConfig
& config);
38
39
}
// namespace pcod_common
bounding_box.hpp
pcod_common
Definition
bounding_box.hpp:9
pcod_common::DecodePbod
std::vector< BoundingBox > DecodePbod(const PbodOutputsView &outputs, const PillarGrid &grid, const PbodPostprocessConfig &config)
Definition
pbod_postprocess.cpp:24
pillar_grid.hpp
pcod_common::PbodOutputsView
Definition
pbod_postprocess.hpp:21
pcod_common::PbodOutputsView::focal_logits
const float * focal_logits
Shape [num_pillars].
Definition
pbod_postprocess.hpp:22
pcod_common::PbodOutputsView::num_classes
int num_classes
Number of semantic classes.
Definition
pbod_postprocess.hpp:27
pcod_common::PbodOutputsView::reg_dim
int reg_dim
Regression values per pillar and class.
Definition
pbod_postprocess.hpp:28
pcod_common::PbodOutputsView::num_pillars
int num_pillars
Number of spatial pillars.
Definition
pbod_postprocess.hpp:26
pcod_common::PbodOutputsView::class_logits
const float * class_logits
Shape [num_pillars, num_classes].
Definition
pbod_postprocess.hpp:24
pcod_common::PbodOutputsView::size_posterior
const float * size_posterior
Shape [num_pillars, num_classes * 3].
Definition
pbod_postprocess.hpp:23
pcod_common::PbodOutputsView::reg_logits
const float * reg_logits
Shape [num_pillars, num_classes * reg_dim].
Definition
pbod_postprocess.hpp:25
pcod_common::PbodPostprocessConfig
Definition
pbod_postprocess.hpp:15
pcod_common::PbodPostprocessConfig::score_thresholds
std::vector< float > score_thresholds
Per-class thresholds, or one shared threshold.
Definition
pbod_postprocess.hpp:17
pcod_common::PbodPostprocessConfig::class_names
std::vector< std::string > class_names
Class name in model-output order.
Definition
pbod_postprocess.hpp:16
pcod_common::PillarGrid
Definition
pillar_grid.hpp:12
include
pcod_common
pbod_postprocess.hpp
Generated by
1.12.0