Skip to content

Commit

Permalink
Merge pull request #61 from sp-nitech/maintenance
Browse files Browse the repository at this point in the history
Version 1.1.0
  • Loading branch information
takenori-y authored Dec 19, 2023
2 parents 4f0a82d + a1a16ed commit 2b9413f
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 13 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,32 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.8]
pytorch-version: [1.11.0, 2.1.1]
include:
- python: 3.8
torch: 1.11.0
torchaudio: 0.11.0
- python: 3.11
torch: 2.1.2
torchaudio: 2.1.2

steps:
- name: Clone
uses: actions/checkout@v4

- name: Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.python }}
architecture: x64

- name: Dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qq -y libsndfile1
pip3 install torch==${{ matrix.pytorch-version }}+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip3 install torch==${{ matrix.torch }}+cpu torchaudio==${{ matrix.torchaudio }}+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install
run: make dev tool
run: make PYTHON_VERSION=${{ matrix.python }} dev tool

- name: Check
run: make check
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ diffsptk
*diffsptk* is a differentiable version of [SPTK](https://github.com/sp-nitech/SPTK) based on the PyTorch framework.

[![Latest Manual](https://img.shields.io/badge/docs-latest-blue.svg)](https://sp-nitech.github.io/diffsptk/latest/)
[![Stable Manual](https://img.shields.io/badge/docs-stable-blue.svg)](https://sp-nitech.github.io/diffsptk/1.0.1/)
[![Stable Manual](https://img.shields.io/badge/docs-stable-blue.svg)](https://sp-nitech.github.io/diffsptk/1.1.0/)
[![Downloads](https://static.pepy.tech/badge/diffsptk)](https://pepy.tech/project/diffsptk)
[![Python Version](https://img.shields.io/pypi/pyversions/diffsptk.svg)](https://pypi.python.org/pypi/diffsptk)
[![PyTorch Version](https://img.shields.io/badge/pytorch-1.11.0%20%7C%202.1.1-orange.svg)](https://pypi.python.org/pypi/diffsptk)
[![PyTorch Version](https://img.shields.io/badge/pytorch-1.11.0%20%7C%202.1.2-orange.svg)](https://pypi.python.org/pypi/diffsptk)
[![PyPI Version](https://img.shields.io/pypi/v/diffsptk.svg)](https://pypi.python.org/pypi/diffsptk)
[![Codecov](https://codecov.io/gh/sp-nitech/diffsptk/branch/master/graph/badge.svg)](https://app.codecov.io/gh/sp-nitech/diffsptk)
[![License](https://img.shields.io/github/license/sp-nitech/diffsptk.svg)](https://github.com/sp-nitech/diffsptk/blob/master/LICENSE)
Expand Down
2 changes: 1 addition & 1 deletion diffsptk/core/lspcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def forward(self, w1):
Parameters
----------
w1 : Tensor [shape=(..., M+1)]
LSP coefficients.
LSP coefficients in radians.
Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion diffsptk/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.1"
__version__ = "1.1.0"
2 changes: 1 addition & 1 deletion docs/core/lspcheck.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. _lspccheck:
.. _lspcheck:

lspcheck
--------
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cqt.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ def test_compatibility(device, f_min=100, sr=16000, T=1000):
X = cqt(x)
assert torch.argmax(X.abs()) == 0

U.check_differentiable(device, cqt, [T])
U.check_differentiable(device, [torch.abs, cqt], [T])
3 changes: 2 additions & 1 deletion tests/test_root_pol.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import numpy as np
import pytest
import torch

import diffsptk
import tests.utils as U
Expand All @@ -41,4 +42,4 @@ def eq(y_hat, y):
eq=eq,
)

U.check_differentiable(device, root_pol, [B, M + 1])
U.check_differentiable(device, [torch.abs, root_pol], [B, M + 1])

0 comments on commit 2b9413f

Please sign in to comment.