Skip to main content

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.9-3.10 .h5
2.11 3.9-3.10 .h5
2.12 3.9-3.11 .h5 .keras
2.13 3.9-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.9-3.12 .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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sony_custom_layers_dev-0.4.0.dev6-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

Details for the file sony_custom_layers_dev-0.4.0.dev6-py3-none-any.whl.

File metadata

File hashes

Hashes for sony_custom_layers_dev-0.4.0.dev6-py3-none-any.whl
Algorithm Hash digest
SHA256 350fba9908028a7789af1ab0739a15ef98fc6379d35120a70596709f0d45e561
MD5 1b81148eb9ac88d5e0a536ec122c4bdf
BLAKE2b-256 0e91dc08e26113b1ec6bb1b4abc989681d086bc164896c3b95f34466557465ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page