Skip to main content

PyTorch layer building tools for CREYONE

Project description

creyone_model

PyTorch layer-building utilities for the CREYONE framework.

Overview

creyone_model provides a config-first API for assembling CNN building blocks. All layer hyper-parameters live in a single CNNBlockCfg dataclass, making it easy to swap layer types (convolution, normalisation, activation, pooling) without changing model code.

Installation

pip install creyone_model

Requires Python ≥ 3.10 and PyTorch ≥ 2.0.

Quick start

from creyone_model import CNNBlockCfg

cfg = CNNBlockCfg(tensor_dims=2, act_name='silu')
block = cfg.block_module(in_dim=3, out_dim=64, kernel_size=3)

import torch
y = block(torch.randn(1, 3, 224, 224))  # (1, 64, 224, 224)

Documentation

Full documentation (API reference + getting started guide) is hosted at https://creyone-model.readthedocs.io/.

Project details


Download files

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

Source Distribution

creyone_model-1.0.3.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

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

creyone_model-1.0.3-py3-none-any.whl (46.7 kB view details)

Uploaded Python 3

File details

Details for the file creyone_model-1.0.3.tar.gz.

File metadata

  • Download URL: creyone_model-1.0.3.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for creyone_model-1.0.3.tar.gz
Algorithm Hash digest
SHA256 4e0a446c1570d1cc472159166efe0a80d93e78e64d38819407f110d852a6c96f
MD5 e567d133e24905d1c0996d878548a1b2
BLAKE2b-256 781216b13805c93615775d092d2e89bb7194ae78b4df6a285eb669c83ec81939

See more details on using hashes here.

Provenance

The following attestation bundles were made for creyone_model-1.0.3.tar.gz:

Publisher: publish.yml on qnilix/creyone_model

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file creyone_model-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: creyone_model-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 46.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for creyone_model-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9f090f6922c6b0d8831e56f6531e8be8a2db044a116af82add0c4763010a13b2
MD5 f1f23bfc5cadbb1a5f5cb4ca3b0b072f
BLAKE2b-256 bb53783b1fe4c5432939a20609bec4639be8327b79f4521023b419dc526fb907

See more details on using hashes here.

Provenance

The following attestation bundles were made for creyone_model-1.0.3-py3-none-any.whl:

Publisher: publish.yml on qnilix/creyone_model

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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