Skip to content

Commit f5d9a78

Browse files
committed
Few more minor fixes in docs
1 parent e5c3edb commit f5d9a78

File tree

2 files changed

+2
-32
lines changed

2 files changed

+2
-32
lines changed

compiam/melody/pattern/sancara_search/__init__.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,6 @@ class CAEWrapper:
1717
specifically for the task of embedding audio to learnt CAE features.
1818
This wrapper is used for inference and it is not trainable. Please initialize it using
1919
compiam.load_model()
20-
21-
Example:
22-
```
23-
model_path = "<model_output_folder>/model_complex_auto_cqt.save"
24-
conf_path = "cae-invar/config_cqt_old.ini"
25-
spec_path = "cae-invar/config_spec.cfg"
26-
file_path = "<path_to_audio>"
27-
28-
model = CAEWrapper(model_path, conf_path, spec_path)
29-
ampls, phase = model.extract_features(file_path)
30-
ampls
31-
>> tensor([[1.2935, 4.0693, 1.0390, ..., 0.4740, 1.3497, 0.5319],
32-
[1.5923, 2.4673, 3.4847, ..., 0.4998, 1.3553, 1.4519],
33-
[1.2482, 1.0292, 2.1280, ..., 0.7126, 1.4086, 1.9351],
34-
...,
35-
[7.7372, 5.1458, 1.2539, ..., 1.0162, 0.3583, 0.9603],
36-
[7.4559, 4.9839, 1.7646, ..., 1.2773, 0.2818, 1.1203],
37-
[7.3733, 5.0220, 1.8748, ..., 1.1992, 0.4380, 1.2692]],
38-
grad_fn=<PowBackward0>)
39-
phase
40-
>> tensor([[-0.3304, -2.3667, -2.6688, ..., 1.2986, -0.7942, 1.8279],
41-
[ 0.1712, -2.7483, 0.8825, ..., 1.6427, 2.7336, 0.6940],
42-
[ 1.5836, -0.6167, 0.4733, ..., 2.7312, 2.2416, 0.3589],
43-
...,
44-
[-2.6896, -1.4801, 0.6764, ..., 1.9469, 2.1927, 0.2756],
45-
[-2.5489, -1.5051, 0.8178, ..., 1.9912, 2.0662, 0.1495],
46-
[-2.3444, -1.6104, 0.6585, ..., 1.9241, 0.7816, 0.0332]],
47-
grad_fn=<Atan2Backward>)
48-
```
4920
"""
5021

5122
def __init__(self, model_path, conf_path, spec_path, device="cpu"):

docs/source/timbre.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ Mridangam Stroke Classification
1212
.. note::
1313
REQUIRES: essentia
1414

15-
.. automodule:: compiam.timbre.stroke_classification.mridangam_stroke_classification.MridangamStrokeClassification
16-
:members:
17-
:inherited-members:
15+
.. autoclass:: compiam.timbre.stroke_classification.mridangam_stroke_classification.MridangamStrokeClassification
16+
:members:

0 commit comments

Comments
 (0)