Skip to content

Commit

Permalink
add requirements readme
Browse files Browse the repository at this point in the history
  • Loading branch information
leavelet committed Jul 6, 2022
1 parent e65e23f commit 76a2cbe
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 316 deletions.
25 changes: 20 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,29 @@ When dealing with mutiple AI projects, it will make your life much easier to set

We use recommand conda, and we take this as an example

2. crate environment for song-cutter and those non-AI program
2. crate environments

```shell
conda create -n music-dealer
cd requirements

# misc
conda create -n singing-dealer
conda activate singing-dealer
pip install -r make_midi.txt

# vocal extraction
conda env create -f vocal-extraction/environment.yml
#if you use arm mac, use environment-m1.yml
conda activate vocal-extraction
pip install -r vocal-extraction/requirements.txt

# alignment & melody extraction
conda env create -f vocal-extraction/maker_ai_cpu.yml
# if you have gpu, use maker_ai_gpu.yml
conda activate maker_ai
pip install -r melody_extraction.txt
```

### not finished, next update on 6.28




### Seperate the song
Expand Down
27 changes: 27 additions & 0 deletions requirements/align_environment_cpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: maker_ai
channels:
- pytorch
- conda-forge
- defaults
dependencies:
- audioread=2.1.8
- decorator=4.4.1
- ffmpeg=4.2
- libflac=1.3.1
- libiconv=1.15
- libllvm8=8.0.1
- libogg=1.3.2
- librosa=0.7.2
- libsndfile=1.0.28
- libuuid=2.32.1
- libvorbis=1.3.5
- libxcb=1.13
- numba=0.47.0
- pyqt=5.6.0
- pysoundfile=0.10.2
- resampy=0.2.2
- numpy=1.18.1
- numpy-base=1.18.1
- python=3.6.10
- pytorch=1.5.0

22 changes: 22 additions & 0 deletions requirements/align_environment_gpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: maker_ai
channels:
- pytorch
- conda-forge
- defaults
dependencies:
- audioread=2.1.8
- decorator=4.4.1
- libsndfile=1.0.28
- libuuid=2.32.1
- libvorbis=1.3.5
- libxcb=1.13
- numba=0.47.0
- pyqt=5.6.0
- pysoundfile=0.10.2
- resampy=0.2.2
- numpy=1.18.1
- numpy-base=1.18.1
- python=3.6.10
- pytorch=1.5.0
- cudatoolkit=9.2

4 changes: 3 additions & 1 deletion requirements/melody_extraction.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ madmom==0.16.1
numpy==1.18.5
SciPy==1.1.0
pysndfx==0.3.6
tensorflow-gpu==1.15.5
tensorflow-gpu==1.15.5
decorator==4.4.1
cudatoolkit=9.2
2 changes: 1 addition & 1 deletion requirements/vocal-extraction/environment-m1.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pytorch
name: vocal-extract
channels:
- conda-forge
- anaconda
Expand Down
4 changes: 1 addition & 3 deletions requirements/vocal-extraction/environment.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: extract
name: vocal-extract
channels:
- conda-forge
- anaconda
Expand All @@ -22,5 +22,3 @@ dependencies:
- asteroid>=0.5.0
- demucs==2.0.3

prefix: /home/ielab/miniconda3/envs/pytorch

Loading

0 comments on commit 76a2cbe

Please sign in to comment.