Skip to content

Commit

Permalink
fix build error when enble MMDEPLOY_ACTIVE_LEVEL
Browse files Browse the repository at this point in the history
  • Loading branch information
lvhan028 committed Jan 19, 2022
1 parent 64660f7 commit 2691281
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion csrc/codebase/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace mmdeploy {
class Context {
public:
explicit Context(const Value& config) {
DEBUG("config: {}", cfg);
DEBUG("config: {}", config);
device_ = config["context"]["device"].get<Device>();
stream_ = config["context"]["stream"].get<Stream>();
}
Expand Down
4 changes: 2 additions & 2 deletions csrc/codebase/mmdet/object_detection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ Result<DetectorOutput> ResizeBBox::GetBBoxes(const Value& prep_res, const Tensor
rect[3] - rect[1]);
continue;
}
DEBUG("remap left {}, top {}, right {}, bottom {}", rect.left, rect.top, rect.right,
rect.bottom);
DEBUG("remap left {}, top {}, right {}, bottom {}", rect[0], rect[1], rect[2],
rect[3]);
DetectorOutput::Detection det{};
det.index = i;
det.label_id = static_cast<int>(*labels_ptr);
Expand Down

0 comments on commit 2691281

Please sign in to comment.