forked from mindspore-Ecosystem/mindspore
fix bug of output order
This commit is contained in:
parent
580981a38a
commit
d896a8c805
|
@ -77,7 +77,9 @@ class NMSBox {
|
|||
}
|
||||
area_ = (y2_ - y1_) * (x2_ - x1_);
|
||||
}
|
||||
inline bool operator<(const NMSBox &box) const { return score_ < box.score_; }
|
||||
inline bool operator<(const NMSBox &box) const {
|
||||
return score_ < box.score_ || (score_ == box.score_ && index_ > box.index_);
|
||||
}
|
||||
|
||||
public:
|
||||
float score_;
|
||||
|
|
Loading…
Reference in New Issue