Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshmiKumar23 committed Apr 10, 2024
1 parent 278c798 commit 08ecada
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/cpp_api/basic_test/basic_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ int main(int argc, const char **argv) {
std::cout << "Start test id " << test_id << "\n";
std::cout << "Available images = " << rocalGetRemainingImages(handle) << std::endl;
int process_image_count = ((test_case == 0) ? rocalGetRemainingImages(handle) : run_len[test_id]);
std::cout << ">>>>> Going to process " << process_image_count << " images , press a key" << std::endl;
std::cout << "Process " << process_image_count << " images" << std::endl;
if (DISPLAY)
cv::waitKey(0);
const unsigned number_of_cols = process_image_count / inputBatchSize;
Expand Down
3 changes: 1 addition & 2 deletions tests/cpp_api/performance_tests/performance_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,7 @@ int test(int test_case, const char* path, int rgb, int processing_device, int wi
std::cout << "Decode time " << rocal_timing.decode_time << std::endl;
std::cout << "Process time " << rocal_timing.process_time << std::endl;
std::cout << "Transfer time " << rocal_timing.transfer_time << std::endl;
std::cout << "Total time " << dur << std::endl;
std::cout << ">>>>> Total Elapsed Time " << dur / 1000000 << " sec " << dur % 1000000 << " us " << std::endl;
std::cout << "Total Elapsed Time " << dur / 1000000 << " sec " << dur % 1000000 << " us " << std::endl;

rocalRelease(handle);

Expand Down
4 changes: 2 additions & 2 deletions tests/cpp_api/unit_tests/unit_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -675,10 +675,10 @@ int test(int test_case, int reader_type, const char *path, const char *outName,
for (unsigned i = 0; i < bbox_labels->size(); i++) {
int *labels_buffer = reinterpret_cast<int *>(bbox_labels->at(i)->buffer());
float *bbox_buffer = reinterpret_cast<float *>(bbox_coords->at(i)->buffer());
std::cerr << "\n>>>>> BBOX LABELS : ";
std::cerr << "\nBBOX Labels : ";
for (unsigned j = 0; j < bbox_labels->at(i)->dims().at(0); j++)
std::cerr << labels_buffer[j] << " ";
std::cerr << "\n>>>>> BBOX : " << bbox_coords->at(i)->dims().at(0) << " : \n";
std::cerr << "\nBBOX Count: " << bbox_coords->at(i)->dims().at(0) << "\n";
for (unsigned j = 0, j4 = 0; j < bbox_coords->at(i)->dims().at(0); j++, j4 = j * 4)
std::cerr << bbox_buffer[j4] << " " << bbox_buffer[j4 + 1] << " " << bbox_buffer[j4 + 2] << " " << bbox_buffer[j4 + 3] << "\n";
}
Expand Down

0 comments on commit 08ecada

Please sign in to comment.