Skip to main content

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.4
torchvision 0.15-0.19
onnxruntime 1.15-1.19
onnxruntime_extensions 0.8-0.12
onnx 1.14-1.16
3.8-3.11 .onnx (via torch.onnx.export)

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 support see load_custom_ops

License

Apache License 2.0.

Metadata

Release files for sony-custom-layers 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for sony-custom-layers 0.3.0
File Interpreter ABI Platform Actions
sony_custom_layers-0.3.0-py3-none-any.whl Python 3 none any Details for sony_custom_layers-0.3.0-py3-none-any.whl

Release files / sony_custom_layers-0.3.0-py3-none-any.whl

Download URL sony_custom_layers-0.3.0-py3-none-any.whl
Size 36.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03b16e2371ed015611f2c7ea431ee449f0aedc11caf3a2dcead3f55e36aac91b
BLAKE2b-256 checksum
How to use checksums
a1f0548433ee1225f1cc0ef5a20287382848730e04e5e984b2078056c8fe3e13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.11

Security for sony-custom-layers 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page