IO
io
Operations for reading and writing to disk. All side effects should go here.
Functions:
Name | Description |
---|---|
read_audio |
Loads, resamples and converts channels. |
load_weights |
Load the weights from a checkpoint into the given model. |
Attributes:
Name | Type | Description |
---|---|---|
FileLike |
TypeAlias
|
|
read_audio
read_audio(
file: FileLike,
target_sr: SampleRate,
target_channels: int | None,
device: device | None = None,
) -> Audio[RawAudioTensor]
Loads, resamples and converts channels.
Source code in src/splifft/io.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|
load_weights
Load the weights from a checkpoint into the given model.
Source code in src/splifft/io.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
|