From 5407b48b87ecc14333a3b1c160fb2252ec286efb Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Fri, 16 Jul 2021 22:30:57 +0800 Subject: [PATCH] Release v1.1 --- CMakeLists.txt | 2 +- kaldifeat/python/tests/test_fbank.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index daaab25..2134663 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.8 FATAL_ERROR) project(kaldifeat) -set(kaldifeat_VERSION "1.0") +set(kaldifeat_VERSION "1.1") set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib") set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib") diff --git a/kaldifeat/python/tests/test_fbank.py b/kaldifeat/python/tests/test_fbank.py index 0f39a1c..0282230 100755 --- a/kaldifeat/python/tests/test_fbank.py +++ b/kaldifeat/python/tests/test_fbank.py @@ -32,8 +32,8 @@ def read_wave(filename) -> torch.Tensor: def test_fbank(): device = torch.device("cpu") - if torch.cuda.is_available(): - device = torch.device("cuda", 0) + # if torch.cuda.is_available(): + # device = torch.device("cuda", 0) wave0 = read_wave("test_data/test.wav") wave1 = read_wave("test_data/test2.wav") @@ -61,8 +61,8 @@ def test_fbank(): # To compute fbank features for only a specified frame audio_frames = fbank.convert_samples_to_frames(wave0) - feature_frame_1 = fbank.compute(audio_frames[1]) - feature_frame_10 = fbank.compute(audio_frames[10]) + feature_frame_1 = fbank.compute(audio_frames[1:2]) + feature_frame_10 = fbank.compute(audio_frames[10:11]) assert torch.allclose(features0[1], feature_frame_1) assert torch.allclose(features0[10], feature_frame_10)