fix mmcls-c-demo (#580)

Co-authored-by: irexyc <chenxin2@sensetime.com>
This commit is contained in:
Chen Xin 2022-06-09 11:45:57 +08:00 committed by GitHub
parent b29a8a020a
commit cb09d2238b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,8 +36,7 @@ int main(int argc, char *argv[]) {
return 1;
}
for (int i = 0; i < res_count[0]; ++i) {
fprintf(stderr, "label: %d, score: %.4f\n", res->label_id, res->score);
++res;
fprintf(stderr, "label: %d, score: %.4f\n", res[i].label_id, res[i].score);
}
mmdeploy_classifier_release_result(res, res_count, 1);