mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-31 10:51:35 +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()
|
||||
|
||||
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