{"id":19189322,"url":"https://github.com/chainer/onnx-chainer","last_synced_at":"2025-09-12T23:44:14.995Z","repository":{"id":57448862,"uuid":"111503207","full_name":"chainer/onnx-chainer","owner":"chainer","description":"Add-on package for ONNX format support in Chainer","archived":false,"fork":false,"pushed_at":"2019-11-06T09:38:25.000Z","size":1237,"stargazers_count":85,"open_issues_count":13,"forks_count":24,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-07-14T20:23:42.974Z","etag":null,"topics":["caffe","chainer","deep-learning","onnx","onnx-chainer","onnx-format","onnx-support"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chainer.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}},"created_at":"2017-11-21T05:23:33.000Z","updated_at":"2025-06-04T03:29:52.000Z","dependencies_parsed_at":"2022-09-26T17:31:41.054Z","dependency_job_id":null,"html_url":"https://github.com/chainer/onnx-chainer","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/chainer/onnx-chainer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainer%2Fonnx-chainer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainer%2Fonnx-chainer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainer%2Fonnx-chainer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainer%2Fonnx-chainer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chainer","download_url":"https://codeload.github.com/chainer/onnx-chainer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainer%2Fonnx-chainer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266092818,"owners_count":23875544,"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":["caffe","chainer","deep-learning","onnx","onnx-chainer","onnx-format","onnx-support"],"created_at":"2024-11-09T11:29:02.180Z","updated_at":"2025-07-20T08:34:12.415Z","avatar_url":"https://github.com/chainer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ONNX-Chainer\n[![PyPI](https://img.shields.io/pypi/v/onnx-chainer.svg)](https://pypi.org/project/onnx-chainer/)\n[![GitHub license](https://img.shields.io/github/license/chainer/onnx-chainer.svg)](https://github.com/chainer/onnx-chainer)\n[![Build Status](https://travis-ci.org/chainer/onnx-chainer.svg?branch=master)](https://travis-ci.org/chainer/onnx-chainer)\n[![codecov](https://codecov.io/gh/chainer/onnx-chainer/branch/master/graph/badge.svg)](https://codecov.io/gh/chainer/onnx-chainer)\n[![Documentation Status](https://readthedocs.org/projects/onnx-chainer/badge/?version=latest)](https://onnx-chainer.readthedocs.io/en/latest/?badge=latest)\n\nAll code and functionalities of ONNX-Chainer have been merged into [Chainer](https://chainer.org/) v7rc1 and this repository supports only bug fixes.\n\nThis is an add-on package for ONNX support by Chainer.\n\n## Tested environment\n\nsee [Tested environments](https://onnx-chainer.readthedocs.io/en/latest/introduction/index.html#tested-environments)\n\n## Installation\n\n```bash\npip install onnx-chainer\n```\n\n## Run Test\n\n### 1. Install test modules\n\n```bash\n$ pip install onnx-chainer[test-cpu]\n```\n\nOr, on GPU environment\n\n```bash\n$ pip install cupy  # or cupy-cudaXX is useful\n$ pip install onnx-chainer[test-gpu]\n```\n\n### 2. Run tests\n\n```bash\n$ pytest -m \"not gpu\"\n```\n\nOr, on GPU environment\n\n```bash\n$ pytest\n```\n\n\n## Quick Start\n\nFirst, install [ChainerCV](https://github.com/chainer/chainercv) to get the pre-trained models.\n\n```python\nimport numpy as np\n\nimport chainer\nimport chainercv.links as C\nimport onnx_chainer\n\nmodel = C.VGG16(pretrained_model='imagenet')\n\n# Pseudo input\nx = np.zeros((1, 3, 224, 224), dtype=np.float32)\n\nonnx_chainer.export(model, x, filename='vgg16.onnx')\n```\n\n\n## Supported Functions\n\nsee [Supported Functions](https://onnx-chainer.readthedocs.io/en/latest/introduction/index.html#supported-functions)\n\n\n## Contribution\n\nAny contribution to ONNX-Chainer is welcome!\n\n- Python codes follow [Chainer Coding Guidelines](https://docs.chainer.org/en/stable/contribution.html#coding-guidelines)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainer%2Fonnx-chainer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchainer%2Fonnx-chainer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainer%2Fonnx-chainer/lists"}