Skip to main content

Core model, configuration, and checkpoint package for music source separation.

Project description

pymss-core

中文文档

Core model, configuration, and checkpoint package for music source separation.

pymss-core is the shared low-level package for higher-level projects such as pymss inference and pymsst training. It contains model definitions, configuration loading, and checkpoint compatibility helpers. It intentionally does not include inference DSP pipelines, chunked demixing, audio file I/O, model downloads, catalog management, CLI, HTTP server, WebUI, datasets, losses, or training loops.

Install

pip install pymss-core

For local development:

uv sync --dev

Optional MLX backend on Apple Silicon:

pip install "pymss-core[mlx]"

Public API

from pymss_core import (
    get_model_from_config,
    load_config,
    load_model_weights,
)

model, config = get_model_from_config("bs_roformer", "config.yaml")
load_model_weights(model, "model.ckpt", model_type="bs_roformer", strict=True)

model.eval()

Package Boundary

Included:

  • YAML config loading with AttrDict
  • PyTorch model definitions under pymss_core.modules
  • Optional MLX backend implementations for supported model forward paths
  • Model factory: get_model_from_config(model_type, config_path)
  • Checkpoint helpers for common MSS checkpoint containers
  • Small model-internal DSP math needed to construct model structures
  • VR network structures and VR model parameter JSON files

Excluded:

  • Audio file decoding/encoding
  • Resampling, preprocessing, and full inference DSP pipelines
  • Tensor-level chunked demixing runtime
  • Model catalog, aliases, downloads, and cache management
  • CLI, server, WebUI, and endpoint schemas
  • Dataset, augmentation, loss, metrics, and trainer code
  • Any default dependency on MLX, Librosa, tqdm, Lightning, FastAPI, Uvicorn, PyAV, WandB, or training extras

Repository Roles

pymss-core
  shared model/config/checkpoint layer

pymss
  user-facing inference package built on pymss-core, with audio I/O and demix

pymsst
  training package built on pymss-core, with training data/loss/runtime code

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

pymss_core-0.1.4.tar.gz (100.6 kB view details)

Uploaded Source

Built Distribution

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

pymss_core-0.1.4-py3-none-any.whl (131.7 kB view details)

Uploaded Python 3

File details

Details for the file pymss_core-0.1.4.tar.gz.

File metadata

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

File hashes

Hashes for pymss_core-0.1.4.tar.gz
Algorithm Hash digest
SHA256 8d2a9ffd36dee6d1326cf7a4ad28664682bb95b76c0f77eb779a926fd6e95b38
MD5 d0677a8ab432d52cf2c96ffc2983b3f9
BLAKE2b-256 6cdf54f7d01448fd769c59aa51b7964e2ad90bcdfb5d36d84fd4cbb2c7305fe5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymss_core-0.1.4.tar.gz:

Publisher: release.yml on pymss-project/pymss-core

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

File details

Details for the file pymss_core-0.1.4-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pymss_core-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2bbe60fe1c8ad690833fb947e7b004462a06b67867a45deb8b8a5a63e1da861f
MD5 0effa2374edfb55123f0dce0f09b071a
BLAKE2b-256 785bc3247343509177df9537854144ef1d2cbfdbb30b330f8521c884ea9faf4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymss_core-0.1.4-py3-none-any.whl:

Publisher: release.yml on pymss-project/pymss-core

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