m3l-toolkit 2026.10.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.
- m3l_toolkit-2026.10.0/.gitattributes +2 -0
- m3l_toolkit-2026.10.0/.github/workflows/lint.yaml +22 -0
- m3l_toolkit-2026.10.0/.github/workflows/pypi-publish.yaml +90 -0
- m3l_toolkit-2026.10.0/.gitignore +220 -0
- m3l_toolkit-2026.10.0/.license-header.txt +2 -0
- m3l_toolkit-2026.10.0/.pre-commit-config.yaml +22 -0
- m3l_toolkit-2026.10.0/.readthedocs.yaml +18 -0
- m3l_toolkit-2026.10.0/LICENSE +21 -0
- m3l_toolkit-2026.10.0/LICENSE-BEATS +21 -0
- m3l_toolkit-2026.10.0/LICENSE-PYTORCH +84 -0
- m3l_toolkit-2026.10.0/PKG-INFO +127 -0
- m3l_toolkit-2026.10.0/README.md +71 -0
- m3l_toolkit-2026.10.0/docs/Makefile +25 -0
- m3l_toolkit-2026.10.0/docs/image/favicon.ico +0 -0
- m3l_toolkit-2026.10.0/docs/image/logo_m3l.png +0 -0
- m3l_toolkit-2026.10.0/docs/make.bat +35 -0
- m3l_toolkit-2026.10.0/docs/source/conf.py +101 -0
- m3l_toolkit-2026.10.0/docs/source/index.rst +57 -0
- m3l_toolkit-2026.10.0/docs/source/recipes/desed.rst +75 -0
- m3l_toolkit-2026.10.0/docs/source/recipes/index.rst +73 -0
- m3l_toolkit-2026.10.0/docs/source/recipes/urban_sed.rst +68 -0
- m3l_toolkit-2026.10.0/docs/source/user_guide/index.md +59 -0
- m3l_toolkit-2026.10.0/m3l/__init__.py +3 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/datasets/__init__.py +8 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/datasets/cliplabeled_hdf5_dataset.py +45 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/datasets/framelabeled_hdf5_dataset.py +47 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/datasets/unlabeled_hdf5_dataset.py +43 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/encoders/__init__.py +8 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/encoders/beats.py +60 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/encoders/cnn14.py +90 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/encoders/dcase_crnn.py +102 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/postprocessors/__init__.py +6 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/postprocessors/median_filter.py +29 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/preprocessors/__init__.py +26 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/preprocessors/batch_normalize.py +26 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/preprocessors/clamp.py +21 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/preprocessors/gaussian_noise.py +28 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/preprocessors/mixup.py +40 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/preprocessors/normalize.py +37 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/preprocessors/preprocessor.py +73 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/preprocessors/scale.py +47 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/preprocessors/spec_augment.py +24 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/preprocessors/time_roll.py +31 -0
- m3l_toolkit-2026.10.0/m3l/audio/common/preprocessors/time_warp.py +36 -0
- m3l_toolkit-2026.10.0/m3l/audio/sed/callbacks/__init__.py +6 -0
- m3l_toolkit-2026.10.0/m3l/audio/sed/callbacks/visualizer.py +61 -0
- m3l_toolkit-2026.10.0/m3l/audio/sed/detect.py +69 -0
- m3l_toolkit-2026.10.0/m3l/audio/sed/heads/__init__.py +7 -0
- m3l_toolkit-2026.10.0/m3l/audio/sed/heads/attention_head.py +25 -0
- m3l_toolkit-2026.10.0/m3l/audio/sed/heads/linear_head.py +16 -0
- m3l_toolkit-2026.10.0/m3l/audio/sed/models/__init__.py +7 -0
- m3l_toolkit-2026.10.0/m3l/audio/sed/models/strong_model.py +29 -0
- m3l_toolkit-2026.10.0/m3l/audio/sed/models/strong_weak_model.py +43 -0
- m3l_toolkit-2026.10.0/m3l/audio/sed/tasks/__init__.py +7 -0
- m3l_toolkit-2026.10.0/m3l/audio/sed/tasks/sed_task.py +277 -0
- m3l_toolkit-2026.10.0/m3l/audio/sed/tasks/weak_ema_sed_task.py +166 -0
- m3l_toolkit-2026.10.0/m3l/audio/tagging/callbacks/__init__.py +6 -0
- m3l_toolkit-2026.10.0/m3l/audio/tagging/callbacks/visualizer.py +65 -0
- m3l_toolkit-2026.10.0/m3l/audio/tagging/models/__init__.py +7 -0
- m3l_toolkit-2026.10.0/m3l/audio/tagging/models/cnn14.py +92 -0
- m3l_toolkit-2026.10.0/m3l/audio/tagging/models/tagging_model.py +37 -0
- m3l_toolkit-2026.10.0/m3l/audio/tagging/tasks/tagging_task.py +137 -0
- m3l_toolkit-2026.10.0/m3l/audiotext/ov_sed/audio_backbone/cnn_beats_encoder.py +47 -0
- m3l_toolkit-2026.10.0/m3l/audiotext/ov_sed/gradio/_spaces.py +19 -0
- m3l_toolkit-2026.10.0/m3l/audiotext/ov_sed/gradio/_temporary_files.py +30 -0
- m3l_toolkit-2026.10.0/m3l/audiotext/ov_sed/gradio/_video.py +190 -0
- m3l_toolkit-2026.10.0/m3l/audiotext/ov_sed/gradio/config/default.yaml +91 -0
- m3l_toolkit-2026.10.0/m3l/audiotext/ov_sed/gradio/detect.py +241 -0
- m3l_toolkit-2026.10.0/m3l/audiotext/ov_sed/models/ovsed.py +147 -0
- m3l_toolkit-2026.10.0/m3l/audiotext/ov_sed/pipelines/detect.py +91 -0
- m3l_toolkit-2026.10.0/m3l/audiotext/ov_sed/tasks/doom_sed_task.py +180 -0
- m3l_toolkit-2026.10.0/m3l/audiotext/ov_sed/text_backbone/laion_clap_text_encoder.py +44 -0
- m3l_toolkit-2026.10.0/m3l/audiovisual/avc/callbacks/__init__.py +3 -0
- m3l_toolkit-2026.10.0/m3l/audiovisual/avc/tasks/__init__.py +6 -0
- m3l_toolkit-2026.10.0/m3l/audiovisual/avc/tasks/avc_task.py +119 -0
- m3l_toolkit-2026.10.0/m3l/audiovisual/common/datasets/__init__.py +6 -0
- m3l_toolkit-2026.10.0/m3l/audiovisual/common/datasets/unlabeled_hdf5_dataset.py +74 -0
- m3l_toolkit-2026.10.0/m3l/common/callbacks/__init__.py +7 -0
- m3l_toolkit-2026.10.0/m3l/common/callbacks/exponential_warmup_annealer.py +37 -0
- m3l_toolkit-2026.10.0/m3l/common/callbacks/visualizer.py +61 -0
- m3l_toolkit-2026.10.0/m3l/common/datamodules/__init__.py +7 -0
- m3l_toolkit-2026.10.0/m3l/common/datamodules/multi_datamodule.py +107 -0
- m3l_toolkit-2026.10.0/m3l/common/datamodules/single_datamodule.py +117 -0
- m3l_toolkit-2026.10.0/m3l/common/lr_schedulers/__init__.py +6 -0
- m3l_toolkit-2026.10.0/m3l/common/lr_schedulers/exponential_warmup.py +49 -0
- m3l_toolkit-2026.10.0/m3l/common/nn/__init__.py +46 -0
- m3l_toolkit-2026.10.0/m3l/common/nn/transformer.py +251 -0
- m3l_toolkit-2026.10.0/m3l/third/beats/BEATs.py +179 -0
- m3l_toolkit-2026.10.0/m3l/third/beats/LICENSE +21 -0
- m3l_toolkit-2026.10.0/m3l/third/beats/README.md +257 -0
- m3l_toolkit-2026.10.0/m3l/third/beats/Tokenizers.py +173 -0
- m3l_toolkit-2026.10.0/m3l/third/beats/backbone.py +783 -0
- m3l_toolkit-2026.10.0/m3l/third/beats/beats_README.md +127 -0
- m3l_toolkit-2026.10.0/m3l/third/beats/modules.py +219 -0
- m3l_toolkit-2026.10.0/m3l/third/beats/quantizer.py +215 -0
- m3l_toolkit-2026.10.0/m3l/utils/__init__.py +7 -0
- m3l_toolkit-2026.10.0/m3l/utils/balanced_sampler.py +62 -0
- m3l_toolkit-2026.10.0/m3l/utils/inference.py +68 -0
- m3l_toolkit-2026.10.0/m3l/utils/label_loader.py +18 -0
- m3l_toolkit-2026.10.0/m3l/visual/common/__init__.py +6 -0
- m3l_toolkit-2026.10.0/m3l/visual/common/encoders/__init__.py +8 -0
- m3l_toolkit-2026.10.0/m3l/visual/common/encoders/resnet50.py +48 -0
- m3l_toolkit-2026.10.0/m3l/visual/common/encoders/resnet50_multiscale.py +90 -0
- m3l_toolkit-2026.10.0/m3l/visual/common/encoders/vgglike8.py +59 -0
- m3l_toolkit-2026.10.0/m3l/visual/common/metrics/mean_ap.py +42 -0
- m3l_toolkit-2026.10.0/m3l/visual/common/nest_collator.py +58 -0
- m3l_toolkit-2026.10.0/m3l/visual/common/transforms/__init__.py +20 -0
- m3l_toolkit-2026.10.0/m3l/visual/common/transforms/compose.py +19 -0
- m3l_toolkit-2026.10.0/m3l/visual/common/transforms/convert_boundingboxes_format.py +29 -0
- m3l_toolkit-2026.10.0/m3l/visual/common/transforms/filter_crowd_boundingbox.py +35 -0
- m3l_toolkit-2026.10.0/m3l/visual/common/transforms/labels_getter.py +38 -0
- m3l_toolkit-2026.10.0/m3l/visual/common/transforms/normalize_boundingboxes.py +39 -0
- m3l_toolkit-2026.10.0/m3l/visual/common/transforms/random_choice.py +24 -0
- m3l_toolkit-2026.10.0/m3l/visual/common/transforms/range_random_crop.py +42 -0
- m3l_toolkit-2026.10.0/pixi.lock +11555 -0
- m3l_toolkit-2026.10.0/pixi.toml +99 -0
- m3l_toolkit-2026.10.0/pyproject.toml +49 -0
- m3l_toolkit-2026.10.0/recipes/audioset/Makefile +48 -0
- m3l_toolkit-2026.10.0/recipes/audioset/config.yaml +7 -0
- m3l_toolkit-2026.10.0/recipes/audioset/models/ov-sed/ov-sed.upcast=0.2_resolve-conflict=ontorogy/config.yaml +21 -0
- m3l_toolkit-2026.10.0/recipes/audioset/models/ov-sed/ov-sed.upcast=0.2_resolve-conflict=ontorogy_finelap_lambda=0.1_audiosetname/config.yaml +43 -0
- m3l_toolkit-2026.10.0/recipes/audioset/models/sed/dcase_crnn-beats/config.yaml +131 -0
- m3l_toolkit-2026.10.0/recipes/audioset/models/tagging/cnn14/config.yaml +123 -0
- m3l_toolkit-2026.10.0/recipes/audioset/scripts/0_prepare_dataset.py +98 -0
- m3l_toolkit-2026.10.0/recipes/audioset/scripts/1_convert_mp4.py +76 -0
- m3l_toolkit-2026.10.0/recipes/audioset/scripts/1_convert_strong_groundtruth.py +70 -0
- m3l_toolkit-2026.10.0/recipes/audioset/scripts/1_convert_wav.py +61 -0
- m3l_toolkit-2026.10.0/recipes/audioset/scripts/1_dump_strong_label_names.py +24 -0
- m3l_toolkit-2026.10.0/recipes/audioset/scripts/1_dump_weak_label_names.py +25 -0
- m3l_toolkit-2026.10.0/recipes/audioset/scripts/1_prepare_balanced_sampler.py +42 -0
- m3l_toolkit-2026.10.0/recipes/audioset/scripts/1_prepare_balanced_sampler_strong.py +50 -0
- m3l_toolkit-2026.10.0/recipes/audioset/scripts/2_make_audio_strong_hdf5.py +110 -0
- m3l_toolkit-2026.10.0/recipes/audioset/scripts/2_make_audio_weak_hdf5.py +97 -0
- m3l_toolkit-2026.10.0/recipes/audioset/scripts/2_make_audiovisual_unsupervised_hdf5.py +94 -0
- m3l_toolkit-2026.10.0/recipes/audioset/sed.mk +29 -0
- m3l_toolkit-2026.10.0/recipes/audioset/tagging.mk +28 -0
- m3l_toolkit-2026.10.0/recipes/desed/Makefile +99 -0
- m3l_toolkit-2026.10.0/recipes/desed/config.yaml +1 -0
- m3l_toolkit-2026.10.0/recipes/desed/models/sed/dcase_crnn/config.yaml +23 -0
- m3l_toolkit-2026.10.0/recipes/desed/models/sed/dcase_crnn-beats/config.yaml +28 -0
- m3l_toolkit-2026.10.0/recipes/desed/models/sed/dcase_crnn-beats.weak_ema/config.yaml +36 -0
- m3l_toolkit-2026.10.0/recipes/desed/models/sed/dcase_crnn.weak_ema/config.yaml +32 -0
- m3l_toolkit-2026.10.0/recipes/desed/scripts/0_prepare_dataset.py +97 -0
- m3l_toolkit-2026.10.0/recipes/desed/scripts/1_dump_ground_truth.py +64 -0
- m3l_toolkit-2026.10.0/recipes/desed/scripts/1_summarize_durations.py +35 -0
- m3l_toolkit-2026.10.0/recipes/desed/scripts/2_make_hdf5_strong.py +119 -0
- m3l_toolkit-2026.10.0/recipes/desed/scripts/2_make_hdf5_unsupervised.py +75 -0
- m3l_toolkit-2026.10.0/recipes/desed/scripts/2_make_hdf5_weak.py +87 -0
- m3l_toolkit-2026.10.0/recipes/desed/scripts/5_evaluate_sed_scores.py +148 -0
- m3l_toolkit-2026.10.0/recipes/desed/scripts/summarize_scores.py +39 -0
- m3l_toolkit-2026.10.0/recipes/globals.mk +145 -0
- m3l_toolkit-2026.10.0/recipes/urban-sed/Makefile +86 -0
- m3l_toolkit-2026.10.0/recipes/urban-sed/config.yaml +1 -0
- m3l_toolkit-2026.10.0/recipes/urban-sed/models/sed/dcase_crnn/config.yaml +122 -0
- m3l_toolkit-2026.10.0/recipes/urban-sed/scripts/0_prepare_dataset.py +62 -0
- m3l_toolkit-2026.10.0/recipes/urban-sed/scripts/1_dump_ground_truth.py +50 -0
- m3l_toolkit-2026.10.0/recipes/urban-sed/scripts/1_summarize_durations.py +35 -0
- m3l_toolkit-2026.10.0/recipes/urban-sed/scripts/2_make_hdf5_strong.py +96 -0
- m3l_toolkit-2026.10.0/recipes/urban-sed/scripts/5_evaluate_sed_scores.py +1 -0
- m3l_toolkit-2026.10.0/recipes/urban-sed/scripts/summarize_scores.py +1 -0
- m3l_toolkit-2026.10.0/ruff.toml +41 -0
- m3l_toolkit-2026.10.0/tests/test_ovsed_gradio.py +71 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: Lint
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: ["main", "dev"]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
lint:
|
|
10
|
+
name: Lint
|
|
11
|
+
runs-on: ubuntu-slim
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v5
|
|
14
|
+
with:
|
|
15
|
+
fetch-depth: 0
|
|
16
|
+
- uses: prefix-dev/setup-pixi@v0.9.6
|
|
17
|
+
with:
|
|
18
|
+
environments: gh-actions
|
|
19
|
+
- name: Perform ruff
|
|
20
|
+
run: |
|
|
21
|
+
pixi run -e gh-actions ruff check
|
|
22
|
+
pixi run -e gh-actions ruff format --check
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
name: Upload package to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: '0 0 1 * *'
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
concurrency:
|
|
9
|
+
group: pypi-publish
|
|
10
|
+
cancel-in-progress: false
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
check_commits:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
outputs:
|
|
16
|
+
has_changes: ${{ steps.check_commits.outputs.has_changes }}
|
|
17
|
+
version: ${{ steps.get_version.outputs.version }}
|
|
18
|
+
tag: ${{ steps.get_version.outputs.tag }}
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v5
|
|
22
|
+
with:
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
fetch-tags: true
|
|
25
|
+
|
|
26
|
+
- name: Check for commits since last tag
|
|
27
|
+
id: check_commits
|
|
28
|
+
run: |
|
|
29
|
+
LAST_TAG=$(git tag --list 'v*' --sort=-v:refname | head -n 1)
|
|
30
|
+
echo "Last tag: ${LAST_TAG:-<none>}"
|
|
31
|
+
if [ -z "$LAST_TAG" ] || git log "${LAST_TAG}.." --pretty=oneline | grep .; then
|
|
32
|
+
echo "has_changes=true" >> $GITHUB_OUTPUT
|
|
33
|
+
else
|
|
34
|
+
echo "has_changes=false" >> $GITHUB_OUTPUT
|
|
35
|
+
fi
|
|
36
|
+
|
|
37
|
+
- name: Get current [year].[month](.[patch]) version
|
|
38
|
+
id: get_version
|
|
39
|
+
run: |
|
|
40
|
+
BASE=$(date '+%Y.%-m')
|
|
41
|
+
LAST=$(git tag -l "v${BASE}*" --sort=-v:refname | head -n1)
|
|
42
|
+
|
|
43
|
+
case "$LAST" in
|
|
44
|
+
"") VERSION=$BASE.0 ;;
|
|
45
|
+
*) VERSION=$BASE.$(( ${LAST##*.}+1 )) ;;
|
|
46
|
+
esac
|
|
47
|
+
|
|
48
|
+
echo "version=$VERSION" >>"$GITHUB_OUTPUT"
|
|
49
|
+
echo "tag=v$VERSION" >>"$GITHUB_OUTPUT"
|
|
50
|
+
|
|
51
|
+
publish-if-needed:
|
|
52
|
+
needs: check_commits
|
|
53
|
+
if: needs.check_commits.outputs.has_changes == 'true'
|
|
54
|
+
runs-on: ubuntu-latest
|
|
55
|
+
permissions:
|
|
56
|
+
contents: write
|
|
57
|
+
id-token: write
|
|
58
|
+
|
|
59
|
+
steps:
|
|
60
|
+
- uses: actions/checkout@v5
|
|
61
|
+
with:
|
|
62
|
+
fetch-depth: 0
|
|
63
|
+
fetch-tags: true
|
|
64
|
+
|
|
65
|
+
- name: Set up Pixi
|
|
66
|
+
uses: prefix-dev/setup-pixi@v0.9.6
|
|
67
|
+
with:
|
|
68
|
+
environments: gh-actions
|
|
69
|
+
|
|
70
|
+
- name: Update and push tag
|
|
71
|
+
run: |
|
|
72
|
+
git config user.name "github-actions[bot]"
|
|
73
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
74
|
+
git tag ${{ needs.check_commits.outputs.tag }}
|
|
75
|
+
git push origin ${{ needs.check_commits.outputs.tag }}
|
|
76
|
+
|
|
77
|
+
- name: Build package
|
|
78
|
+
run: |
|
|
79
|
+
pixi run -e gh-actions hatch build
|
|
80
|
+
|
|
81
|
+
- name: Publish to PyPI
|
|
82
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
83
|
+
|
|
84
|
+
- name: Create GitHub Release
|
|
85
|
+
env:
|
|
86
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
87
|
+
run: |
|
|
88
|
+
gh release create ${{ needs.check_commits.outputs.tag }} \
|
|
89
|
+
--title ${{ needs.check_commits.outputs.tag }} \
|
|
90
|
+
--notes "Release created automatically by GitHub Actions"
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
recipes/**
|
|
2
|
+
!recipes/
|
|
3
|
+
!recipes/**/
|
|
4
|
+
dummy/
|
|
5
|
+
hdf5/
|
|
6
|
+
!recipes/**/*.py
|
|
7
|
+
!recipes/**/*config.yaml
|
|
8
|
+
!recipes/**/Makefile
|
|
9
|
+
!recipes/**/*.mk
|
|
10
|
+
recipes/**/merged_config.yaml
|
|
11
|
+
|
|
12
|
+
*.wav
|
|
13
|
+
*.info
|
|
14
|
+
*.npy
|
|
15
|
+
*.npz
|
|
16
|
+
*.pkl
|
|
17
|
+
*.ipynb
|
|
18
|
+
*.json
|
|
19
|
+
*.png
|
|
20
|
+
!docs/**/*.png
|
|
21
|
+
*.jpg
|
|
22
|
+
!docs/**/*.jpg
|
|
23
|
+
|
|
24
|
+
*.done
|
|
25
|
+
|
|
26
|
+
.envrc
|
|
27
|
+
.vscode/
|
|
28
|
+
pyrightconfig.json
|
|
29
|
+
|
|
30
|
+
local/
|
|
31
|
+
src/
|
|
32
|
+
3rd/
|
|
33
|
+
*orig/
|
|
34
|
+
singularity/
|
|
35
|
+
|
|
36
|
+
*token.txt
|
|
37
|
+
|
|
38
|
+
bak*
|
|
39
|
+
tmp*
|
|
40
|
+
sandbox*
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
docs/source/api_reference/
|
|
46
|
+
|
|
47
|
+
# Byte-compiled / optimized / DLL files
|
|
48
|
+
__pycache__/
|
|
49
|
+
*.py[cod]
|
|
50
|
+
*$py.class
|
|
51
|
+
|
|
52
|
+
# C extensions
|
|
53
|
+
*.so
|
|
54
|
+
|
|
55
|
+
# Distribution / packaging
|
|
56
|
+
.Python
|
|
57
|
+
build/
|
|
58
|
+
develop-eggs/
|
|
59
|
+
dist/
|
|
60
|
+
downloads/
|
|
61
|
+
eggs/
|
|
62
|
+
.eggs/
|
|
63
|
+
lib/
|
|
64
|
+
lib64/
|
|
65
|
+
parts/
|
|
66
|
+
sdist/
|
|
67
|
+
var/
|
|
68
|
+
wheels/
|
|
69
|
+
share/python-wheels/
|
|
70
|
+
*.egg-info/
|
|
71
|
+
.installed.cfg
|
|
72
|
+
*.egg
|
|
73
|
+
MANIFEST
|
|
74
|
+
|
|
75
|
+
# PyInstaller
|
|
76
|
+
# Usually these files are written by a python script from a template
|
|
77
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
78
|
+
*.manifest
|
|
79
|
+
*.spec
|
|
80
|
+
|
|
81
|
+
# Installer logs
|
|
82
|
+
pip-log.txt
|
|
83
|
+
pip-delete-this-directory.txt
|
|
84
|
+
|
|
85
|
+
# Unit test / coverage reports
|
|
86
|
+
htmlcov/
|
|
87
|
+
.tox/
|
|
88
|
+
.nox/
|
|
89
|
+
.coverage
|
|
90
|
+
.coverage.*
|
|
91
|
+
.cache
|
|
92
|
+
nosetests.xml
|
|
93
|
+
coverage.xml
|
|
94
|
+
*.cover
|
|
95
|
+
*.py,cover
|
|
96
|
+
.hypothesis/
|
|
97
|
+
.pytest_cache/
|
|
98
|
+
cover/
|
|
99
|
+
|
|
100
|
+
# Translations
|
|
101
|
+
*.mo
|
|
102
|
+
*.pot
|
|
103
|
+
|
|
104
|
+
# Django stuff:
|
|
105
|
+
*.log
|
|
106
|
+
local_settings.py
|
|
107
|
+
db.sqlite3
|
|
108
|
+
db.sqlite3-journal
|
|
109
|
+
|
|
110
|
+
# Flask stuff:
|
|
111
|
+
instance/
|
|
112
|
+
.webassets-cache
|
|
113
|
+
|
|
114
|
+
# Scrapy stuff:
|
|
115
|
+
.scrapy
|
|
116
|
+
|
|
117
|
+
# Sphinx documentation
|
|
118
|
+
docs/build/
|
|
119
|
+
|
|
120
|
+
# PyBuilder
|
|
121
|
+
.pybuilder/
|
|
122
|
+
target/
|
|
123
|
+
|
|
124
|
+
# Jupyter Notebook
|
|
125
|
+
.ipynb_checkpoints
|
|
126
|
+
|
|
127
|
+
# IPython
|
|
128
|
+
profile_default/
|
|
129
|
+
ipython_config.py
|
|
130
|
+
|
|
131
|
+
# pyenv
|
|
132
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
133
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
134
|
+
# .python-version
|
|
135
|
+
|
|
136
|
+
# pipenv
|
|
137
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
138
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
139
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
140
|
+
# install all needed dependencies.
|
|
141
|
+
#Pipfile.lock
|
|
142
|
+
|
|
143
|
+
# UV
|
|
144
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
145
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
146
|
+
# commonly ignored for libraries.
|
|
147
|
+
#uv.lock
|
|
148
|
+
|
|
149
|
+
# poetry
|
|
150
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
151
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
152
|
+
# commonly ignored for libraries.
|
|
153
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
154
|
+
#poetry.lock
|
|
155
|
+
|
|
156
|
+
# pdm
|
|
157
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
158
|
+
#pdm.lock
|
|
159
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
160
|
+
# in version control.
|
|
161
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
162
|
+
.pdm.toml
|
|
163
|
+
.pdm-python
|
|
164
|
+
.pdm-build/
|
|
165
|
+
|
|
166
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
167
|
+
__pypackages__/
|
|
168
|
+
|
|
169
|
+
# Celery stuff
|
|
170
|
+
celerybeat-schedule
|
|
171
|
+
celerybeat.pid
|
|
172
|
+
|
|
173
|
+
# SageMath parsed files
|
|
174
|
+
*.sage.py
|
|
175
|
+
|
|
176
|
+
# Environments
|
|
177
|
+
.env
|
|
178
|
+
.venv
|
|
179
|
+
env/
|
|
180
|
+
venv/
|
|
181
|
+
ENV/
|
|
182
|
+
env.bak/
|
|
183
|
+
venv.bak/
|
|
184
|
+
|
|
185
|
+
# Spyder project settings
|
|
186
|
+
.spyderproject
|
|
187
|
+
.spyproject
|
|
188
|
+
|
|
189
|
+
# Rope project settings
|
|
190
|
+
.ropeproject
|
|
191
|
+
|
|
192
|
+
# mkdocs documentation
|
|
193
|
+
/site
|
|
194
|
+
|
|
195
|
+
# mypy
|
|
196
|
+
.mypy_cache/
|
|
197
|
+
.dmypy.json
|
|
198
|
+
dmypy.json
|
|
199
|
+
|
|
200
|
+
# Pyre type checker
|
|
201
|
+
.pyre/
|
|
202
|
+
|
|
203
|
+
# pytype static type analyzer
|
|
204
|
+
.pytype/
|
|
205
|
+
|
|
206
|
+
# Cython debug symbols
|
|
207
|
+
cython_debug/
|
|
208
|
+
|
|
209
|
+
# PyCharm
|
|
210
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
211
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
212
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
213
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
214
|
+
#.idea/
|
|
215
|
+
|
|
216
|
+
# PyPI configuration file
|
|
217
|
+
.pypirc
|
|
218
|
+
# pixi environments
|
|
219
|
+
.pixi/*
|
|
220
|
+
!.pixi/config.toml
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
default_install_hook_types:
|
|
2
|
+
- pre-commit
|
|
3
|
+
- pre-push
|
|
4
|
+
|
|
5
|
+
repos:
|
|
6
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
7
|
+
rev: v0.14.7
|
|
8
|
+
hooks:
|
|
9
|
+
- id: ruff
|
|
10
|
+
args: [ --fix ]
|
|
11
|
+
- id: ruff-format
|
|
12
|
+
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
|
13
|
+
rev: v1.5.5
|
|
14
|
+
hooks:
|
|
15
|
+
- id: insert-license
|
|
16
|
+
name: "Insert license header"
|
|
17
|
+
args:
|
|
18
|
+
- --license-filepath=.license-header.txt
|
|
19
|
+
- --detect-license-in-X-top-lines=16
|
|
20
|
+
- --allow-past-years
|
|
21
|
+
types_or: [python, makefile]
|
|
22
|
+
exclude: ^(m3l/third/|m3l/common/nn/transformer\.py$)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
version: "2"
|
|
2
|
+
|
|
3
|
+
build:
|
|
4
|
+
os: "ubuntu-24.04"
|
|
5
|
+
tools:
|
|
6
|
+
python: "3.10"
|
|
7
|
+
jobs:
|
|
8
|
+
create_environment:
|
|
9
|
+
- asdf plugin add pixi
|
|
10
|
+
- asdf install pixi latest
|
|
11
|
+
- asdf global pixi latest
|
|
12
|
+
|
|
13
|
+
install:
|
|
14
|
+
- pixi install -e gh-actions --locked
|
|
15
|
+
|
|
16
|
+
build:
|
|
17
|
+
html:
|
|
18
|
+
- pixi run -e gh-actions --locked sphinx-build -T -b html docs/source $READTHEDOCS_OUTPUT/html
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 National Institute of Advanced Industrial Science and Technology (AIST), Japan
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Microsoft Corporation
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
From PyTorch:
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016- Facebook, Inc (Adam Paszke)
|
|
4
|
+
Copyright (c) 2014- Facebook, Inc (Soumith Chintala)
|
|
5
|
+
Copyright (c) 2011-2014 Idiap Research Institute (Ronan Collobert)
|
|
6
|
+
Copyright (c) 2012-2014 Deepmind Technologies (Koray Kavukcuoglu)
|
|
7
|
+
Copyright (c) 2011-2012 NEC Laboratories America (Koray Kavukcuoglu)
|
|
8
|
+
Copyright (c) 2011-2013 NYU (Clement Farabet)
|
|
9
|
+
Copyright (c) 2006-2010 NEC Laboratories America (Ronan Collobert, Leon Bottou, Iain Melvin, Jason Weston)
|
|
10
|
+
Copyright (c) 2006 Idiap Research Institute (Samy Bengio)
|
|
11
|
+
Copyright (c) 2001-2004 Idiap Research Institute (Ronan Collobert, Samy Bengio, Johnny Mariethoz)
|
|
12
|
+
|
|
13
|
+
From Caffe2:
|
|
14
|
+
|
|
15
|
+
Copyright (c) 2016-present, Facebook Inc. All rights reserved.
|
|
16
|
+
|
|
17
|
+
All contributions by Facebook:
|
|
18
|
+
Copyright (c) 2016 Facebook Inc.
|
|
19
|
+
|
|
20
|
+
All contributions by Google:
|
|
21
|
+
Copyright (c) 2015 Google Inc.
|
|
22
|
+
All rights reserved.
|
|
23
|
+
|
|
24
|
+
All contributions by Yangqing Jia:
|
|
25
|
+
Copyright (c) 2015 Yangqing Jia
|
|
26
|
+
All rights reserved.
|
|
27
|
+
|
|
28
|
+
All contributions by Kakao Brain:
|
|
29
|
+
Copyright 2019-2020 Kakao Brain
|
|
30
|
+
|
|
31
|
+
All contributions by Cruise LLC:
|
|
32
|
+
Copyright (c) 2022 Cruise LLC.
|
|
33
|
+
All rights reserved.
|
|
34
|
+
|
|
35
|
+
All contributions by Tri Dao:
|
|
36
|
+
Copyright (c) 2024 Tri Dao.
|
|
37
|
+
All rights reserved.
|
|
38
|
+
|
|
39
|
+
All contributions by Arm:
|
|
40
|
+
Copyright (c) 2021, 2023-2025 Arm Limited and/or its affiliates
|
|
41
|
+
|
|
42
|
+
All contributions from Caffe:
|
|
43
|
+
Copyright(c) 2013, 2014, 2015, the respective contributors
|
|
44
|
+
All rights reserved.
|
|
45
|
+
|
|
46
|
+
All other contributions:
|
|
47
|
+
Copyright(c) 2015, 2016 the respective contributors
|
|
48
|
+
All rights reserved.
|
|
49
|
+
|
|
50
|
+
Caffe2 uses a copyright model similar to Caffe: each contributor holds
|
|
51
|
+
copyright over their contributions to Caffe2. The project versioning records
|
|
52
|
+
all such contribution and copyright details. If a contributor wants to further
|
|
53
|
+
mark their specific copyright on a particular contribution, they should
|
|
54
|
+
indicate their copyright solely in the commit message of the change when it is
|
|
55
|
+
committed.
|
|
56
|
+
|
|
57
|
+
All rights reserved.
|
|
58
|
+
|
|
59
|
+
Redistribution and use in source and binary forms, with or without
|
|
60
|
+
modification, are permitted provided that the following conditions are met:
|
|
61
|
+
|
|
62
|
+
1. Redistributions of source code must retain the above copyright
|
|
63
|
+
notice, this list of conditions and the following disclaimer.
|
|
64
|
+
|
|
65
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
66
|
+
notice, this list of conditions and the following disclaimer in the
|
|
67
|
+
documentation and/or other materials provided with the distribution.
|
|
68
|
+
|
|
69
|
+
3. Neither the names of Facebook, Deepmind Technologies, NYU, NEC Laboratories America
|
|
70
|
+
and IDIAP Research Institute nor the names of its contributors may be
|
|
71
|
+
used to endorse or promote products derived from this software without
|
|
72
|
+
specific prior written permission.
|
|
73
|
+
|
|
74
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
75
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
76
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
77
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
|
78
|
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
79
|
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
80
|
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
81
|
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
82
|
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
83
|
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
84
|
+
POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: m3l-toolkit
|
|
3
|
+
Version: 2026.10.0
|
|
4
|
+
Summary: Multimodal Machine Listening Toolkit
|
|
5
|
+
Project-URL: Home, https://ybando.jp
|
|
6
|
+
Author-email: Yoshiaki Bando <y.bando@aist.go.jp>
|
|
7
|
+
License: MIT License
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2025 National Institute of Advanced Industrial Science and Technology (AIST), Japan
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
in the Software without restriction, including without limitation the rights
|
|
14
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions:
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in all
|
|
19
|
+
copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
|
28
|
+
License-File: LICENSE
|
|
29
|
+
License-File: LICENSE-BEATS
|
|
30
|
+
License-File: LICENSE-PYTORCH
|
|
31
|
+
Requires-Dist: aiaccel>=2026.10.2
|
|
32
|
+
Requires-Dist: einops
|
|
33
|
+
Requires-Dist: gradio>=6.14.0
|
|
34
|
+
Requires-Dist: hydra-core
|
|
35
|
+
Requires-Dist: kornia
|
|
36
|
+
Requires-Dist: librosa
|
|
37
|
+
Requires-Dist: lightning
|
|
38
|
+
Requires-Dist: matplotlib
|
|
39
|
+
Requires-Dist: numpy
|
|
40
|
+
Requires-Dist: omegaconf>=2.4.0
|
|
41
|
+
Requires-Dist: pyyaml
|
|
42
|
+
Requires-Dist: resampy
|
|
43
|
+
Requires-Dist: rich
|
|
44
|
+
Requires-Dist: rotary-embedding-torch>=0.8.9
|
|
45
|
+
Requires-Dist: scipy
|
|
46
|
+
Requires-Dist: seaborn
|
|
47
|
+
Requires-Dist: sed-scores-eval
|
|
48
|
+
Requires-Dist: soundfile
|
|
49
|
+
Requires-Dist: timm
|
|
50
|
+
Requires-Dist: torch
|
|
51
|
+
Requires-Dist: torchaudio
|
|
52
|
+
Requires-Dist: torchmetrics
|
|
53
|
+
Requires-Dist: torchvision
|
|
54
|
+
Requires-Dist: transformers
|
|
55
|
+
Description-Content-Type: text/markdown
|
|
56
|
+
|
|
57
|
+
<div align="center"><img src="https://raw.githubusercontent.com/b-sigpro/m3l/master/docs/image/logo_m3l.png" height="140"/></div>
|
|
58
|
+
|
|
59
|
+
<div align="center">
|
|
60
|
+
<img src="https://img.shields.io/github/license/b-sigpro/m3l.svg" />
|
|
61
|
+
<img src="https://img.shields.io/badge/Python-3.10%2B-blue" />
|
|
62
|
+
<a href="https://m3l-toolkit.readthedocs.io/en/latest/index.html">
|
|
63
|
+
<a href="https://pixi.sh/">
|
|
64
|
+
<img src="https://img.shields.io/badge/Pixi-managed-yellow" alt="Pixi" />
|
|
65
|
+
</a>
|
|
66
|
+
<a href="https://m3l-toolkit.readthedocs.io/en/latest/index.html">
|
|
67
|
+
<img src="https://app.readthedocs.org/projects/m3l-toolkit/badge/?version=latest" />
|
|
68
|
+
</a>
|
|
69
|
+
</div>
|
|
70
|
+
|
|
71
|
+
# M3L: Multi-Modal Machine Listening Toolkit
|
|
72
|
+
|
|
73
|
+
M3L is a research toolkit for multi-modal machine listening, including audio representation learning, sound event detection, and reproducible experiment recipes.
|
|
74
|
+
|
|
75
|
+
## Key features
|
|
76
|
+
|
|
77
|
+
- **Reproducible recipes** – End-to-end pipelines document every stage (data prep, training, inference, evaluation) for reproducible studies.
|
|
78
|
+
- **HPC ready** – Recipes and Makefiles are tuned for ABCI, TSUBAME, and other clusters, yet remain runnable on a single workstation.
|
|
79
|
+
- **Highly modular** – Lightning tasks, common datasets, models, and utilities are built to swap components and run ablations with minimal friction.
|
|
80
|
+
|
|
81
|
+
## Getting started
|
|
82
|
+
|
|
83
|
+
For inference or use as a Python dependency, install M3L from GitHub:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
pip install git+https://github.com/b-sigpro/m3l
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
For development, use [Pixi](https://pixi.sh/) to manage the project environment.
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
git clone git@github.com:b-sigpro/m3l.git
|
|
93
|
+
cd m3l
|
|
94
|
+
pixi install
|
|
95
|
+
pixi run pre-commit install
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
> [!NOTE]
|
|
99
|
+
> The Pixi workspace currently supports Linux (`linux-64`), with a GPU-oriented default environment and a CPU environment for CI.
|
|
100
|
+
|
|
101
|
+
## Recipes
|
|
102
|
+
|
|
103
|
+
Example experiment recipes are available under `recipes/`:
|
|
104
|
+
|
|
105
|
+
- **[DESED](recipes/desed/)** – Sound event detection using the DESED dataset.
|
|
106
|
+
- **[URBAN-SED](recipes/urban-sed/)** – Sound event detection using synthetic urban soundscapes.
|
|
107
|
+
- **[AudioSet](recipes/audioset/)** – Audio tagging, sound event detection, and audio-visual learning.
|
|
108
|
+
|
|
109
|
+
Dataset preparation and experiment execution require the corresponding datasets and recipe-specific configuration.
|
|
110
|
+
|
|
111
|
+
> [!NOTE]
|
|
112
|
+
> These recipes are currently under maintenance.
|
|
113
|
+
|
|
114
|
+
## License
|
|
115
|
+
|
|
116
|
+
M3L is licensed under the [MIT License](LICENSE), except for the following files and directories, which are subject to their own licenses and copyright notices:
|
|
117
|
+
|
|
118
|
+
- [`m3l/common/nn/transformer.py`](m3l/common/nn/transformer.py) – `TransformerEncoderLayer` and `TransformerDecoderLayer` adapted from [PyTorch](https://github.com/pytorch/pytorch), licensed under [MIT AND BSD-3-Clause](LICENSE-PYTORCH).
|
|
119
|
+
- [`m3l/third/beats/`](m3l/third/beats/) – [BEATs](https://github.com/microsoft/unilm/blob/master/beats/README.md), licensed under its own [MIT](LICENSE-BEATS).
|
|
120
|
+
|
|
121
|
+
Please refer to the linked license files before reusing or redistributing these components.
|
|
122
|
+
|
|
123
|
+
## Acknowledgement
|
|
124
|
+
|
|
125
|
+
- Part of this software was developed in a project commissioned by the New Energy and Industrial Technology Development Organization (NEDO).
|
|
126
|
+
- Part of this software was developed by using ABCI 3.0 provided by AIST and AIST Solutions.
|
|
127
|
+
- Part of this software was developed by using the TSUBAME4.0 supercomputer at Institute of Science Tokyo.
|