Skip to content

Commit

Permalink
fix: add missing pfld outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
nullptr authored and LynnL4 committed Nov 26, 2024
1 parent 095ec88 commit d27fc8c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion sscma/core/ma_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "ma_exception.h"
#include "ma_types.h"

#define MA_VERSION "2024.11.13"
#define MA_VERSION "2024.11.25"
#define MA_VERSION_LENTH_MAX 32

#endif // MA_COMMON_H
6 changes: 2 additions & 4 deletions sscma/core/model/ma_model_pfld.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "ma_model_pfld.h"

#include <algorithm>
#include <vector>
#include <forward_list>

namespace ma::model {

Expand Down Expand Up @@ -96,11 +96,9 @@ ma_err_t PFLD::postProcessI8() {
point.score = 1.0;
point.target = i / 2;

results_.push_back(std::move(point));
results_.push_front(std::move(point));
}

results_.shrink_to_fit();

return MA_OK;
}

Expand Down
2 changes: 0 additions & 2 deletions sscma/core/model/ma_model_pfld.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef _MA_MODEL_PFLD_
#define _MA_MODEL_PFLD_

#include <vector>

#include "ma_model_point_detector.h"

namespace ma::model {
Expand Down
2 changes: 1 addition & 1 deletion sscma/core/model/ma_model_point_detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ PointDetector::PointDetector(Engine* p_engine, const char* name, ma_model_type_t

PointDetector::~PointDetector() {}

const std::vector<ma_point_t>& PointDetector::getResults() const {
const std::forward_list<ma_point_t>& PointDetector::getResults() const {
return results_;
}

Expand Down
6 changes: 3 additions & 3 deletions sscma/core/model/ma_model_point_detector.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _MA_MODEL_POINT_DETECTOR_H_
#define _MA_MODEL_POINT_DETECTOR_H_

#include <vector>
#include <forward_list>

#include "ma_model_base.h"

Expand All @@ -17,7 +17,7 @@ class PointDetector : public Model {

bool is_nhwc_;

std::vector<ma_point_t> results_;
std::forward_list<ma_point_t> results_;

protected:
ma_err_t preprocess() override;
Expand All @@ -26,7 +26,7 @@ class PointDetector : public Model {
PointDetector(Engine* engine, const char* name, ma_model_type_t type);
virtual ~PointDetector();

const std::vector<ma_point_t>& getResults() const;
const std::forward_list<ma_point_t>& getResults() const;

ma_err_t run(const ma_img_t* img);

Expand Down

0 comments on commit d27fc8c

Please sign in to comment.