musegauge 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- musegauge-0.1.0/.github/workflows/ci.yml +82 -0
- musegauge-0.1.0/.github/workflows/slow.yml +29 -0
- musegauge-0.1.0/.gitignore +10 -0
- musegauge-0.1.0/CHANGELOG.md +23 -0
- musegauge-0.1.0/LICENSE +202 -0
- musegauge-0.1.0/PKG-INFO +133 -0
- musegauge-0.1.0/README.md +116 -0
- musegauge-0.1.0/docker/Dockerfile +35 -0
- musegauge-0.1.0/docker/README.md +56 -0
- musegauge-0.1.0/docs/BUILD_REPORT.md +229 -0
- musegauge-0.1.0/docs/DECISIONS.md +286 -0
- musegauge-0.1.0/docs/IDEAS.md +18 -0
- musegauge-0.1.0/docs/INSTALL.md +221 -0
- musegauge-0.1.0/docs/LICENCES.md +94 -0
- musegauge-0.1.0/docs/METRICS.md +82 -0
- musegauge-0.1.0/docs/PLUGIN_GUIDE.md +158 -0
- musegauge-0.1.0/docs/PROGRESS.md +1189 -0
- musegauge-0.1.0/docs/TESTING_REAL_PLUGINS.md +75 -0
- musegauge-0.1.0/docs/UPSTREAM_NOTES.md +193 -0
- musegauge-0.1.0/docs/VERIFIED_FACTS.md +287 -0
- musegauge-0.1.0/docs/examples/report.md +71 -0
- musegauge-0.1.0/docs/plugins/aesthetics_audiobox.md +66 -0
- musegauge-0.1.0/docs/plugins/clapscore_laion.md +92 -0
- musegauge-0.1.0/docs/plugins/fad_fadtk.md +93 -0
- musegauge-0.1.0/docs/plugins/kad_kadtk.md +63 -0
- musegauge-0.1.0/pyproject.toml +47 -0
- musegauge-0.1.0/scripts/run_golden.sh +37 -0
- musegauge-0.1.0/scripts/verify_facts.py +72 -0
- musegauge-0.1.0/src/musegauge/__init__.py +1 -0
- musegauge-0.1.0/src/musegauge/_runtime/musegauge_runtime/__init__.py +1 -0
- musegauge-0.1.0/src/musegauge/_runtime/musegauge_runtime/run.py +166 -0
- musegauge-0.1.0/src/musegauge/cli.py +619 -0
- musegauge-0.1.0/src/musegauge/clips.py +205 -0
- musegauge-0.1.0/src/musegauge/config.py +190 -0
- musegauge-0.1.0/src/musegauge/envs.py +195 -0
- musegauge-0.1.0/src/musegauge/errors.py +68 -0
- musegauge-0.1.0/src/musegauge/plugins/README.md +4 -0
- musegauge-0.1.0/src/musegauge/plugins/aesthetics_audiobox/locks/linux-x86_64.txt +831 -0
- musegauge-0.1.0/src/musegauge/plugins/aesthetics_audiobox/manifest.yaml +51 -0
- musegauge-0.1.0/src/musegauge/plugins/aesthetics_audiobox/requirements.in +12 -0
- musegauge-0.1.0/src/musegauge/plugins/aesthetics_audiobox/wrapper.py +144 -0
- musegauge-0.1.0/src/musegauge/plugins/clapscore_laion/locks/linux-x86_64.txt +2028 -0
- musegauge-0.1.0/src/musegauge/plugins/clapscore_laion/manifest.yaml +61 -0
- musegauge-0.1.0/src/musegauge/plugins/clapscore_laion/requirements.in +11 -0
- musegauge-0.1.0/src/musegauge/plugins/clapscore_laion/wrapper.py +160 -0
- musegauge-0.1.0/src/musegauge/plugins/fad_fadtk/locks/linux-x86_64.txt +2099 -0
- musegauge-0.1.0/src/musegauge/plugins/fad_fadtk/manifest.yaml +93 -0
- musegauge-0.1.0/src/musegauge/plugins/fad_fadtk/requirements.in +7 -0
- musegauge-0.1.0/src/musegauge/plugins/fad_fadtk/wrapper.py +179 -0
- musegauge-0.1.0/src/musegauge/plugins/kad_kadtk/locks/linux-x86_64.txt +2530 -0
- musegauge-0.1.0/src/musegauge/plugins/kad_kadtk/manifest.yaml +58 -0
- musegauge-0.1.0/src/musegauge/plugins/kad_kadtk/requirements.in +7 -0
- musegauge-0.1.0/src/musegauge/plugins/kad_kadtk/wrapper.py +122 -0
- musegauge-0.1.0/src/musegauge/registry.py +233 -0
- musegauge-0.1.0/src/musegauge/report.py +163 -0
- musegauge-0.1.0/src/musegauge/results.py +166 -0
- musegauge-0.1.0/src/musegauge/runner.py +513 -0
- musegauge-0.1.0/src/musegauge/schemas/__init__.py +146 -0
- musegauge-0.1.0/src/musegauge/schemas/clip.schema.json +14 -0
- musegauge-0.1.0/src/musegauge/schemas/manifest.schema.json +91 -0
- musegauge-0.1.0/src/musegauge/schemas/prefetch.schema.json +31 -0
- musegauge-0.1.0/src/musegauge/schemas/request.schema.json +63 -0
- musegauge-0.1.0/src/musegauge/schemas/response.schema.json +86 -0
- musegauge-0.1.0/src/musegauge/schemas/results.schema.json +226 -0
- musegauge-0.1.0/src/musegauge/schemas/suite.schema.json +17 -0
- musegauge-0.1.0/src/musegauge/staging.py +159 -0
- musegauge-0.1.0/src/musegauge/stats.py +97 -0
- musegauge-0.1.0/src/musegauge/suites/t2m-basic@1.yaml +10 -0
- musegauge-0.1.0/src/musegauge/suites/t2m-full@1.yaml +11 -0
- musegauge-0.1.0/src/musegauge/warnings_.py +178 -0
- musegauge-0.1.0/tests/conftest.py +117 -0
- musegauge-0.1.0/tests/data/clips.example.jsonl +3 -0
- musegauge-0.1.0/tests/data/manifest.example.yaml +34 -0
- musegauge-0.1.0/tests/data/prefetch.example.json +9 -0
- musegauge-0.1.0/tests/data/report.expected.md +44 -0
- musegauge-0.1.0/tests/data/request.example.json +19 -0
- musegauge-0.1.0/tests/data/response.example.json +17 -0
- musegauge-0.1.0/tests/data/results.example.json +59 -0
- musegauge-0.1.0/tests/data/suite.example.yaml +10 -0
- musegauge-0.1.0/tests/fake_plugins/fake_badclip/locks/linux-x86_64.txt +1 -0
- musegauge-0.1.0/tests/fake_plugins/fake_badclip/manifest.yaml +34 -0
- musegauge-0.1.0/tests/fake_plugins/fake_badclip/requirements.in +1 -0
- musegauge-0.1.0/tests/fake_plugins/fake_badclip/wrapper.py +32 -0
- musegauge-0.1.0/tests/fake_plugins/fake_clip/locks/linux-x86_64.txt +1 -0
- musegauge-0.1.0/tests/fake_plugins/fake_clip/manifest.yaml +34 -0
- musegauge-0.1.0/tests/fake_plugins/fake_clip/requirements.in +1 -0
- musegauge-0.1.0/tests/fake_plugins/fake_clip/wrapper.py +43 -0
- musegauge-0.1.0/tests/fake_plugins/fake_fail/locks/linux-x86_64.txt +1 -0
- musegauge-0.1.0/tests/fake_plugins/fake_fail/manifest.yaml +34 -0
- musegauge-0.1.0/tests/fake_plugins/fake_fail/requirements.in +1 -0
- musegauge-0.1.0/tests/fake_plugins/fake_fail/wrapper.py +11 -0
- musegauge-0.1.0/tests/fake_plugins/fake_np1/locks/linux-x86_64.txt +40 -0
- musegauge-0.1.0/tests/fake_plugins/fake_np1/manifest.yaml +34 -0
- musegauge-0.1.0/tests/fake_plugins/fake_np1/requirements.in +1 -0
- musegauge-0.1.0/tests/fake_plugins/fake_np1/wrapper.py +31 -0
- musegauge-0.1.0/tests/fake_plugins/fake_np2/locks/linux-x86_64.txt +49 -0
- musegauge-0.1.0/tests/fake_plugins/fake_np2/manifest.yaml +34 -0
- musegauge-0.1.0/tests/fake_plugins/fake_np2/requirements.in +1 -0
- musegauge-0.1.0/tests/fake_plugins/fake_np2/wrapper.py +31 -0
- musegauge-0.1.0/tests/fake_plugins/fake_set/locks/linux-x86_64.txt +1 -0
- musegauge-0.1.0/tests/fake_plugins/fake_set/manifest.yaml +34 -0
- musegauge-0.1.0/tests/fake_plugins/fake_set/requirements.in +1 -0
- musegauge-0.1.0/tests/fake_plugins/fake_set/wrapper.py +27 -0
- musegauge-0.1.0/tests/fake_plugins/fake_slow/locks/linux-x86_64.txt +1 -0
- musegauge-0.1.0/tests/fake_plugins/fake_slow/manifest.yaml +34 -0
- musegauge-0.1.0/tests/fake_plugins/fake_slow/requirements.in +1 -0
- musegauge-0.1.0/tests/fake_plugins/fake_slow/wrapper.py +20 -0
- musegauge-0.1.0/tests/golden/aesthetics_audiobox.json +504 -0
- musegauge-0.1.0/tests/golden/clapscore_laion.json +288 -0
- musegauge-0.1.0/tests/golden/fad_fadtk.json +330 -0
- musegauge-0.1.0/tests/golden/kad_kadtk.json +146 -0
- musegauge-0.1.0/tests/golden_scripts/aesthetics_direct.py +50 -0
- musegauge-0.1.0/tests/golden_scripts/cases.py +72 -0
- musegauge-0.1.0/tests/golden_scripts/clap_direct.py +83 -0
- musegauge-0.1.0/tests/golden_scripts/fad_direct.py +58 -0
- musegauge-0.1.0/tests/golden_scripts/kad_direct.py +52 -0
- musegauge-0.1.0/tests/golden_scripts/record_golden.py +114 -0
- musegauge-0.1.0/tests/integration/test_e2e_fakes.py +229 -0
- musegauge-0.1.0/tests/integration/test_exit_codes.py +110 -0
- musegauge-0.1.0/tests/integration/test_golden.py +170 -0
- musegauge-0.1.0/tests/integration/test_isolation.py +36 -0
- musegauge-0.1.0/tests/integration/test_plugin_aesthetics.py +84 -0
- musegauge-0.1.0/tests/integration/test_plugin_clap.py +59 -0
- musegauge-0.1.0/tests/integration/test_plugin_fad_kad.py +91 -0
- musegauge-0.1.0/tests/make_fixtures.py +120 -0
- musegauge-0.1.0/tests/unit/test_cli.py +230 -0
- musegauge-0.1.0/tests/unit/test_clips.py +145 -0
- musegauge-0.1.0/tests/unit/test_config.py +112 -0
- musegauge-0.1.0/tests/unit/test_envs.py +120 -0
- musegauge-0.1.0/tests/unit/test_errors.py +16 -0
- musegauge-0.1.0/tests/unit/test_registry.py +143 -0
- musegauge-0.1.0/tests/unit/test_report.py +44 -0
- musegauge-0.1.0/tests/unit/test_results.py +118 -0
- musegauge-0.1.0/tests/unit/test_runner.py +197 -0
- musegauge-0.1.0/tests/unit/test_runtime.py +151 -0
- musegauge-0.1.0/tests/unit/test_schemas.py +124 -0
- musegauge-0.1.0/tests/unit/test_staging.py +115 -0
- musegauge-0.1.0/tests/unit/test_stats.py +96 -0
- musegauge-0.1.0/tests/unit/test_verify_facts.py +26 -0
- musegauge-0.1.0/tests/unit/test_version.py +7 -0
- musegauge-0.1.0/tests/unit/test_warnings.py +113 -0
- musegauge-0.1.0/tests/unit/test_wrappers.py +150 -0
- musegauge-0.1.0/uv.lock +961 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Every push and pull request (spec section 11.7, as changed at GATE 3, amendment A17):
|
|
2
|
+
# the fast test set (it includes the fake plugins), the wheel checks, and the slim image build.
|
|
3
|
+
# Real plugins are not run on hosted runners. Not run yet: the repository has no GitHub remote (D3).
|
|
4
|
+
name: ci
|
|
5
|
+
on: [push, pull_request]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
core:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
strategy:
|
|
11
|
+
fail-fast: false
|
|
12
|
+
matrix:
|
|
13
|
+
python: ["3.10", "3.11", "3.12"]
|
|
14
|
+
env:
|
|
15
|
+
UV_PYTHON_DOWNLOADS: never # fast fakes use the runner's own Python
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- uses: actions/setup-python@v5
|
|
19
|
+
with:
|
|
20
|
+
python-version: ${{ matrix.python }}
|
|
21
|
+
- name: Install uv
|
|
22
|
+
run: python -m pip install uv
|
|
23
|
+
- name: Install musegauge with dev tools
|
|
24
|
+
run: |
|
|
25
|
+
uv venv --python ${{ matrix.python }} .venv
|
|
26
|
+
uv pip install --python .venv/bin/python -e ".[dev]"
|
|
27
|
+
- name: ruff
|
|
28
|
+
run: .venv/bin/ruff check
|
|
29
|
+
- name: Fast tests
|
|
30
|
+
run: .venv/bin/pytest -m "not slow and not network and not gpu and not docker"
|
|
31
|
+
- name: Build the wheel
|
|
32
|
+
run: uv build
|
|
33
|
+
- name: Check the wheel contents
|
|
34
|
+
run: |
|
|
35
|
+
python - <<'PY'
|
|
36
|
+
import glob, zipfile, pathlib
|
|
37
|
+
(whl,) = glob.glob("dist/*.whl")
|
|
38
|
+
names = set(zipfile.ZipFile(whl).namelist())
|
|
39
|
+
root = pathlib.Path("src")
|
|
40
|
+
needed = [str(p.relative_to(root)) for p in root.glob("musegauge/plugins/*/manifest.yaml")]
|
|
41
|
+
needed += [str(p.relative_to(root)) for p in root.glob("musegauge/plugins/*/locks/*.txt")]
|
|
42
|
+
needed += [str(p.relative_to(root)) for p in root.glob("musegauge/suites/*.yaml")]
|
|
43
|
+
needed += ["musegauge/_runtime/musegauge_runtime/run.py", "musegauge/_runtime/musegauge_runtime/__init__.py"]
|
|
44
|
+
missing = [n for n in needed if n not in names]
|
|
45
|
+
print(f"{len(needed)} required files, {len(missing)} missing")
|
|
46
|
+
assert not missing, missing
|
|
47
|
+
PY
|
|
48
|
+
- name: Install the wheel in a clean environment and run it
|
|
49
|
+
run: |
|
|
50
|
+
python -m venv /tmp/clean
|
|
51
|
+
/tmp/clean/bin/pip install dist/*.whl
|
|
52
|
+
/tmp/clean/bin/musegauge --version
|
|
53
|
+
/tmp/clean/bin/musegauge list
|
|
54
|
+
/tmp/clean/bin/musegauge doctor
|
|
55
|
+
|
|
56
|
+
slim-image:
|
|
57
|
+
# Builds the image only; never pushes (D7). The fake plugins run with no network.
|
|
58
|
+
runs-on: ubuntu-latest
|
|
59
|
+
steps:
|
|
60
|
+
- uses: actions/checkout@v4
|
|
61
|
+
- uses: actions/setup-python@v5
|
|
62
|
+
with:
|
|
63
|
+
python-version: "3.12"
|
|
64
|
+
- name: Build the wheel
|
|
65
|
+
run: |
|
|
66
|
+
python -m pip install uv numpy soundfile
|
|
67
|
+
uv build --wheel
|
|
68
|
+
- name: Build the slim image
|
|
69
|
+
run: docker build -f docker/Dockerfile --target slim -t musegauge:slim .
|
|
70
|
+
- name: doctor
|
|
71
|
+
run: docker run --rm musegauge:slim doctor
|
|
72
|
+
- name: Fake plugins with no network
|
|
73
|
+
run: |
|
|
74
|
+
python tests/make_fixtures.py fixtures
|
|
75
|
+
mkdir -p out && chmod 777 out
|
|
76
|
+
docker run --rm --network none \
|
|
77
|
+
-v "$PWD/tests/fake_plugins:/plugins:ro" -e MUSEGAUGE_PLUGIN_PATH=/plugins \
|
|
78
|
+
-v "$PWD/fixtures:/data:ro" -v "$PWD/out:/out" \
|
|
79
|
+
musegauge:slim run --generated /data/gen_small --reference /data/ref_small \
|
|
80
|
+
--metrics fake.clip@1,fake.set@1 --out /out
|
|
81
|
+
test -f out/results.json
|
|
82
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Nightly and on request (spec section 11.7, as changed at GATE 3, amendment A17): the isolation
|
|
2
|
+
# test with the fake plugins (two real environments with different numpy and Python), and the
|
|
3
|
+
# upstream fact check. No real metric plugins: their environments take about 24 GB and their
|
|
4
|
+
# golden numbers are tied to the server they were recorded on. Real golden tests are run by hand
|
|
5
|
+
# with scripts/run_golden.sh (docs/TESTING_REAL_PLUGINS.md).
|
|
6
|
+
# Not run yet: the repository has no GitHub remote (D3).
|
|
7
|
+
name: slow
|
|
8
|
+
on:
|
|
9
|
+
schedule:
|
|
10
|
+
- cron: "0 3 * * *"
|
|
11
|
+
workflow_dispatch:
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
slow:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- uses: actions/setup-python@v5
|
|
19
|
+
with:
|
|
20
|
+
python-version: "3.12"
|
|
21
|
+
- name: Install uv and musegauge
|
|
22
|
+
run: |
|
|
23
|
+
python -m pip install uv
|
|
24
|
+
uv venv --python 3.12 .venv
|
|
25
|
+
uv pip install --python .venv/bin/python -e ".[dev]"
|
|
26
|
+
- name: Re-check upstream facts (fails when an upstream package changed)
|
|
27
|
+
run: .venv/bin/python scripts/verify_facts.py
|
|
28
|
+
- name: Isolation test (fake_np1 and fake_np2)
|
|
29
|
+
run: .venv/bin/pytest -m slow -v tests/integration/test_isolation.py
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0 (2026-10-03, not published)
|
|
4
|
+
|
|
5
|
+
First version. No PyPI or TestPyPI upload and no image pushed (D7 is open). The code is under the
|
|
6
|
+
Apache License 2.0 (`LICENSE`, decision D2).
|
|
7
|
+
|
|
8
|
+
Metrics, all at version `@1`:
|
|
9
|
+
|
|
10
|
+
- `fad.vggish@1`, `fad.clap-laion-music@1`, `fad.encodec-emb@1`: plugin `fad_fadtk`, fadtk 1.1.0, torch 2.7.0
|
|
11
|
+
- `kad.vggish@1`, `kad.clap-laion-music@1`: plugin `kad_kadtk`, kadtk 1.1.0, torch 2.5.1
|
|
12
|
+
- `clapscore.laion-music@1`: plugin `clapscore_laion`, laion-clap 1.1.7, torch 2.7.0 (harness-defined metric)
|
|
13
|
+
- `aesthetics.audiobox@1`: plugin `aesthetics_audiobox`, audiobox-aesthetics 0.0.4, torch 2.7.0
|
|
14
|
+
|
|
15
|
+
Suites: `t2m-basic@1` (default), `t2m-full@1`.
|
|
16
|
+
|
|
17
|
+
Commands: `run`, `list`, `info`, `doctor`, `setup`, `clean`, `report`, `validate`.
|
|
18
|
+
|
|
19
|
+
Install: pip and uvx (tested), Docker `slim` image and Apptainer (written, not built or tested).
|
|
20
|
+
|
|
21
|
+
Changes from the build spec are listed in `docs/DECISIONS.md` (C1 to C4, A1 to A22). The metric
|
|
22
|
+
ids were not bumped during development, because nothing had been released; from this version on,
|
|
23
|
+
every change that can move a metric's numbers bumps its `@N` with a line here.
|
musegauge-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
musegauge-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: musegauge
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Run several existing music generation metrics in one command, each in its own environment.
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Requires-Dist: numpy
|
|
9
|
+
Requires-Dist: pyyaml
|
|
10
|
+
Requires-Dist: soundfile
|
|
11
|
+
Requires-Dist: uv
|
|
12
|
+
Provides-Extra: dev
|
|
13
|
+
Requires-Dist: jsonschema; extra == 'dev'
|
|
14
|
+
Requires-Dist: pytest; extra == 'dev'
|
|
15
|
+
Requires-Dist: ruff; extra == 'dev'
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
# musegauge
|
|
19
|
+
|
|
20
|
+
Needs a GPU, about 28 GB free disk, Linux x86_64.
|
|
21
|
+
|
|
22
|
+
musegauge scores a folder of generated music with several existing metrics in one command:
|
|
23
|
+
Frechet Audio Distance (fadtk), Kernel Audio Distance (kadtk), a CLAP text-audio score
|
|
24
|
+
(laion-clap) and Audiobox Aesthetics. Each metric runs in its own Python environment, which the
|
|
25
|
+
tool builds by itself with uv, so tools that need different torch versions can be used together.
|
|
26
|
+
One run writes a `results.json` and a short report card for a paper appendix.
|
|
27
|
+
|
|
28
|
+
Version 0.1.0. Source: https://github.com/aroy1990-dev/musegauge. Not on PyPI; no container image is published.
|
|
29
|
+
Linux x86_64 is supported; macOS is best effort; Windows is not supported.
|
|
30
|
+
|
|
31
|
+
## Quick start
|
|
32
|
+
|
|
33
|
+
**pip** (Python 3.10 or newer):
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
python3 -m venv .venv && source .venv/bin/activate
|
|
37
|
+
pip install musegauge
|
|
38
|
+
musegauge doctor
|
|
39
|
+
musegauge run --generated ./my_audio --prompts prompts.csv --out ./out
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
If `python3 -m venv` fails because `ensurepip` is missing (a Debian or Ubuntu system Python
|
|
43
|
+
without the `python3-venv` package), use another Python, or `uv venv`.
|
|
44
|
+
|
|
45
|
+
**uvx** (no install; needs uv):
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
uvx musegauge run --generated ./my_audio --out ./out
|
|
49
|
+
uvx --from . musegauge --version # from a clone
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**Docker** (`slim` image; not built or tested by the builder, see `docker/README.md`):
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
uv build && docker build -f docker/Dockerfile --target slim -t musegauge:slim .
|
|
56
|
+
docker run --rm --gpus all -v "$PWD/my_audio:/data/audio:ro" -v musegauge-cache:/cache \
|
|
57
|
+
-v "$PWD/out:/out" musegauge:slim run --generated /data/audio --out /out
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
The first run builds the plugin environments and downloads the model weights into the cache
|
|
61
|
+
folder (`~/.cache/musegauge`, or `/cache` in the container): about 24 GB of environments and
|
|
62
|
+
3.7 GB of weights for all four plugins. `musegauge setup --all --fetch-weights` does this ahead of
|
|
63
|
+
time. All install paths: `docs/INSTALL.md`.
|
|
64
|
+
|
|
65
|
+
## Try it on synthetic audio
|
|
66
|
+
|
|
67
|
+
From a fresh clone, in a new shell:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
git clone https://github.com/aroy1990-dev/musegauge.git && cd musegauge
|
|
71
|
+
python3 -m venv .venv && source .venv/bin/activate
|
|
72
|
+
pip install .
|
|
73
|
+
python tests/make_fixtures.py fixtures
|
|
74
|
+
musegauge run --generated fixtures/gen_small --metrics aesthetics.audiobox@1 --out out
|
|
75
|
+
cat out/report.md
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
`tests/make_fixtures.py` writes synthetic sine-and-noise clips (no real music). The first run
|
|
79
|
+
builds the Audiobox environment (about 5 GB) and downloads its weights (about 400 MB). Scores on
|
|
80
|
+
synthetic audio mean nothing about quality.
|
|
81
|
+
|
|
82
|
+
## Input and output
|
|
83
|
+
|
|
84
|
+
- Input: a folder of `.wav`, `.flac`, `.ogg` or `.mp3` files (`--generated DIR`, with optional
|
|
85
|
+
`--prompts FILE`), or a clips file in JSON lines (`--manifest FILE`).
|
|
86
|
+
- Metrics: a suite (`--suite t2m-basic`, the default, or `t2m-full`) or `--metrics ID,ID`.
|
|
87
|
+
`musegauge list` shows them; `musegauge info METRIC_ID` shows a definition and its licences.
|
|
88
|
+
- Reference: `--reference DIR` or `--reference bundled:fma_pop` (FAD only).
|
|
89
|
+
- Output folder: `results.json`, `report.md`, `per_clip/`, `logs/`, `requests/`, `responses/`.
|
|
90
|
+
|
|
91
|
+
One example output, from `docs/examples/report.md` (synthetic audio; the numbers mean nothing):
|
|
92
|
+
|
|
93
|
+
```text
|
|
94
|
+
| Metric | Score | Mean ± std | 95% CI | n | Status |
|
|
95
|
+
| --- | --- | --- | --- | --- | --- |
|
|
96
|
+
| fad.vggish@1 | fad | 25.369 | — | — | ok |
|
|
97
|
+
| fad.clap-laion-music@1 | fad | 1.274 | — | — | ok |
|
|
98
|
+
| clapscore.laion-music@1 | clap_cosine | 0.232 ± 0.059 | [0.200, 0.262] | 12 | ok |
|
|
99
|
+
| aesthetics.audiobox@1 | CE | 2.405 ± 0.557 | [2.115, 2.705] | 12 | ok |
|
|
100
|
+
| aesthetics.audiobox@1 | PQ | 6.228 ± 0.827 | [5.757, 6.655] | 12 | ok |
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Things to know
|
|
104
|
+
|
|
105
|
+
- **Offline use.** `--no-fetch` blocks downloads from libraries that honour the proxy settings,
|
|
106
|
+
and sets the Hugging Face offline variables. It is best effort, not a guarantee; for a hard
|
|
107
|
+
guarantee cut the network outside the tool (for example a container with no network). It was
|
|
108
|
+
tested only with the proxy method, not with a truly blocked network. Run
|
|
109
|
+
`musegauge setup --fetch-weights` first; `run --no-fetch` never builds an environment.
|
|
110
|
+
- **Network without `--no-fetch`.** FAD and KAD with VGGish contact github.com on every run
|
|
111
|
+
(torch.hub). An HTTP error there is reported as `NETWORK_ERROR`.
|
|
112
|
+
- **Licences.** Every metric's `commercial_ok` is `unknown`, so every run warns
|
|
113
|
+
`UNKNOWN_LICENCE`. `--commercial` refuses such metrics. Details: `docs/LICENCES.md`.
|
|
114
|
+
- **Comparability.** Numbers are comparable only with the same metric ids, reference set, clip
|
|
115
|
+
length, device and thread setting. `fad_inf` is random from run to run. See `docs/METRICS.md`.
|
|
116
|
+
- **Shared machines.** `--threads N` limits CPU threads in each plugin (`docs/INSTALL.md`).
|
|
117
|
+
|
|
118
|
+
## Documentation
|
|
119
|
+
|
|
120
|
+
- `docs/INSTALL.md`: install paths, offline use, disk space, GPU driver, threads
|
|
121
|
+
- `docs/METRICS.md`: what each metric is and where numbers can differ
|
|
122
|
+
- `docs/LICENCES.md`: code, weights and data licence status per metric
|
|
123
|
+
- `docs/plugins/`: one page per plugin (commands, files, downloads, differences from upstream)
|
|
124
|
+
- `docs/PLUGIN_GUIDE.md`: how to write a plugin
|
|
125
|
+
- `docs/UPSTREAM_NOTES.md`: problems found in the upstream tools
|
|
126
|
+
- `docs/TESTING_REAL_PLUGINS.md`: golden tests with the real tools
|
|
127
|
+
- `docs/DECISIONS.md`: choices made, and every change from the build spec
|
|
128
|
+
- `docs/VERIFIED_FACTS.md`, `docs/PROGRESS.md`, `docs/BUILD_REPORT.md`: checks and build record
|
|
129
|
+
|
|
130
|
+
## Licence of this code
|
|
131
|
+
|
|
132
|
+
Apache License 2.0 (`LICENSE`; decision D2). The metric packages and model weights that the
|
|
133
|
+
plugins download have their own licences: `docs/LICENCES.md`.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# musegauge
|
|
2
|
+
|
|
3
|
+
Needs a GPU, about 28 GB free disk, Linux x86_64.
|
|
4
|
+
|
|
5
|
+
musegauge scores a folder of generated music with several existing metrics in one command:
|
|
6
|
+
Frechet Audio Distance (fadtk), Kernel Audio Distance (kadtk), a CLAP text-audio score
|
|
7
|
+
(laion-clap) and Audiobox Aesthetics. Each metric runs in its own Python environment, which the
|
|
8
|
+
tool builds by itself with uv, so tools that need different torch versions can be used together.
|
|
9
|
+
One run writes a `results.json` and a short report card for a paper appendix.
|
|
10
|
+
|
|
11
|
+
Version 0.1.0. Source: https://github.com/aroy1990-dev/musegauge. Not on PyPI; no container image is published.
|
|
12
|
+
Linux x86_64 is supported; macOS is best effort; Windows is not supported.
|
|
13
|
+
|
|
14
|
+
## Quick start
|
|
15
|
+
|
|
16
|
+
**pip** (Python 3.10 or newer):
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
python3 -m venv .venv && source .venv/bin/activate
|
|
20
|
+
pip install musegauge
|
|
21
|
+
musegauge doctor
|
|
22
|
+
musegauge run --generated ./my_audio --prompts prompts.csv --out ./out
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
If `python3 -m venv` fails because `ensurepip` is missing (a Debian or Ubuntu system Python
|
|
26
|
+
without the `python3-venv` package), use another Python, or `uv venv`.
|
|
27
|
+
|
|
28
|
+
**uvx** (no install; needs uv):
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
uvx musegauge run --generated ./my_audio --out ./out
|
|
32
|
+
uvx --from . musegauge --version # from a clone
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**Docker** (`slim` image; not built or tested by the builder, see `docker/README.md`):
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
uv build && docker build -f docker/Dockerfile --target slim -t musegauge:slim .
|
|
39
|
+
docker run --rm --gpus all -v "$PWD/my_audio:/data/audio:ro" -v musegauge-cache:/cache \
|
|
40
|
+
-v "$PWD/out:/out" musegauge:slim run --generated /data/audio --out /out
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The first run builds the plugin environments and downloads the model weights into the cache
|
|
44
|
+
folder (`~/.cache/musegauge`, or `/cache` in the container): about 24 GB of environments and
|
|
45
|
+
3.7 GB of weights for all four plugins. `musegauge setup --all --fetch-weights` does this ahead of
|
|
46
|
+
time. All install paths: `docs/INSTALL.md`.
|
|
47
|
+
|
|
48
|
+
## Try it on synthetic audio
|
|
49
|
+
|
|
50
|
+
From a fresh clone, in a new shell:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
git clone https://github.com/aroy1990-dev/musegauge.git && cd musegauge
|
|
54
|
+
python3 -m venv .venv && source .venv/bin/activate
|
|
55
|
+
pip install .
|
|
56
|
+
python tests/make_fixtures.py fixtures
|
|
57
|
+
musegauge run --generated fixtures/gen_small --metrics aesthetics.audiobox@1 --out out
|
|
58
|
+
cat out/report.md
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
`tests/make_fixtures.py` writes synthetic sine-and-noise clips (no real music). The first run
|
|
62
|
+
builds the Audiobox environment (about 5 GB) and downloads its weights (about 400 MB). Scores on
|
|
63
|
+
synthetic audio mean nothing about quality.
|
|
64
|
+
|
|
65
|
+
## Input and output
|
|
66
|
+
|
|
67
|
+
- Input: a folder of `.wav`, `.flac`, `.ogg` or `.mp3` files (`--generated DIR`, with optional
|
|
68
|
+
`--prompts FILE`), or a clips file in JSON lines (`--manifest FILE`).
|
|
69
|
+
- Metrics: a suite (`--suite t2m-basic`, the default, or `t2m-full`) or `--metrics ID,ID`.
|
|
70
|
+
`musegauge list` shows them; `musegauge info METRIC_ID` shows a definition and its licences.
|
|
71
|
+
- Reference: `--reference DIR` or `--reference bundled:fma_pop` (FAD only).
|
|
72
|
+
- Output folder: `results.json`, `report.md`, `per_clip/`, `logs/`, `requests/`, `responses/`.
|
|
73
|
+
|
|
74
|
+
One example output, from `docs/examples/report.md` (synthetic audio; the numbers mean nothing):
|
|
75
|
+
|
|
76
|
+
```text
|
|
77
|
+
| Metric | Score | Mean ± std | 95% CI | n | Status |
|
|
78
|
+
| --- | --- | --- | --- | --- | --- |
|
|
79
|
+
| fad.vggish@1 | fad | 25.369 | — | — | ok |
|
|
80
|
+
| fad.clap-laion-music@1 | fad | 1.274 | — | — | ok |
|
|
81
|
+
| clapscore.laion-music@1 | clap_cosine | 0.232 ± 0.059 | [0.200, 0.262] | 12 | ok |
|
|
82
|
+
| aesthetics.audiobox@1 | CE | 2.405 ± 0.557 | [2.115, 2.705] | 12 | ok |
|
|
83
|
+
| aesthetics.audiobox@1 | PQ | 6.228 ± 0.827 | [5.757, 6.655] | 12 | ok |
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Things to know
|
|
87
|
+
|
|
88
|
+
- **Offline use.** `--no-fetch` blocks downloads from libraries that honour the proxy settings,
|
|
89
|
+
and sets the Hugging Face offline variables. It is best effort, not a guarantee; for a hard
|
|
90
|
+
guarantee cut the network outside the tool (for example a container with no network). It was
|
|
91
|
+
tested only with the proxy method, not with a truly blocked network. Run
|
|
92
|
+
`musegauge setup --fetch-weights` first; `run --no-fetch` never builds an environment.
|
|
93
|
+
- **Network without `--no-fetch`.** FAD and KAD with VGGish contact github.com on every run
|
|
94
|
+
(torch.hub). An HTTP error there is reported as `NETWORK_ERROR`.
|
|
95
|
+
- **Licences.** Every metric's `commercial_ok` is `unknown`, so every run warns
|
|
96
|
+
`UNKNOWN_LICENCE`. `--commercial` refuses such metrics. Details: `docs/LICENCES.md`.
|
|
97
|
+
- **Comparability.** Numbers are comparable only with the same metric ids, reference set, clip
|
|
98
|
+
length, device and thread setting. `fad_inf` is random from run to run. See `docs/METRICS.md`.
|
|
99
|
+
- **Shared machines.** `--threads N` limits CPU threads in each plugin (`docs/INSTALL.md`).
|
|
100
|
+
|
|
101
|
+
## Documentation
|
|
102
|
+
|
|
103
|
+
- `docs/INSTALL.md`: install paths, offline use, disk space, GPU driver, threads
|
|
104
|
+
- `docs/METRICS.md`: what each metric is and where numbers can differ
|
|
105
|
+
- `docs/LICENCES.md`: code, weights and data licence status per metric
|
|
106
|
+
- `docs/plugins/`: one page per plugin (commands, files, downloads, differences from upstream)
|
|
107
|
+
- `docs/PLUGIN_GUIDE.md`: how to write a plugin
|
|
108
|
+
- `docs/UPSTREAM_NOTES.md`: problems found in the upstream tools
|
|
109
|
+
- `docs/TESTING_REAL_PLUGINS.md`: golden tests with the real tools
|
|
110
|
+
- `docs/DECISIONS.md`: choices made, and every change from the build spec
|
|
111
|
+
- `docs/VERIFIED_FACTS.md`, `docs/PROGRESS.md`, `docs/BUILD_REPORT.md`: checks and build record
|
|
112
|
+
|
|
113
|
+
## Licence of this code
|
|
114
|
+
|
|
115
|
+
Apache License 2.0 (`LICENSE`; decision D2). The metric packages and model weights that the
|
|
116
|
+
plugins download have their own licences: `docs/LICENCES.md`.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# syntax=docker/dockerfile:1
|
|
2
|
+
# musegauge container image, target `slim` (spec section 8.3). There is no `full` target in 0.1
|
|
3
|
+
# (amendment A16, Roy's decision at GATE 3; see docs/IDEAS.md).
|
|
4
|
+
#
|
|
5
|
+
# NOT BUILT on the builder's machine: Docker is not installed there (docs/INSTALL.md).
|
|
6
|
+
#
|
|
7
|
+
# Build from the repository root after `uv build`, so dist/ holds exactly one musegauge wheel:
|
|
8
|
+
# docker build -f docker/Dockerfile --target slim -t musegauge:slim .
|
|
9
|
+
# The plugin lock files are for linux-x86_64, so build for linux/amd64.
|
|
10
|
+
|
|
11
|
+
# Base: Debian bookworm with Python 3.12. The tag was checked on Docker Hub (HTTP API) on
|
|
12
|
+
# 2026-10-03, not with `docker manifest inspect`. Pin it by digest for a release.
|
|
13
|
+
FROM python:3.12-slim-bookworm AS slim
|
|
14
|
+
|
|
15
|
+
# System packages from section 8.3. No 0.1 plugin runs sox (amendment A6); it is kept for
|
|
16
|
+
# `musegauge doctor` and later plugins. ffmpeg also gives torchaudio its FFmpeg backend.
|
|
17
|
+
RUN apt-get update \
|
|
18
|
+
&& apt-get install -y --no-install-recommends sox ffmpeg ca-certificates curl \
|
|
19
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
20
|
+
|
|
21
|
+
# uv, the way the uv Docker guide shows (read 2026-10-03): copy the binaries from the uv image
|
|
22
|
+
# at a fixed version (the guide recommends a fixed version or a digest over `latest`).
|
|
23
|
+
COPY --from=ghcr.io/astral-sh/uv:0.12.22 /uv /uvx /bin/
|
|
24
|
+
|
|
25
|
+
# musegauge from the wheel in the build context, never from PyPI, so CI tests the exact wheel.
|
|
26
|
+
COPY dist/*.whl /tmp/wheels/
|
|
27
|
+
RUN pip install --no-cache-dir /tmp/wheels/*.whl && rm -rf /tmp/wheels
|
|
28
|
+
|
|
29
|
+
# /cache holds the plugin environments (about 24 GB once all are built) and the weights. Mount a
|
|
30
|
+
# writable volume or folder there from outside the image. It is world-writable so the image also
|
|
31
|
+
# works with `docker run --user`.
|
|
32
|
+
RUN mkdir -p /cache && chmod 777 /cache
|
|
33
|
+
ENV MUSEGAUGE_HOME=/cache
|
|
34
|
+
ENTRYPOINT ["musegauge"]
|
|
35
|
+
CMD ["--help"]
|