「Python spleeterのインストール」の版間の差分

提供:yonewiki
編集の要約なし
 
(同じ利用者による、間の1版が非表示)
1行目: 1行目:
[[Python]]に戻る
[[Python]]に戻る
== '''2024年11月のログ''' ==
== '''2024年11月のログ''' ==
 再度違う環境でSpleeterを使うための作業をしましたら、2023年1月の手順だけではインストールできなくなっていましたので追記しておきます。Python3.12では無理で、Python3.8を使わないとインストールできませんでした。つまずいた人は以下のようにcondaコマンドで3.8環境を立ち上げて切り替えて使うとよいでしょう。
 2024年11月頃、再度違う環境でSpleeterを使うための作業をしましたら、2023年1月の手順だけではインストールできなくなっていましたので追記しておきます。Python3.12では無理で、Python3.8を使わないとインストールできませんでした。つまずいた人は以下のようにcondaコマンドで3.8環境を立ち上げて切り替えて使うとよいでしょう。




345行目: 345行目:
   Building wheel for audioread (setup.py) ... done
   Building wheel for audioread (setup.py) ... done
   Created wheel for audioread: filename=audioread-3.0.0-py3-none-any.whl size=23703 sha256=7d964c391558f9cad8603d4a05f934807290c5c925855964e7ae4b53a65d8419
   Created wheel for audioread: filename=audioread-3.0.0-py3-none-any.whl size=23703 sha256=7d964c391558f9cad8603d4a05f934807290c5c925855964e7ae4b53a65d8419
   Stored in directory: c:\users\speci\appdata\local\pip\cache\wheels\e4\76\a4\cfb55573167a1f5bde7d7a348e95e509c64b2c3e8f921932c3
   Stored in directory: c:\users\(UserID)\appdata\local\pip\cache\wheels\e4\76\a4\cfb55573167a1f5bde7d7a348e95e509c64b2c3e8f921932c3
Successfully built audioread
Successfully built audioread
Installing collected packages: tensorboard-plugin-wit, rfc3986, libclang, flatbuffers, termcolor, tensorflow-io-gcs-filesystem, tensorflow-estimator, tensorboard-data-server, rsa, protobuf, opt-einsum, oauthlib, keras, hyperframe, hpack, h11, grpcio, google-pasta, gast, ffmpeg-python, click, cachetools, audioread, astunparse, absl-py, typer, soundfile, resampy, requests-oauthlib, pooch, norbert, httpcore, h2, google-auth, librosa, httpx, google-auth-oauthlib, tensorboard, tensorflow-intel, tensorflow, spleeter
Installing collected packages: tensorboard-plugin-wit, rfc3986, libclang, flatbuffers, termcolor, tensorflow-io-gcs-filesystem, tensorflow-estimator, tensorboard-data-server, rsa, protobuf, opt-einsum, oauthlib, keras, hyperframe, hpack, h11, grpcio, google-pasta, gast, ffmpeg-python, click, cachetools, audioread, astunparse, absl-py, typer, soundfile, resampy, requests-oauthlib, pooch, norbert, httpcore, h2, google-auth, librosa, httpx, google-auth-oauthlib, tensorboard, tensorflow-intel, tensorflow, spleeter

2024年11月13日 (水) 17:46時点における最新版

Pythonに戻る

2024年11月のログ

 2024年11月頃、再度違う環境でSpleeterを使うための作業をしましたら、2023年1月の手順だけではインストールできなくなっていましたので追記しておきます。Python3.12では無理で、Python3.8を使わないとインストールできませんでした。つまずいた人は以下のようにcondaコマンドで3.8環境を立ち上げて切り替えて使うとよいでしょう。


(base) [current_path]>conda create -n py38_env python=3.8
(base) [current_path]>conda activate py38_env
(py38_env) [current_path]>


の状態で2023年1月のログの手順を実行するといいでしょう。元に3.12の環境とかに戻すには


(py38_env) [current_path]>conda activate py38_env
(base) [current_path]>


とします。

 

2023年1月のログ

 DynapadN72でspleeterを使うため再度作業をしましたので、その時の作業ログです。

  • まず、Anacondaを使うので、Python関連のアプリをWindowsのアプリと機能から削除します。以前はminiCondaでやらないとうまく行きませんでしたが、改善されていると信じて。公式でAnacondaとかを使うときは全部削除した方が安全と言っているので、そのとおりにしました。以前に作ったプログラムは消えないと言っているのでなんの躊躇もありません。えいっ!


  • そしてAnaconda Windows64Bit版を入れます。えいっ!


  • 管理者権限でコマンドプロンプトを起動します。そして


(base) … >conda init

とします。


  • 次にAnacondaを有効にするため


(base) … >conda activate


とします。


  • 次に次回からAnacondaの有効化を自動でやってもらいたいので


(base) … >conda config --set auto_activate_base true


とします。


  • 忘れないうちに、Powershellも管理者権限で起動して、必要な設定を実施します。今回は使いません。


(base) … >Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force


とします。Powershellは使わないので、閉じちゃいます。えいっ!


  • c:\spleeterで作業するので、ディレクトリ作成とカレントディレクトリの移動処理をします。


(base) … >cd c:\
(base) c:\ >mkdir spleeter
(base) c:\ >cd spleeter
(base) c:\spleeter >


  • spleeterのインストール指示をします。まずは、ffmpegとlibsndfileをインストールします。
(base) c:\spleeter >conda install -c conda-forge ffmpeg libsndfile


以下のようなログを得ます。


Collecting package metadata (current_repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 22.9.0
  latest version: 22.11.1

Please update conda by running

    $ conda update -n base -c defaults conda



## Package Plan ##

  environment location: C:\ProgramData\Anaconda3

  added / updated specs:
    - ffmpeg
    - libsndfile


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    conda-22.11.1              |   py39hcbf5309_1         908 KB  conda-forge
    ffmpeg-4.3.1               |       ha925a31_0        26.2 MB  conda-forge
    libflac-1.3.4              |       h0e60522_0         355 KB  conda-forge
    libogg-1.3.4               |       h8ffe710_1          34 KB  conda-forge
    libopus-1.3.1              |       h8ffe710_1         255 KB  conda-forge
    libsndfile-1.0.31          |       h0e60522_1         354 KB  conda-forge
    libvorbis-1.3.7            |       h0e60522_0         267 KB  conda-forge
    python_abi-3.9             |           2_cp39           4 KB  conda-forge
    ruamel.yaml-0.17.21        |   py39hb82d6ee_1         169 KB  conda-forge
    ruamel.yaml.clib-0.2.6     |   py39h2bbff1b_1         101 KB
    ------------------------------------------------------------
                                           Total:        28.5 MB

The following NEW packages will be INSTALLED:

  ffmpeg             conda-forge/win-64::ffmpeg-4.3.1-ha925a31_0 None
  libflac            conda-forge/win-64::libflac-1.3.4-h0e60522_0 None
  libogg             conda-forge/win-64::libogg-1.3.4-h8ffe710_1 None
  libopus            conda-forge/win-64::libopus-1.3.1-h8ffe710_1 None
  libsndfile         conda-forge/win-64::libsndfile-1.0.31-h0e60522_1 None
  libvorbis          conda-forge/win-64::libvorbis-1.3.7-h0e60522_0 None
  python_abi         conda-forge/win-64::python_abi-3.9-2_cp39 None
  ruamel.yaml        conda-forge/win-64::ruamel.yaml-0.17.21-py39hb82d6ee_1 None
  ruamel.yaml.clib   pkgs/main/win-64::ruamel.yaml.clib-0.2.6-py39h2bbff1b_1 None

The following packages will be UPDATED:

  conda              pkgs/main::conda-22.9.0-py39haa95532_0 --> conda-forge::conda-22.11.1-py39hcbf5309_1 None


  • ffmpegとlibsndfileをインストール確認がされますので、yで続行指示をします。えいっ。


Proceed ([y]/n)? y


引き続き、以下のようなログを得ます。


Downloading and Extracting Packages
libogg-1.3.4         | 34 KB     | ############################################################################ | 100%
libsndfile-1.0.31    | 354 KB    | ############################################################################ | 100%
ffmpeg-4.3.1         | 26.2 MB   | ############################################################################ | 100%
conda-22.11.1        | 908 KB    | ############################################################################ | 100%
python_abi-3.9       | 4 KB      | ############################################################################ | 100%
libvorbis-1.3.7      | 267 KB    | ############################################################################ | 100%
libopus-1.3.1        | 255 KB    | ############################################################################ | 100%
libflac-1.3.4        | 355 KB    | ############################################################################ | 100%
ruamel.yaml-0.17.21  | 169 KB    | ############################################################################ | 100%
ruamel.yaml.clib-0.2 | 101 KB    | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Retrieving notices: ...working... done


  • 次に、spleeter本体を得ます。


(base) c:\spleeter >pip install spleeter


とすると、以下のようなログを得ます。


Collecting spleeter
  Downloading spleeter-2.3.2-py3-none-any.whl (51 kB)
     ---------------------------------------- 51.2/51.2 kB 649.7 kB/s eta 0:00:00
Collecting librosa<0.9.0,>=0.8.0
  Downloading librosa-0.8.1-py3-none-any.whl (203 kB)
     ---------------------------------------- 203.8/203.8 kB 2.5 MB/s eta 0:00:00
Collecting typer<0.4.0,>=0.3.2
  Downloading typer-0.3.2-py3-none-any.whl (21 kB)
Collecting ffmpeg-python==0.2.0
  Downloading ffmpeg_python-0.2.0-py3-none-any.whl (25 kB)
Collecting protobuf<4.0.0,>=3.19.4
  Downloading protobuf-3.20.3-cp39-cp39-win_amd64.whl (904 kB)
     ---------------------------------------- 904.2/904.2 kB 4.8 MB/s eta 0:00:00
Requirement already satisfied: pandas<2.0,>=1.2 in c:\programdata\anaconda3\lib\site-packages (from spleeter) (1.4.4)
Collecting httpx[http2]<0.20.0,>=0.19.0
  Downloading httpx-0.19.0-py3-none-any.whl (77 kB)
     ---------------------------------------- 77.3/77.3 kB 2.2 MB/s eta 0:00:00
Requirement already satisfied: llvmlite<0.39.0,>=0.38.0 in c:\programdata\anaconda3\lib\site-packages (from spleeter) (0.38.0)
Collecting norbert==0.2.1
  Downloading norbert-0.2.1-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: numpy<2.0.0,>=1.19.2 in c:\programdata\anaconda3\lib\site-packages (from spleeter) (1.21.5)
Collecting tensorflow<3.0.0,>=2.5.0
  Downloading tensorflow-2.11.0-cp39-cp39-win_amd64.whl (1.9 kB)
Requirement already satisfied: future in c:\programdata\anaconda3\lib\site-packages (from ffmpeg-python==0.2.0->spleeter) (0.18.2)
Requirement already satisfied: scipy in c:\programdata\anaconda3\lib\site-packages (from norbert==0.2.1->spleeter) (1.9.1)
Requirement already satisfied: certifi in c:\programdata\anaconda3\lib\site-packages (from httpx[http2]<0.20.0,>=0.19.0->spleeter) (2022.9.14)
Collecting rfc3986[idna2008]<2,>=1.3
  Downloading rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
Collecting httpcore<0.14.0,>=0.13.3
  Downloading httpcore-0.13.7-py3-none-any.whl (58 kB)
     ---------------------------------------- 58.8/58.8 kB 3.0 MB/s eta 0:00:00
Requirement already satisfied: sniffio in c:\programdata\anaconda3\lib\site-packages (from httpx[http2]<0.20.0,>=0.19.0->spleeter) (1.2.0)
Requirement already satisfied: charset-normalizer in c:\programdata\anaconda3\lib\site-packages (from httpx[http2]<0.20.0,>=0.19.0->spleeter) (2.0.4)
Collecting h2<5,>=3
  Downloading h2-4.1.0-py3-none-any.whl (57 kB)
     ---------------------------------------- 57.5/57.5 kB 1.5 MB/s eta 0:00:00
Requirement already satisfied: packaging>=20.0 in c:\programdata\anaconda3\lib\site-packages (from librosa<0.9.0,>=0.8.0->spleeter) (21.3)
Requirement already satisfied: joblib>=0.14 in c:\programdata\anaconda3\lib\site-packages (from librosa<0.9.0,>=0.8.0->spleeter) (1.1.0)
Collecting pooch>=1.0
  Downloading pooch-1.6.0-py3-none-any.whl (56 kB)
     ---------------------------------------- 56.3/56.3 kB 742.2 kB/s eta 0:00:00
Requirement already satisfied: decorator>=3.0.0 in c:\programdata\anaconda3\lib\site-packages (from librosa<0.9.0,>=0.8.0->spleeter) (5.1.1)
Requirement already satisfied: scikit-learn!=0.19.0,>=0.14.0 in c:\programdata\anaconda3\lib\site-packages (from librosa<0.9.0,>=0.8.0->spleeter) (1.0.2)
Collecting audioread>=2.0.0
  Downloading audioread-3.0.0.tar.gz (377 kB)
     ---------------------------------------- 377.0/377.0 kB 2.6 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting soundfile>=0.10.2
  Downloading soundfile-0.11.0-py2.py3-none-win_amd64.whl (1.0 MB)
     ---------------------------------------- 1.0/1.0 MB 2.6 MB/s eta 0:00:00
Collecting resampy>=0.2.2
  Downloading resampy-0.4.2-py3-none-any.whl (3.1 MB)
     ---------------------------------------- 3.1/3.1 MB 5.2 MB/s eta 0:00:00
Requirement already satisfied: numba>=0.43.0 in c:\programdata\anaconda3\lib\site-packages (from librosa<0.9.0,>=0.8.0->spleeter) (0.55.1)
Requirement already satisfied: pytz>=2020.1 in c:\programdata\anaconda3\lib\site-packages (from pandas<2.0,>=1.2->spleeter) (2022.1)
Requirement already satisfied: python-dateutil>=2.8.1 in c:\programdata\anaconda3\lib\site-packages (from pandas<2.0,>=1.2->spleeter) (2.8.2)
Collecting tensorflow-intel==2.11.0
  Downloading tensorflow_intel-2.11.0-cp39-cp39-win_amd64.whl (266.3 MB)
     ---------------------------------------- 266.3/266.3 MB 405.9 kB/s eta 0:00:00
Collecting flatbuffers>=2.0
  Downloading flatbuffers-23.1.4-py2.py3-none-any.whl (26 kB)
Requirement already satisfied: h5py>=2.9.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (3.7.0)
Requirement already satisfied: wrapt>=1.11.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (1.14.1)
Collecting libclang>=13.0.0
  Downloading libclang-14.0.6-py2.py3-none-win_amd64.whl (14.2 MB)
     ---------------------------------------- 14.2/14.2 MB 6.3 MB/s eta 0:00:00
Collecting tensorflow-estimator<2.12,>=2.11.0
  Downloading tensorflow_estimator-2.11.0-py2.py3-none-any.whl (439 kB)
     ---------------------------------------- 439.2/439.2 kB 5.5 MB/s eta 0:00:00
Requirement already satisfied: six>=1.12.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (1.16.0)
Requirement already satisfied: setuptools in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (63.4.1)
Collecting absl-py>=1.0.0
  Downloading absl_py-1.3.0-py3-none-any.whl (124 kB)
     ---------------------------------------- 124.6/124.6 kB 3.7 MB/s eta 0:00:00
Collecting grpcio<2.0,>=1.24.3
  Downloading grpcio-1.51.1-cp39-cp39-win_amd64.whl (3.7 MB)
     ---------------------------------------- 3.7/3.7 MB 7.5 MB/s eta 0:00:00
Collecting opt-einsum>=2.3.2
  Downloading opt_einsum-3.3.0-py3-none-any.whl (65 kB)
     ---------------------------------------- 65.5/65.5 kB 1.8 MB/s eta 0:00:00
Collecting gast<=0.4.0,>=0.2.1
  Downloading gast-0.4.0-py3-none-any.whl (9.8 kB)
Collecting tensorflow-io-gcs-filesystem>=0.23.1
  Downloading tensorflow_io_gcs_filesystem-0.29.0-cp39-cp39-win_amd64.whl (1.5 MB)
     ---------------------------------------- 1.5/1.5 MB 5.9 MB/s eta 0:00:00
Collecting astunparse>=1.6.0
  Downloading astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Collecting tensorboard<2.12,>=2.11
  Downloading tensorboard-2.11.0-py3-none-any.whl (6.0 MB)
     ---------------------------------------- 6.0/6.0 MB 8.1 MB/s eta 0:00:00
Collecting termcolor>=1.1.0
  Downloading termcolor-2.2.0-py3-none-any.whl (6.6 kB)
Collecting google-pasta>=0.1.1
  Downloading google_pasta-0.2.0-py3-none-any.whl (57 kB)
     ---------------------------------------- 57.5/57.5 kB 1.5 MB/s eta 0:00:00
Collecting keras<2.12,>=2.11.0
  Downloading keras-2.11.0-py2.py3-none-any.whl (1.7 MB)
     ---------------------------------------- 1.7/1.7 MB 7.1 MB/s eta 0:00:00
Collecting protobuf<4.0.0,>=3.19.4
  Downloading protobuf-3.19.6-cp39-cp39-win_amd64.whl (895 kB)
     ---------------------------------------- 895.9/895.9 kB 7.1 MB/s eta 0:00:00
Requirement already satisfied: typing-extensions>=3.6.6 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (4.3.0)
Collecting click<7.2.0,>=7.1.1
  Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
     ---------------------------------------- 82.8/82.8 kB 2.3 MB/s eta 0:00:00
Collecting hpack<5,>=4.0
  Downloading hpack-4.0.0-py3-none-any.whl (32 kB)
Collecting hyperframe<7,>=6.0
  Downloading hyperframe-6.0.1-py3-none-any.whl (12 kB)
Requirement already satisfied: anyio==3.* in c:\programdata\anaconda3\lib\site-packages (from httpcore<0.14.0,>=0.13.3->httpx[http2]<0.20.0,>=0.19.0->spleeter) (3.5.0)
Collecting h11<0.13,>=0.11
  Downloading h11-0.12.0-py3-none-any.whl (54 kB)
     ---------------------------------------- 54.9/54.9 kB 1.4 MB/s eta 0:00:00
Requirement already satisfied: idna>=2.8 in c:\programdata\anaconda3\lib\site-packages (from anyio==3.*->httpcore<0.14.0,>=0.13.3->httpx[http2]<0.20.0,>=0.19.0->spleeter) (3.3)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in c:\programdata\anaconda3\lib\site-packages (from packaging>=20.0->librosa<0.9.0,>=0.8.0->spleeter) (3.0.9)
Requirement already satisfied: appdirs>=1.3.0 in c:\programdata\anaconda3\lib\site-packages (from pooch>=1.0->librosa<0.9.0,>=0.8.0->spleeter) (1.4.4)
Requirement already satisfied: requests>=2.19.0 in c:\programdata\anaconda3\lib\site-packages (from pooch>=1.0->librosa<0.9.0,>=0.8.0->spleeter) (2.28.1)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\programdata\anaconda3\lib\site-packages (from scikit-learn!=0.19.0,>=0.14.0->librosa<0.9.0,>=0.8.0->spleeter) (2.2.0)
Requirement already satisfied: cffi>=1.0 in c:\programdata\anaconda3\lib\site-packages (from soundfile>=0.10.2->librosa<0.9.0,>=0.8.0->spleeter) (1.15.1)
Requirement already satisfied: wheel<1.0,>=0.23.0 in c:\programdata\anaconda3\lib\site-packages (from astunparse>=1.6.0->tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (0.37.1)
Requirement already satisfied: pycparser in c:\programdata\anaconda3\lib\site-packages (from cffi>=1.0->soundfile>=0.10.2->librosa<0.9.0,>=0.8.0->spleeter) (2.21)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\programdata\anaconda3\lib\site-packages (from requests>=2.19.0->pooch>=1.0->librosa<0.9.0,>=0.8.0->spleeter) (1.26.11)
Collecting tensorboard-plugin-wit>=1.6.0
  Downloading tensorboard_plugin_wit-1.8.1-py3-none-any.whl (781 kB)
     ---------------------------------------- 781.3/781.3 kB 8.2 MB/s eta 0:00:00
Collecting google-auth<3,>=1.6.3
  Downloading google_auth-2.15.0-py2.py3-none-any.whl (177 kB)
     ---------------------------------------- 177.0/177.0 kB 2.6 MB/s eta 0:00:00
Collecting tensorboard-data-server<0.7.0,>=0.6.0
  Downloading tensorboard_data_server-0.6.1-py3-none-any.whl (2.4 kB)
Requirement already satisfied: werkzeug>=1.0.1 in c:\programdata\anaconda3\lib\site-packages (from tensorboard<2.12,>=2.11->tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (2.0.3)
Requirement already satisfied: markdown>=2.6.8 in c:\programdata\anaconda3\lib\site-packages (from tensorboard<2.12,>=2.11->tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (3.3.4)
Collecting google-auth-oauthlib<0.5,>=0.4.1
  Downloading google_auth_oauthlib-0.4.6-py2.py3-none-any.whl (18 kB)
Requirement already satisfied: pyasn1-modules>=0.2.1 in c:\programdata\anaconda3\lib\site-packages (from google-auth<3,>=1.6.3->tensorboard<2.12,>=2.11->tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (0.2.8)
Collecting rsa<5,>=3.1.4
  Downloading rsa-4.9-py3-none-any.whl (34 kB)
Collecting cachetools<6.0,>=2.0.0
  Downloading cachetools-5.2.0-py3-none-any.whl (9.3 kB)
Collecting requests-oauthlib>=0.7.0
  Downloading requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in c:\programdata\anaconda3\lib\site-packages (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard<2.12,>=2.11->tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (0.4.8)
Collecting oauthlib>=3.0.0
  Downloading oauthlib-3.2.2-py3-none-any.whl (151 kB)
     ---------------------------------------- 151.7/151.7 kB 2.3 MB/s eta 0:00:00
Building wheels for collected packages: audioread
  Building wheel for audioread (setup.py) ... done
  Created wheel for audioread: filename=audioread-3.0.0-py3-none-any.whl size=23703 sha256=7d964c391558f9cad8603d4a05f934807290c5c925855964e7ae4b53a65d8419
  Stored in directory: c:\users\(UserID)\appdata\local\pip\cache\wheels\e4\76\a4\cfb55573167a1f5bde7d7a348e95e509c64b2c3e8f921932c3
Successfully built audioread
Installing collected packages: tensorboard-plugin-wit, rfc3986, libclang, flatbuffers, termcolor, tensorflow-io-gcs-filesystem, tensorflow-estimator, tensorboard-data-server, rsa, protobuf, opt-einsum, oauthlib, keras, hyperframe, hpack, h11, grpcio, google-pasta, gast, ffmpeg-python, click, cachetools, audioread, astunparse, absl-py, typer, soundfile, resampy, requests-oauthlib, pooch, norbert, httpcore, h2, google-auth, librosa, httpx, google-auth-oauthlib, tensorboard, tensorflow-intel, tensorflow, spleeter
  Attempting uninstall: click
    Found existing installation: click 8.0.4
    Uninstalling click-8.0.4:
      Successfully uninstalled click-8.0.4
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
black 22.6.0 requires click>=8.0.0, but you have click 7.1.2 which is incompatible.
Successfully installed absl-py-1.3.0 astunparse-1.6.3 audioread-3.0.0 cachetools-5.2.0 click-7.1.2 ffmpeg-python-0.2.0 flatbuffers-23.1.4 gast-0.4.0 google-auth-2.15.0 google-auth-oauthlib-0.4.6 google-pasta-0.2.0 grpcio-1.51.1 h11-0.12.0 h2-4.1.0 hpack-4.0.0 httpcore-0.13.7 httpx-0.19.0 hyperframe-6.0.1 keras-2.11.0 libclang-14.0.6 librosa-0.8.1 norbert-0.2.1 oauthlib-3.2.2 opt-einsum-3.3.0 pooch-1.6.0 protobuf-3.19.6 requests-oauthlib-1.3.1 resampy-0.4.2 rfc3986-1.5.0 rsa-4.9 soundfile-0.11.0 spleeter-2.3.2 tensorboard-2.11.0 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.1 tensorflow-2.11.0 tensorflow-estimator-2.11.0 tensorflow-intel-2.11.0 tensorflow-io-gcs-filesystem-0.29.0 termcolor-2.2.0 typer-0.3.2


はい。でましたエラーです。click?なんそれ?バージョン8.0.0以上でいい?


  • clickのエラーを回復します。


(base) c:\spleeter >pip install click>=8.0.0

(base) c:\spleeter >


何もエラーもログも出ませんでした。


  • もう一度、spleeter本体を得ます。


(base) c:\spleeter >pip install spleeter


とすると、以下のようなログを得ます。


Requirement already satisfied: spleeter in c:\programdata\anaconda3\lib\site-packages (2.3.2)
Requirement already satisfied: httpx[http2]<0.20.0,>=0.19.0 in c:\programdata\anaconda3\lib\site-packages (from spleeter) (0.19.0)
Requirement already satisfied: norbert==0.2.1 in c:\programdata\anaconda3\lib\site-packages (from spleeter) (0.2.1)
Requirement already satisfied: ffmpeg-python==0.2.0 in c:\programdata\anaconda3\lib\site-packages (from spleeter) (0.2.0)
Requirement already satisfied: llvmlite<0.39.0,>=0.38.0 in c:\programdata\anaconda3\lib\site-packages (from spleeter) (0.38.0)
Requirement already satisfied: librosa<0.9.0,>=0.8.0 in c:\programdata\anaconda3\lib\site-packages (from spleeter) (0.8.1)
Requirement already satisfied: protobuf<4.0.0,>=3.19.4 in c:\programdata\anaconda3\lib\site-packages (from spleeter) (3.19.6)
Requirement already satisfied: numpy<2.0.0,>=1.19.2 in c:\programdata\anaconda3\lib\site-packages (from spleeter) (1.21.5)
Requirement already satisfied: typer<0.4.0,>=0.3.2 in c:\programdata\anaconda3\lib\site-packages (from spleeter) (0.3.2)
Requirement already satisfied: tensorflow<3.0.0,>=2.5.0 in c:\programdata\anaconda3\lib\site-packages (from spleeter) (2.11.0)
Requirement already satisfied: pandas<2.0,>=1.2 in c:\programdata\anaconda3\lib\site-packages (from spleeter) (1.4.4)
Requirement already satisfied: future in c:\programdata\anaconda3\lib\site-packages (from ffmpeg-python==0.2.0->spleeter) (0.18.2)
Requirement already satisfied: scipy in c:\programdata\anaconda3\lib\site-packages (from norbert==0.2.1->spleeter) (1.9.1)
Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in c:\programdata\anaconda3\lib\site-packages (from httpx[http2]<0.20.0,>=0.19.0->spleeter) (1.5.0)
Requirement already satisfied: certifi in c:\programdata\anaconda3\lib\site-packages (from httpx[http2]<0.20.0,>=0.19.0->spleeter) (2022.9.14)
Requirement already satisfied: httpcore<0.14.0,>=0.13.3 in c:\programdata\anaconda3\lib\site-packages (from httpx[http2]<0.20.0,>=0.19.0->spleeter) (0.13.7)
Requirement already satisfied: charset-normalizer in c:\programdata\anaconda3\lib\site-packages (from httpx[http2]<0.20.0,>=0.19.0->spleeter) (2.0.4)
Requirement already satisfied: sniffio in c:\programdata\anaconda3\lib\site-packages (from httpx[http2]<0.20.0,>=0.19.0->spleeter) (1.2.0)
Requirement already satisfied: h2<5,>=3 in c:\programdata\anaconda3\lib\site-packages (from httpx[http2]<0.20.0,>=0.19.0->spleeter) (4.1.0)
Requirement already satisfied: numba>=0.43.0 in c:\programdata\anaconda3\lib\site-packages (from librosa<0.9.0,>=0.8.0->spleeter) (0.55.1)
Requirement already satisfied: packaging>=20.0 in c:\programdata\anaconda3\lib\site-packages (from librosa<0.9.0,>=0.8.0->spleeter) (21.3)
Requirement already satisfied: joblib>=0.14 in c:\programdata\anaconda3\lib\site-packages (from librosa<0.9.0,>=0.8.0->spleeter) (1.1.0)
Requirement already satisfied: scikit-learn!=0.19.0,>=0.14.0 in c:\programdata\anaconda3\lib\site-packages (from librosa<0.9.0,>=0.8.0->spleeter) (1.0.2)
Requirement already satisfied: soundfile>=0.10.2 in c:\programdata\anaconda3\lib\site-packages (from librosa<0.9.0,>=0.8.0->spleeter) (0.11.0)
Requirement already satisfied: pooch>=1.0 in c:\programdata\anaconda3\lib\site-packages (from librosa<0.9.0,>=0.8.0->spleeter) (1.6.0)
Requirement already satisfied: decorator>=3.0.0 in c:\programdata\anaconda3\lib\site-packages (from librosa<0.9.0,>=0.8.0->spleeter) (5.1.1)
Requirement already satisfied: audioread>=2.0.0 in c:\programdata\anaconda3\lib\site-packages (from librosa<0.9.0,>=0.8.0->spleeter) (3.0.0)
Requirement already satisfied: resampy>=0.2.2 in c:\programdata\anaconda3\lib\site-packages (from librosa<0.9.0,>=0.8.0->spleeter) (0.4.2)
Requirement already satisfied: pytz>=2020.1 in c:\programdata\anaconda3\lib\site-packages (from pandas<2.0,>=1.2->spleeter) (2022.1)
Requirement already satisfied: python-dateutil>=2.8.1 in c:\programdata\anaconda3\lib\site-packages (from pandas<2.0,>=1.2->spleeter) (2.8.2)
Requirement already satisfied: tensorflow-intel==2.11.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow<3.0.0,>=2.5.0->spleeter) (2.11.0)
Requirement already satisfied: grpcio<2.0,>=1.24.3 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (1.51.1)
Requirement already satisfied: google-pasta>=0.1.1 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (0.2.0)
Requirement already satisfied: astunparse>=1.6.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (1.6.3)
Requirement already satisfied: flatbuffers>=2.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (23.1.4)
Requirement already satisfied: typing-extensions>=3.6.6 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (4.3.0)
Requirement already satisfied: h5py>=2.9.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (3.7.0)
Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (0.29.0)
Requirement already satisfied: termcolor>=1.1.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (2.2.0)
Requirement already satisfied: keras<2.12,>=2.11.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (2.11.0)
Requirement already satisfied: opt-einsum>=2.3.2 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (3.3.0)
Requirement already satisfied: gast<=0.4.0,>=0.2.1 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (0.4.0)
Requirement already satisfied: libclang>=13.0.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (14.0.6)
Requirement already satisfied: tensorboard<2.12,>=2.11 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (2.11.0)
Requirement already satisfied: wrapt>=1.11.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (1.14.1)
Requirement already satisfied: six>=1.12.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (1.16.0)
Requirement already satisfied: absl-py>=1.0.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (1.3.0)
Requirement already satisfied: tensorflow-estimator<2.12,>=2.11.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (2.11.0)
Requirement already satisfied: setuptools in c:\programdata\anaconda3\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (63.4.1)
Requirement already satisfied: click<7.2.0,>=7.1.1 in c:\programdata\anaconda3\lib\site-packages (from typer<0.4.0,>=0.3.2->spleeter) (7.1.2)
Requirement already satisfied: hyperframe<7,>=6.0 in c:\programdata\anaconda3\lib\site-packages (from h2<5,>=3->httpx[http2]<0.20.0,>=0.19.0->spleeter) (6.0.1)
Requirement already satisfied: hpack<5,>=4.0 in c:\programdata\anaconda3\lib\site-packages (from h2<5,>=3->httpx[http2]<0.20.0,>=0.19.0->spleeter) (4.0.0)
Requirement already satisfied: h11<0.13,>=0.11 in c:\programdata\anaconda3\lib\site-packages (from httpcore<0.14.0,>=0.13.3->httpx[http2]<0.20.0,>=0.19.0->spleeter) (0.12.0)
Requirement already satisfied: anyio==3.* in c:\programdata\anaconda3\lib\site-packages (from httpcore<0.14.0,>=0.13.3->httpx[http2]<0.20.0,>=0.19.0->spleeter) (3.5.0)
Requirement already satisfied: idna>=2.8 in c:\programdata\anaconda3\lib\site-packages (from anyio==3.*->httpcore<0.14.0,>=0.13.3->httpx[http2]<0.20.0,>=0.19.0->spleeter) (3.3)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in c:\programdata\anaconda3\lib\site-packages (from packaging>=20.0->librosa<0.9.0,>=0.8.0->spleeter) (3.0.9)
Requirement already satisfied: requests>=2.19.0 in c:\programdata\anaconda3\lib\site-packages (from pooch>=1.0->librosa<0.9.0,>=0.8.0->spleeter) (2.28.1)
Requirement already satisfied: appdirs>=1.3.0 in c:\programdata\anaconda3\lib\site-packages (from pooch>=1.0->librosa<0.9.0,>=0.8.0->spleeter) (1.4.4)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\programdata\anaconda3\lib\site-packages (from scikit-learn!=0.19.0,>=0.14.0->librosa<0.9.0,>=0.8.0->spleeter) (2.2.0)
Requirement already satisfied: cffi>=1.0 in c:\programdata\anaconda3\lib\site-packages (from soundfile>=0.10.2->librosa<0.9.0,>=0.8.0->spleeter) (1.15.1)
Requirement already satisfied: wheel<1.0,>=0.23.0 in c:\programdata\anaconda3\lib\site-packages (from astunparse>=1.6.0->tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (0.37.1)
Requirement already satisfied: pycparser in c:\programdata\anaconda3\lib\site-packages (from cffi>=1.0->soundfile>=0.10.2->librosa<0.9.0,>=0.8.0->spleeter) (2.21)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\programdata\anaconda3\lib\site-packages (from requests>=2.19.0->pooch>=1.0->librosa<0.9.0,>=0.8.0->spleeter) (1.26.11)
Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in c:\programdata\anaconda3\lib\site-packages (from tensorboard<2.12,>=2.11->tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (0.6.1)
Requirement already satisfied: werkzeug>=1.0.1 in c:\programdata\anaconda3\lib\site-packages (from tensorboard<2.12,>=2.11->tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (2.0.3)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in c:\programdata\anaconda3\lib\site-packages (from tensorboard<2.12,>=2.11->tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (1.8.1)
Requirement already satisfied: google-auth<3,>=1.6.3 in c:\programdata\anaconda3\lib\site-packages (from tensorboard<2.12,>=2.11->tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (2.15.0)
Requirement already satisfied: markdown>=2.6.8 in c:\programdata\anaconda3\lib\site-packages (from tensorboard<2.12,>=2.11->tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (3.3.4)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in c:\programdata\anaconda3\lib\site-packages (from tensorboard<2.12,>=2.11->tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (0.4.6)
Requirement already satisfied: pyasn1-modules>=0.2.1 in c:\programdata\anaconda3\lib\site-packages (from google-auth<3,>=1.6.3->tensorboard<2.12,>=2.11->tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (0.2.8)
Requirement already satisfied: rsa<5,>=3.1.4 in c:\programdata\anaconda3\lib\site-packages (from google-auth<3,>=1.6.3->tensorboard<2.12,>=2.11->tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (4.9)
Requirement already satisfied: cachetools<6.0,>=2.0.0 in c:\programdata\anaconda3\lib\site-packages (from google-auth<3,>=1.6.3->tensorboard<2.12,>=2.11->tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (5.2.0)
Requirement already satisfied: requests-oauthlib>=0.7.0 in c:\programdata\anaconda3\lib\site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.12,>=2.11->tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (1.3.1)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in c:\programdata\anaconda3\lib\site-packages (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard<2.12,>=2.11->tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (0.4.8)
Requirement already satisfied: oauthlib>=3.0.0 in c:\programdata\anaconda3\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.12,>=2.11->tensorflow-intel==2.11.0->tensorflow<3.0.0,>=2.5.0->spleeter) (3.2.2)


という感じで、うまく行きました。使えますね。


 次に試しに、2stem、4stem、5stemの抽出処理を、実施します。3stemは存在しません。あしからず。



  • まずは2Stemの処理をします。いずれの処理も初回だけ、最初にモデルをダウンロードしようとします。なのでちょっと時間がかかります。


(base) c:\spleeter>spleeter separate -p spleeter:2stems -o 2stem_output audio_example.mp3


すると以下のようなログを得ます。うまくいった例です。


C:\ProgramData\Anaconda3\lib\site-packages\paramiko\transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated
  "class": algorithms.Blowfish,
INFO:spleeter:Downloading model archive https://github.com/deezer/spleeter/releases/download/v1.4.0/2stems.tar.gz
INFO:spleeter:Validating archive checksum
INFO:spleeter:Extracting downloaded 2stems archive
INFO:spleeter:2stems model file(s) extracted
INFO:spleeter:File 2stem_output\audio_example/vocals.wav written succesfully
INFO:spleeter:File 2stem_output\audio_example/accompaniment.wav written succesfully


警告が表示されますが、気にしないでよいでしょう。


  • 次に4Stemを実施します。


(base) c:\spleeter>spleeter separate -p spleeter:4stems -o 4stem_output audio_example.mp3


すると以下のようなログを得ます。うまくいった例です。


C:\ProgramData\Anaconda3\lib\site-packages\paramiko\transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated
  "class": algorithms.Blowfish,
INFO:spleeter:Downloading model archive https://github.com/deezer/spleeter/releases/download/v1.4.0/4stems.tar.gz
INFO:spleeter:Validating archive checksum
INFO:spleeter:Extracting downloaded 4stems archive
INFO:spleeter:4stems model file(s) extracted
INFO:spleeter:File output\audio_example/drums.wav written succesfully
INFO:spleeter:File output\audio_example/bass.wav written succesfully
INFO:spleeter:File output\audio_example/vocals.wav written succesfully
INFO:spleeter:File output\audio_example/other.wav written succesfully


警告が表示されますが、気にしないでよいでしょう。


  • 次に5Stemを実施します。


(base) c:\spleeter>spleeter separate -p spleeter:5stems -o 5stem_output audio_example.mp3


すると以下のようなログを得ます。うまくいった例です。


C:\ProgramData\Anaconda3\lib\site-packages\paramiko\transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated
  "class": algorithms.Blowfish,
INFO:spleeter:File 5stem_output\audio_example/piano.wav written succesfully
INFO:spleeter:File 5stem_output\audio_example/bass.wav written succesfully
INFO:spleeter:File 5stem_output\audio_example/vocals.wav written succesfully
INFO:spleeter:File 5stem_output\audio_example/drums.wav written succesfully
INFO:spleeter:File 5stem_output\audio_example/other.wav written succesfully


警告が表示されますが、気にしないでよいでしょう。という具合に使います。


 自分の音楽を抽出処理するときは、spleeterコマンドのオプション -o の後ろの *stem_output というのが、出力フォルダなのでなので、ここを任意に変えるとよいでしょう。あとは、入力は一番後ろの audio_example.mp3 というのがファイル名です。


 ドラムとベースのどちらかを消すというのは難しそうです。二つで一つって感じがしますね。歌声は完全に切り離せます。イメージとしては、歌 と ドラムベース と その他 で切り離せるというイメージでいいんちゃうかな。すると ギター や 歌の練習はしやすいかもしれませんね。耳コピするときも分離してから作業すると音のいりまじる感じが低減されてやりやすいかもね。年月がたって、Web上のサービスを立ち上げてるんで、Pythonを操りたくない人でも使えるようになっているのは、よいことですね。でも、世に放てないようなファイルばかりが抽出の対象だと思うので、流行らないね。pythonをあやつらないことには、個人的なファイルは処理できない。覚えた方がよいでしょうね。


 そんなところかな。以上。現場からでした。

2018年くらいのログ

 spleeterをインストールしたときのログです。

(py36) PS C...> conda install -c conda-forge spleeter                                  
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.8.3
  latest version: 4.9.2

Please update conda by running

    $ conda update -n base -c defaults conda



## Package Plan ##

  environment location: C:\ProgramData\Anaconda3\envs\jupyter

  added / updated specs:
    - spleeter


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    _tflow_select-2.2.0        |            eigen           3 KB
    decorator-4.4.2            |             py_0          11 KB  conda-forge
    importlib-metadata-2.0.0   |             py_1          28 KB  conda-forge
    importlib_metadata-2.0.0   |                1           3 KB  conda-forge
    python-dateutil-2.8.1      |             py_0         220 KB  conda-forge
    python_abi-3.6             |          1_cp36m           4 KB  conda-forge
    tensorflow-1.15.0          |eigen_py36h932cce6_0           4 KB
    typing-extensions-3.7.4.3  |                0           8 KB  conda-forge
    yarl-1.6.3                 |   py36h68aa20f_0         134 KB  conda-forge
    ------------------------------------------------------------
                                           Total:         414 KB

The following NEW packages will be INSTALLED:

  _tflow_select      pkgs/main/win-64::_tflow_select-2.2.0-eigen
  absl-py            conda-forge/win-64::absl-py-0.10.0-py36h9f0ad1d_1
  aiohttp            conda-forge/win-64::aiohttp-3.7.2-py36h779f372_0
  appdirs            conda-forge/noarch::appdirs-1.4.4-pyh9f0ad1d_0
  astor              conda-forge/noarch::astor-0.8.1-pyh9f0ad1d_0
  async-timeout      conda-forge/noarch::async-timeout-3.0.1-py_1000
  attrs              conda-forge/noarch::attrs-20.3.0-pyhd3deb0d_0
  audioread          conda-forge/win-64::audioread-2.1.8-py36h9f0ad1d_3
  blinker            conda-forge/noarch::blinker-1.4-py_1
  brotlipy           conda-forge/win-64::brotlipy-0.7.0-py36hc753bc4_1001
  ca-certificates    conda-forge/win-64::ca-certificates-2020.11.8-h5b45459_0
  cached-property    conda-forge/noarch::cached-property-1.5.1-py_0
  cachetools         conda-forge/noarch::cachetools-4.1.1-py_0
  cffi               conda-forge/win-64::cffi-1.14.3-py36h2e103f8_1
  chardet            conda-forge/win-64::chardet-3.0.4-py36hd36e781_1008
  click              conda-forge/noarch::click-7.1.2-pyh9f0ad1d_0
  cryptography       conda-forge/win-64::cryptography-3.2.1-py36he58ceb7_0
  cycler             conda-forge/noarch::cycler-0.10.0-py_2
  decorator          conda-forge/noarch::decorator-4.4.2-py_0
  ffmpeg             conda-forge/win-64::ffmpeg-4.3.1-ha925a31_0
  ffmpeg-python      conda-forge/noarch::ffmpeg-python-0.2.0-py_0
  freetype           conda-forge/win-64::freetype-2.10.4-h546665d_0
  future             conda-forge/win-64::future-0.18.2-py36ha15d459_2
  gast               conda-forge/noarch::gast-0.2.2-py_0
  google-auth        conda-forge/noarch::google-auth-1.23.0-pyhd8ed1ab_0
  google-auth-oauth~ conda-forge/noarch::google-auth-oauthlib-0.4.1-py_2
  google-pasta       conda-forge/noarch::google-pasta-0.2.0-pyh8c360ce_0
  grpcio             conda-forge/win-64::grpcio-1.33.2-py36h4374274_2
  h5py               conda-forge/win-64::h5py-3.1.0-nompi_py36hf359dfe_100
  hdf5               conda-forge/win-64::hdf5-1.10.6-nompi_h89124ea_1110
  idna               conda-forge/noarch::idna-2.10-pyh9f0ad1d_0
  idna_ssl           conda-forge/win-64::idna_ssl-1.1.0-py36h9f0ad1d_1001
  importlib-metadata conda-forge/noarch::importlib-metadata-2.0.0-py_1
  importlib_metadata conda-forge/noarch::importlib_metadata-2.0.0-1
  importlib_resourc~ conda-forge/win-64::importlib_resources-3.3.0-py36ha15d459_0
  intel-openmp       conda-forge/win-64::intel-openmp-2020.3-h57928b3_311
  joblib             conda-forge/noarch::joblib-0.17.0-py_0
  jpeg               conda-forge/win-64::jpeg-9d-h8ffe710_0
  keras-applications conda-forge/noarch::keras-applications-1.0.8-py_1
  keras-preprocessi~ conda-forge/noarch::keras-preprocessing-1.1.0-py_0
  kiwisolver         conda-forge/win-64::kiwisolver-1.3.1-py36he95197e_0
  krb5               conda-forge/win-64::krb5-1.17.1-hc04afaa_3
  libblas            conda-forge/win-64::libblas-3.8.0-20_mkl
  libcblas           conda-forge/win-64::libcblas-3.8.0-20_mkl
  libcurl            conda-forge/win-64::libcurl-7.71.1-h4b64cdc_8
  libflac            conda-forge/win-64::libflac-1.3.3-h6538335_0
  liblapack          conda-forge/win-64::liblapack-3.8.0-20_mkl
  libogg             conda-forge/win-64::libogg-1.3.2-hfa6e2cd_1002
  libpng             conda-forge/win-64::libpng-1.6.37-h1d00b33_2
  libprotobuf        conda-forge/win-64::libprotobuf-3.13.0.1-h200bbdf_0
  librosa            conda-forge/noarch::librosa-0.8.0-pyh9f0ad1d_0
  libsndfile         conda-forge/win-64::libsndfile-1.0.29-ha925a31_0
  libssh2            conda-forge/win-64::libssh2-1.9.0-hb06d900_5
  libtiff            conda-forge/win-64::libtiff-4.1.0-hc10be44_6
  libvorbis          conda-forge/win-64::libvorbis-1.3.7-ha925a31_0
  llvmlite           conda-forge/win-64::llvmlite-0.34.0-py36hefa7ec1_2
  lz4-c              conda-forge/win-64::lz4-c-1.9.2-h62dcd97_2
  m2w64-gcc-libgfor~ pkgs/msys2/win-64::m2w64-gcc-libgfortran-5.3.0-6
  m2w64-gcc-libs     pkgs/msys2/win-64::m2w64-gcc-libs-5.3.0-7
  m2w64-gcc-libs-co~ pkgs/msys2/win-64::m2w64-gcc-libs-core-5.3.0-7
  m2w64-gmp          pkgs/msys2/win-64::m2w64-gmp-6.1.0-2
  m2w64-libwinpthre~ pkgs/msys2/win-64::m2w64-libwinpthread-git-5.0.0.4634.697f757-2
  markdown           conda-forge/noarch::markdown-3.3.3-pyh9f0ad1d_0
  matplotlib-base    conda-forge/win-64::matplotlib-base-3.3.3-py36h1abdf75_0
  mkl                pkgs/main/win-64::mkl-2020.2-256
  msys2-conda-epoch  pkgs/msys2/win-64::msys2-conda-epoch-20160418-1
  multidict          conda-forge/win-64::multidict-4.7.5-py36h779f372_2
  norbert            conda-forge/noarch::norbert-0.2.1-py_0
  numba              conda-forge/win-64::numba-0.51.2-py36hd7f5668_0
  numpy              conda-forge/win-64::numpy-1.19.4-py36hd1b969e_1
  oauthlib           conda-forge/noarch::oauthlib-3.0.1-py_0
  olefile            conda-forge/noarch::olefile-0.46-pyh9f0ad1d_1
  openssl            conda-forge/win-64::openssl-1.1.1h-he774522_0
  opt_einsum         conda-forge/noarch::opt_einsum-3.3.0-py_0
  packaging          conda-forge/noarch::packaging-20.4-pyh9f0ad1d_0
  pandas             conda-forge/win-64::pandas-1.1.4-py36he38d939_0
  pillow             conda-forge/win-64::pillow-8.0.1-py36ha0524ae_0
  pooch              conda-forge/noarch::pooch-1.2.0-py_0
  protobuf           conda-forge/win-64::protobuf-3.13.0.1-py36h003fed8_1
  pyasn1             conda-forge/noarch::pyasn1-0.4.8-py_0
  pyasn1-modules     conda-forge/noarch::pyasn1-modules-0.2.7-py_0
  pycparser          conda-forge/noarch::pycparser-2.20-pyh9f0ad1d_2
  pyjwt              conda-forge/noarch::pyjwt-1.7.1-py_0
  pyopenssl          conda-forge/noarch::pyopenssl-19.1.0-py_1
  pyparsing          conda-forge/noarch::pyparsing-2.4.7-pyh9f0ad1d_0
  pyreadline         conda-forge/win-64::pyreadline-2.1-py36h9f0ad1d_1002
  pysocks            conda-forge/win-64::pysocks-1.7.1-py36hd36e781_2
  pysoundfile        conda-forge/noarch::pysoundfile-0.10.2-py_1001
  python-dateutil    conda-forge/noarch::python-dateutil-2.8.1-py_0
  python_abi         conda-forge/win-64::python_abi-3.6-1_cp36m
  pytz               conda-forge/noarch::pytz-2020.4-pyhd8ed1ab_0
  requests           conda-forge/noarch::requests-2.25.0-pyhd3deb0d_0
  requests-oauthlib  conda-forge/noarch::requests-oauthlib-1.3.0-pyh9f0ad1d_0
  resampy            conda-forge/noarch::resampy-0.2.2-py_0
  rsa                conda-forge/noarch::rsa-4.6-pyh9f0ad1d_0
  scikit-learn       conda-forge/win-64::scikit-learn-0.23.2-py36h63cef00_2
  scipy              conda-forge/win-64::scipy-1.5.3-py36h7ff6e69_0
  six                conda-forge/noarch::six-1.15.0-pyh9f0ad1d_0
  spleeter           conda-forge/win-64::spleeter-1.5.3-py36h9f0ad1d_2
  tensorboard        conda-forge/noarch::tensorboard-2.4.0-pyhd8ed1ab_0
  tensorboard-plugi~ conda-forge/noarch::tensorboard-plugin-wit-1.7.0-pyh9f0ad1d_0
  tensorflow         pkgs/main/win-64::tensorflow-1.15.0-eigen_py36h932cce6_0
  tensorflow-base    pkgs/main/win-64::tensorflow-base-1.15.0-eigen_py36h07d2309_0
  tensorflow-estima~ pkgs/main/noarch::tensorflow-estimator-1.15.1-pyh2649769_0
  termcolor          conda-forge/noarch::termcolor-1.1.0-py_2
  threadpoolctl      conda-forge/noarch::threadpoolctl-2.1.0-pyh5ca1d4c_0
  tk                 conda-forge/win-64::tk-8.6.10-he774522_1
  tornado            conda-forge/win-64::tornado-6.1-py36h68aa20f_0
  typing-extensions  conda-forge/noarch::typing-extensions-3.7.4.3-0
  typing_extensions  conda-forge/noarch::typing_extensions-3.7.4.3-py_0
  urllib3            conda-forge/noarch::urllib3-1.25.11-py_0
  werkzeug           conda-forge/noarch::werkzeug-0.16.1-py_0
  win_inet_pton      conda-forge/win-64::win_inet_pton-1.1.0-py36h9f0ad1d_1
  wrapt              conda-forge/win-64::wrapt-1.12.1-py36h68a101e_1
  xz                 conda-forge/win-64::xz-5.2.5-h62dcd97_1
  yarl               conda-forge/win-64::yarl-1.6.3-py36h68aa20f_0
  zipp               conda-forge/noarch::zipp-3.4.0-py_0
  zstd               conda-forge/win-64::zstd-1.4.5-h1f3a1b7_2

The following packages will be UPDATED:

  certifi            pkgs/main/noarch::certifi-2020.6.20-p~ --> conda-forge/win-64::certifi-2020.11.8-py36ha15d459_0


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(py36) PS C...>

こんな感じです。

(base) PS C:\.....>conda create -n py36 python=3.6 -y
(py36) PS C:\.....>conda activate py36
(py36) PS C:\.....>git clone https://github.com/deezer/spleeter
(py36) PS C:\.....>conda install -c conda-forge spleeter
(py36) PS C:\.....>spleeter separate -i C:\mp3\music.mp3 -o Output -p spleeter:2stems
INFO:spleeter:Downloading model archive https://github.com/deezer/spleeter/releases/download/v1.4.0/2stems.tar.gz
INFO:spleeter:Validating archive checksum
INFO:spleeter:Extracting downloaded 2stems archive
INFO:spleeter:2stems model file(s) extracted
INFO:spleeter:File Output/music/accompaniment.wav written succesfully
INFO:spleeter:File Output/music/vocals.wav written succesfully
(py36) PS C:\.....>spleeter separate -i C:\mp3\music.mp3 -o Output -p spleeter:4stems
INFO:spleeter:Downloading model archive https://github.com/deezer/spleeter/releases/download/v1.4.0/4stems.tar.gz
INFO:spleeter:Validating archive checksum
INFO:spleeter:Extracting downloaded 4stems archive
INFO:spleeter:4stems model file(s) extracted
INFO:spleeter:File Output/music/drums.wav written succesfully
INFO:spleeter:File Output/music/bass.wav written succesfully
INFO:spleeter:File Output/music/other.wav written succesfully
INFO:spleeter:File Output/music/vocals.wav written succesfully
(py36) PS C:\.....>spleeter separate -i C:\mp3\music.mp3 -o C:/mp3/music/5Stem/ -p spleeter:5stems
INFO:spleeter:Downloading model archive https://github.com/deezer/spleeter/releases/download/v1.4.0/5stems.tar.gz
INFO:spleeter:Validating archive checksum
INFO:spleeter:Extracting downloaded 5stems archive
INFO:spleeter:5stems model file(s) extracted
INFO:spleeter:File C:/mp3/music/5Stem/music/bass.wav written succesfully
INFO:spleeter:File C:/mp3/music/5Stem/music/vocals.wav written succesfully
INFO:spleeter:File C:/mp3/music/5Stem/music/drums.wav written succesfully
INFO:spleeter:File C:/mp3/music/5Stem/music/piano.wav written succesfully
INFO:spleeter:File C:/mp3/music/5Stem/music/other.wav written succesfully
(py36) PS C:\.....>

 上記のようにして使えますが、2Stemはかなり分離できていると思います。歌だけの方はくっきりと抜き出せていて、伴奏には少し歌声が残っている感じ、歌詞はほぼ聞き取れない。メロディーがうっすら少し感じれるので、本物の生バンドよりは、カラオケ寄りかもしれない。生バンドが0、カラオケが1としたら、歌のメロディーは0.05くらいですね。まぁこれだけで歌うのは結構、難しいです。


 4Stemでのドラムはハイハットが無いので、意味ない感じはある。でもハイハット無しリズムを勉強するには、いいのかもしれない。ドラムをやったことないので、ハイハット・シンバルなしの練習が意味があるのかわからないです。一人でのリズムを鍛えるにはありなのかな。多少は自分が目指すべきリズム感をイメージしやすいかもしれない。Baseは割かし抜き出せているので勉強になると思う。


 5StemでのOtherにギターが残っているのかもしれないけど、他の音もいっぱい残っているので、もう少し頑張って欲しいなぁって思う所です。


 ピアノはバンドの中でなっている場合は、かなり聞き取れない。音が小さい。最初から、そういうアクセント的な扱いなので仕方ないのかもしれない。頑張っている割には全体にはあまり影響が及んでいないと思うと弾いてる人はやりがいを感じれないかもしれない。シンセ音は抽出はできていないと思う。

Pythonに戻る