sio4onnx
Simple tool to change the INPUT and OUTPUT shape of ONNX.
Decision gist · record as of 2026-08-14
Yes, if you work with ONNX models and need to adjust their input/output shapes for deployment or inference. The package is lightweight, dependency-free, and permissively licensed. Maintenance is aging (last release 500 days ago), but the repository is not archived and the tool solves a narrow, stable problem unlikely to require frequent updates. Suitable for production use in model preprocessing pipelines.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Installs cleanly with no runtime dependencies.
- Maintenance is aging—last release was 500 days ago—but the repository remains active and the package supports current Python versions.
License · maintenance · safety
MIT License (permissive) — MIT License permits commercial and private use with minimal restrictions, making it safe to integrate into proprietary workflows.
last release 2025-04-01 (500 days) · last repo commit 2025-04-01 · 15 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 82,754 downloads/mo, #14,137 on PyPI
Alternatives
Verify before relying
pip install sio4onnx
from sio4onnx import io_change
io_changed_graph = io_change(
input_onnx_file_path="model.onnx",
output_onnx_file_path="model_reshaped.onnx",
input_names=["input_1"],
input_shapes=[[1, 3, "H", "W"]],
output_names=["output_1"],
output_shapes=[[1, "boxes", 4]]
)- Whether symbolic dimension names are fully preserved through inference pipelines downstream.
- Support for dynamic shape inference or validation after modification.
- Compatibility with all ONNX opset versions or any known limitations.
What it is and what it does
sio4onnx is a lightweight utility for modifying the declared input and output shapes of ONNX model files. It works both as a command-line tool and as a Python library, accepting either a file path or an in-memory ONNX graph, then rewriting the shape metadata for specified input and output nodes. You can use fixed dimensions, symbolic names like 'H' and 'W', or dynamic markers like '-1' to represent variable axes.
The package is useful when you have a pre-trained ONNX model with fixed shapes but need to adapt it for different batch sizes, image resolutions, or sequence lengths without retraining. It modifies only the shape declarations in the model graph, not the underlying weights or operations. The tool has no external runtime dependencies and supports Python 3.6 and later, making it straightforward to integrate into model preprocessing pipelines.
Use it for
- Adapt a fixed-batch ONNX model to accept variable batch sizes for inference on different hardware or deployment scenarios.
- Change image input dimensions in a computer vision model to match production inference requirements.
- Prepare an ONNX model for deployment on edge devices by modifying input shapes to match device constraints.
- Batch-process multiple ONNX files to standardize their input/output shape signatures across a model zoo.
- Use symbolic dimension names in place of hard-coded values to enable downstream tools to infer shapes dynamically.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you work with ONNX models and need to adjust their input/output shapes for deployment or inference.
The package is lightweight, dependency-free, and permissively licensed. Maintenance is aging (last release 500 days ago), but the repository is not archived and the tool solves a narrow, stable problem unlikely to require frequent updates. Suitable for production use in model preprocessing pipelines.
Install
sio4onnx on PyPI
Before you install
Installs cleanly with no runtime dependencies. Maintenance is aging—last release was 500 days ago—but the repository remains active and the package supports current Python versions.
License in practice
MIT License permits commercial and private use with minimal restrictions, making it safe to integrate into proprietary workflows.
Quickstart
pip install sio4onnx
from sio4onnx import io_change
io_changed_graph = io_change(
input_onnx_file_path="model.onnx",
output_onnx_file_path="model_reshaped.onnx",
input_names=["input_1"],
input_shapes=[[1, 3, "H", "W"]],
output_names=["output_1"],
output_shapes=[[1, "boxes", 4]]
)
Verify before relying
- Whether symbolic dimension names are fully preserved through inference pipelines downstream.
- Support for dynamic shape inference or validation after modification.
- Compatibility with all ONNX opset versions or any known limitations.
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 | Aging 500 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 82,754 / month, #14,137 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: sio4onnx-1.0.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “onnx model shape modification”
- sio4onnxModifies the input and output shapes of ONNX model files, allowing…
- ssi4onnxInfers and fills missing tensor shape information in ONNX model…
- sam4onnxRewrites attributes and constants in ONNX model operators via CLI or…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also soc4onnx · ssi4onnx · scc4onnx · soa4onnx · sbi4onnx · sod4onnx · sam4onnx · sng4onnx · sor4onnx · snd4onnx