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.1.tar.gz (8.2 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.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: creyone_model-1.0.1.tar.gz
  • Upload date:
  • Size: 8.2 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.1.tar.gz
Algorithm Hash digest
SHA256 78dc87e76f23225572f0ed9521cc811721422b026e660dd58820cba78c737be3
MD5 299b99951463d61c95c519bd3fb46354
BLAKE2b-256 f2560d64584b0de5e7d07e24baba754f7c6472ddb3858e3c03ea8c5b6bd03f49

See more details on using hashes here.

Provenance

The following attestation bundles were made for creyone_model-1.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: creyone_model-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2e8f59928527515b1d93150d43ff11096470b4c21380f8ef914c3c54f8e872c4
MD5 bb6d89194da339aa652addccd267083f
BLAKE2b-256 710f1b415861cf646d5d10202084eb102a2437836df5ffc10330181896614086

See more details on using hashes here.

Provenance

The following attestation bundles were made for creyone_model-1.0.1-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