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.0.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.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: creyone_model-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 4da936974e754b376c208a942cdca245f22f3d3d94c44ef544a4ab61885456a9
MD5 98440e03ae82013c53d539ad9593fb90
BLAKE2b-256 4c6c994ae74a708e7b94a1a72af6f3d9ccd536f15ac141644c77671d78f66aba

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: creyone_model-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0be0645b7c5245058d0f2703bf6c7b30f5fc98c5320125663476064ed588ebf
MD5 be7556d08b949bad17cd5c4f37314c6c
BLAKE2b-256 3db152787f88396d48480ee597f08f4564106f0685d8807ecb688fb998946620

See more details on using hashes here.

Provenance

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