Sony Custom Layers package
Project description
Sony Custom Layers (SCL)
Sony Custom Layers (SCL) is an open-source project implementing detection post process NN layers not supported by the TensorFlow Keras API or Torch's torch.nn for the easy integration of those layers into pretrained models.
Table of Contents
Getting Started
This section provides an installation and a quick starting guide.
Installation
To install the latest stable release of SCL, run the following command:
pip install sony-custom-layers
By default, no framework dependencies are installed. To install SCL including the latest tested dependencies (up to patch version) for TensorFlow:
pip install sony-custom-layers[tf]
To install SCL including the latest tested dependencies (up to patch version) for PyTorch/ONNX/OnnxRuntime:
pip install sony-custom-layers[torch]
Supported Versions
TensorFlow
Tested FW versions | Tested Python version | Serialization |
---|---|---|
2.10 | 3.8-3.10 | .h5 |
2.11 | 3.8-3.10 | .h5 |
2.12 | 3.8-3.11 | .h5 .keras |
2.13 | 3.8-3.11 | .keras |
2.14 | 3.9-3.11 | .keras |
2.15 | 3.9-3.11 | .keras |
PyTorch
Tested FW versions | Tested Python version | Serialization |
---|---|---|
torch 2.0-2.2 torchvision 0.15-0.17 onnxruntime 1.15-1.17 onnxruntime_extensions 0.8-0.10 onnx 1.14-1.15 |
3.8-3.11 | .onnx (via torch.onnx.export) .pt2 (via torch.export.export, torch2.2 only) |
API
For sony-custom-layers API see https://sony.github.io/custom_layers
TensorFlow API
For TensorFlow layers see KerasAPI
To load a model with custom layers in TensorFlow, see custom_layers_scope
PyTorch API
For PyTorch layers see PyTorchAPI
No special handling is required for torch.onnx.export and onnx.load.
For OnnxRuntime / PT2 support see load_custom_ops
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file sony_custom_layers-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: sony_custom_layers-0.2.0-py3-none-any.whl
- Upload date:
- Size: 27.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1570e0a45b680e7ac44e931ae50dcda3dc0e3528d3bf3d93c9369c8a1412e303 |
|
MD5 | 2581c91da4857896ad368515d8a80463 |
|
BLAKE2b-256 | 4303021a00c0470b147581ca3eb30a6fec2fa74d08ce676538e9c8a55a2082b6 |