snc4onnx
Simple tool to combine onnx models. Simple Network Combine Tool for ONNX.
What it is and what it does
snc4onnx is a command-line and Python API tool for merging two or more ONNX neural network models into a single combined model. It works by connecting the output operators of one model to the input operators of another, with optional prefixing of operator names to prevent naming conflicts when models share common operation names. The tool runs ONNX simplification on the merged result by default to remove redundant operations.
The package is designed for developers who want to compose pre-trained models without writing custom graph manipulation code. It supports both file-based workflows (reading and writing .onnx files) and in-memory graph objects, making it suitable for both CLI automation and programmatic integration into larger pipelines.
Use it for:
- Combine encoder and decoder ONNX models into a single end-to-end inference model for deployment.
- Merge feature extraction and classification models trained separately into one unified network.
- Chain multiple specialized models (e.g., preprocessing, main inference, post-processing) into a single deployable artifact.
- Fuse stereo vision or multi-stage models where outputs of one stage feed into the next.
- Automate model composition in CI/CD pipelines without writing custom ONNX graph code.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Merges multiple ONNX neural network models into a single combined model by connecting specified output and input operators, with optional operator name prefixing to avoid conflicts.
Yes, if you need to merge ONNX models and prefer a CLI or simple API over writing ONNX graph code directly. Install friction is negligible, maintenance is active, and the MIT license poses no restrictions. No known vulnerabilities. Suitable for production use in model composition workflows.
Install
snc4onnx on PyPI
pip
pip install snc4onnxuv
uv add snc4onnxpoetry
poetry add snc4onnxInstalling snc4onnx
Before you install
Low install friction with no runtime dependencies. Active maintenance as of February 2026, though repository shows modest engagement (17 stars).
License in practice
MIT License permits commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install snc4onnx
from snc4onnx import combine
combined = combine(
srcop_destop=[['output', 'flow_init']],
op_prefixes_after_merging=['init', 'next'],
input_onnx_file_paths=['model1.onnx', 'model2.onnx']
)
Requires ONNX models to be valid and operator names to be correctly specified; mismatched connection points will cause merge failure.
Verify before relying
- Whether the tool handles complex multi-branch model topologies or only sequential connections.
- Performance characteristics when merging large models or many models in sequence.
- Whether intermediate validation or error recovery is available during multi-step merges.
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 310 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 84,335/month — #14,006 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: snc4onnx-1.0.14-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
sng4onnxAutomatically generates and assigns operation…
permissive · top 15,000 on PyPI
snd4onnxRemoves specified nodes from ONNX model graphs…
permissive · top 15,000 on PyPI
sod4onnxsod4onnx removes specified output operations…
permissive · top 15,000 on PyPI
sor4onnxRenames input, output, and operator nodes in…
permissive · top 15,000 on PyPI
sne4onnxExtracts subgraphs from ONNX model files by…
permissive · top 15,000 on PyPI
sna4onnxAdds new operations (nodes) to ONNX model…
permissive · top 15,000 on PyPI
scs4onnxCompresses ONNX model files by deduplicating…
permissive · top 15,000 on PyPI
soc4onnxChanges the opset version of an ONNX model…
permissive · top 15,000 on PyPI
soa4onnxAdds or modifies output nodes in ONNX model…
permissive · top 15,000 on PyPI
simple-onnx-processing-toolsA collection of command-line tools for…
permissive · top 15,000 on PyPI