mirror of
https://github.com/huggingface/lerobot.git
synced 2026-06-05 05:11:25 +00:00
test(audio frame): fixing decoded audio frame shape
This commit is contained in:
@@ -445,7 +445,10 @@ def test_add_frame_audio(audio_dataset):
|
|||||||
dataset.save_episode()
|
dataset.save_episode()
|
||||||
|
|
||||||
assert dataset[0]["audio"].shape == torch.Size(
|
assert dataset[0]["audio"].shape == torch.Size(
|
||||||
(int(DEFAULT_AUDIO_CHUNK_DURATION * DEFAULT_SAMPLE_RATE), DUMMY_AUDIO_CHANNELS)
|
(
|
||||||
|
DUMMY_AUDIO_CHANNELS,
|
||||||
|
int(DEFAULT_AUDIO_CHUNK_DURATION * DEFAULT_SAMPLE_RATE),
|
||||||
|
) # Match pytorch channel-first format
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user