fix: add missing SetOffset(0) to TopKScoresCalculator that causes real-time graphs to freeze
This commit is contained in:
parent
175aff9be8
commit
0913107fe7
|
@ -108,6 +108,8 @@ absl::Status TopKScoresCalculator::GetContract(CalculatorContract* cc) {
|
||||||
}
|
}
|
||||||
|
|
||||||
absl::Status TopKScoresCalculator::Open(CalculatorContext* cc) {
|
absl::Status TopKScoresCalculator::Open(CalculatorContext* cc) {
|
||||||
|
cc->SetOffset(mediapipe::TimestampDiff(0));
|
||||||
|
|
||||||
const auto& options = cc->Options<::mediapipe::TopKScoresCalculatorOptions>();
|
const auto& options = cc->Options<::mediapipe::TopKScoresCalculatorOptions>();
|
||||||
RET_CHECK(options.has_top_k() || options.has_threshold())
|
RET_CHECK(options.has_top_k() || options.has_threshold())
|
||||||
<< "Must specify at least one of the top_k and threshold fields in "
|
<< "Must specify at least one of the top_k and threshold fields in "
|
||||||
|
|
Loading…
Reference in New Issue
Block a user