{"id":15641245,"url":"https://github.com/gmalivenko/onnx-opcounter","last_synced_at":"2025-04-06T11:07:54.137Z","repository":{"id":49320760,"uuid":"322412956","full_name":"gmalivenko/onnx-opcounter","owner":"gmalivenko","description":"Count number of parameters / MACs / FLOPS for ONNX models.","archived":false,"fork":false,"pushed_at":"2024-10-26T10:08:52.000Z","size":24,"stargazers_count":89,"open_issues_count":7,"forks_count":22,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T10:09:12.608Z","etag":null,"topics":["cli","flops","machine-learning","macs","onnx","onnx-models"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gmalivenko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-12-17T21:05:42.000Z","updated_at":"2025-02-26T15:06:13.000Z","dependencies_parsed_at":"2024-11-16T03:03:41.565Z","dependency_job_id":"0fe3443d-1261-419d-a437-d79a2baf5cf8","html_url":"https://github.com/gmalivenko/onnx-opcounter","commit_stats":{"total_commits":19,"total_committers":3,"mean_commits":6.333333333333333,"dds":0.4736842105263158,"last_synced_commit":"c635b0385fccaa708f40f603581d1a2229dfa059"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmalivenko%2Fonnx-opcounter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmalivenko%2Fonnx-opcounter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmalivenko%2Fonnx-opcounter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmalivenko%2Fonnx-opcounter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gmalivenko","download_url":"https://codeload.github.com/gmalivenko/onnx-opcounter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247471518,"owners_count":20944158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cli","flops","machine-learning","macs","onnx","onnx-models"],"created_at":"2024-10-03T11:41:57.711Z","updated_at":"2025-04-06T11:07:54.120Z","avatar_url":"https://github.com/gmalivenko.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ONNX Operations Counter [WIP]\n\n[![GitHub License](https://img.shields.io/badge/Apache-2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Downloads](https://pepy.tech/badge/onnx_opcounter)](https://pepy.tech/project/onnx_opcounter)\n![PyPI](https://img.shields.io/pypi/v/onnx_opcounter.svg)\n\nCounts number of parameters / MACs for ONNX models. \n\n## Installation\n\n```bash\npip install onnx_opcounter\n```\n\n## Basic Usage\n\n### Using CLI (calculate number of parameters)\n```bash\nonnx_opcounter {path_to_onnx_model}\n```\n\n### Using CLI (calculate number of parameters and MACs)\n```bash\nonnx_opcounter --calculate-macs {path_to_onnx_model}\n```\n\n### Using API\n```python\nfrom onnx_opcounter import calculate_params\nimport onnx\n\nmodel = onnx.load_model('./path/to/onnx/model')\nparams = calculate_params(model)\n\nprint('Number of params:', params)\n```\n\n## License\nThe software is covered by Apache License 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmalivenko%2Fonnx-opcounter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgmalivenko%2Fonnx-opcounter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmalivenko%2Fonnx-opcounter/lists"}