{"id":19903774,"url":"https://github.com/k2-gc/onnxruntime-cpp-example","last_synced_at":"2026-04-24T23:31:38.185Z","repository":{"id":211537779,"uuid":"726838314","full_name":"k2-gc/onnxruntime-cpp-example","owner":"k2-gc","description":"Simple onnxruntime example using C++ API. Inferring MNIST dataset samples and show results.","archived":false,"fork":false,"pushed_at":"2023-12-09T06:47:19.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-17T19:50:50.339Z","etag":null,"topics":["c","classification","cnn","cnn-classification","cpp","onnx","onnxruntime"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/k2-gc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-03T14:55:42.000Z","updated_at":"2023-12-06T18:04:21.000Z","dependencies_parsed_at":"2023-12-19T19:51:27.198Z","dependency_job_id":null,"html_url":"https://github.com/k2-gc/onnxruntime-cpp-example","commit_stats":null,"previous_names":["k2-gc/onnxruntime-cpp-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/k2-gc/onnxruntime-cpp-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k2-gc%2Fonnxruntime-cpp-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k2-gc%2Fonnxruntime-cpp-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k2-gc%2Fonnxruntime-cpp-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k2-gc%2Fonnxruntime-cpp-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k2-gc","download_url":"https://codeload.github.com/k2-gc/onnxruntime-cpp-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k2-gc%2Fonnxruntime-cpp-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32245001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","classification","cnn","cnn-classification","cpp","onnx","onnxruntime"],"created_at":"2024-11-12T20:25:23.854Z","updated_at":"2026-04-24T23:31:38.164Z","avatar_url":"https://github.com/k2-gc.png","language":"C++","funding_links":[],"categories":["🛠️ **Implementation Resources \u0026 Tools**"],"sub_categories":["🔷 **ONNX Runtime**"],"readme":"# onnxruntime-cpp-example\n\n## Introduction\nThis repository introduces how to run onnx model using onnxruntime C++ API. \nUsing sample MNIST data, the code shows a simple example and inference results.\n\n**NOTICE:** If you are a beginner in Deep Learning for image processing doamin, [my another repository](https://github.com/k2-gc/Simple-CNN-Example) may help you to understand how to train models of image classification with Pytorch.\n\n## Prerequisites\n* Docker\n* Docker compose\n\n## Usage\n1. Clone this repository\n2. Run commands below and get into docker container\n```bash\ncd onnxruntime-cpp-example\ndocker compose up -d\ndocker exec -it onnxruntime-sample /bin/bash\n```\n5. In docker container, build sample app and run.\n```bash\nmkdir build \u0026\u0026 cd build\nwget https://github.com/k2-gc/Simple-CNN-Example/releases/download/v0.1/best.onnx\ncmake ..\nmake -j$(nproc)\n./sample_app \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk2-gc%2Fonnxruntime-cpp-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk2-gc%2Fonnxruntime-cpp-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk2-gc%2Fonnxruntime-cpp-example/lists"}