inst.py with platform downloader
Browse files- gui_data/__pycache__/app_size_values.cpython-310.pyc +0 -0
- gui_data/__pycache__/constants.cpython-310.pyc +0 -0
- gui_data/__pycache__/error_handling.cpython-310.pyc +0 -0
- gui_data/__pycache__/old_data_check.cpython-310.pyc +0 -0
- gui_data/sv_ttk/__pycache__/__init__.cpython-310.pyc +0 -0
- gui_data/tkinterdnd2/__pycache__/TkinterDnD.cpython-310.pyc +0 -0
- gui_data/tkinterdnd2/__pycache__/__init__.cpython-310.pyc +0 -0
- inst.py +13 -6
- lib_v5/__pycache__/mdxnet.cpython-310.pyc +0 -0
- lib_v5/__pycache__/modules.cpython-310.pyc +0 -0
- lib_v5/__pycache__/pyrb.cpython-310.pyc +0 -0
- lib_v5/__pycache__/spec_utils.cpython-310.pyc +0 -0
- lib_v5/__pycache__/tfc_tdf_v3.cpython-310.pyc +0 -0
- lib_v5/vr_network/__pycache__/__init__.cpython-310.pyc +0 -0
- lib_v5/vr_network/__pycache__/layers.cpython-310.pyc +0 -0
- lib_v5/vr_network/__pycache__/layers_new.cpython-310.pyc +0 -0
- lib_v5/vr_network/__pycache__/model_param_init.cpython-310.pyc +0 -0
- lib_v5/vr_network/__pycache__/nets.cpython-310.pyc +0 -0
- lib_v5/vr_network/__pycache__/nets_new.cpython-310.pyc +0 -0
- separate.py +25 -23
gui_data/__pycache__/app_size_values.cpython-310.pyc
DELETED
Binary file (8.52 kB)
|
|
gui_data/__pycache__/constants.cpython-310.pyc
DELETED
Binary file (63.6 kB)
|
|
gui_data/__pycache__/error_handling.cpython-310.pyc
DELETED
Binary file (5.67 kB)
|
|
gui_data/__pycache__/old_data_check.cpython-310.pyc
DELETED
Binary file (1.01 kB)
|
|
gui_data/sv_ttk/__pycache__/__init__.cpython-310.pyc
DELETED
Binary file (1.99 kB)
|
|
gui_data/tkinterdnd2/__pycache__/TkinterDnD.cpython-310.pyc
DELETED
Binary file (11.8 kB)
|
|
gui_data/tkinterdnd2/__pycache__/__init__.cpython-310.pyc
DELETED
Binary file (680 Bytes)
|
|
inst.py
CHANGED
@@ -122,9 +122,16 @@ def uvr_job(song_id, platform='netease'):
|
|
122 |
if __name__ == '__main__':
|
123 |
audio_file = '/Users/taoluo/Downloads/assets/audio/kimk_audio.mp3'
|
124 |
audio_file = sys.argv[1]
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
if __name__ == '__main__':
|
123 |
audio_file = '/Users/taoluo/Downloads/assets/audio/kimk_audio.mp3'
|
124 |
audio_file = sys.argv[1]
|
125 |
+
platform = sys.argv[2] if len(sys.argv) > 2 else 'netease'
|
126 |
+
|
127 |
+
# exist file
|
128 |
+
if os.path.isfile(audio_file):
|
129 |
+
output_dir = os.path.dirname(audio_file)
|
130 |
+
instrumental_path, vocals_path = run_ensemble_models(audio_file, output_dir)
|
131 |
+
print('instrumental_path: ', instrumental_path)
|
132 |
+
sys.exit(0)
|
133 |
+
|
134 |
+
# download from platform
|
135 |
+
song_id = sys.argv[1]
|
136 |
+
instrumental_path = uvr_job(song_id, platform)
|
137 |
+
print('instrumental_path: ', instrumental_path)
|
lib_v5/__pycache__/mdxnet.cpython-310.pyc
DELETED
Binary file (3.76 kB)
|
|
lib_v5/__pycache__/modules.cpython-310.pyc
DELETED
Binary file (2.17 kB)
|
|
lib_v5/__pycache__/pyrb.cpython-310.pyc
DELETED
Binary file (1.96 kB)
|
|
lib_v5/__pycache__/spec_utils.cpython-310.pyc
DELETED
Binary file (30.5 kB)
|
|
lib_v5/__pycache__/tfc_tdf_v3.cpython-310.pyc
DELETED
Binary file (6.84 kB)
|
|
lib_v5/vr_network/__pycache__/__init__.cpython-310.pyc
DELETED
Binary file (177 Bytes)
|
|
lib_v5/vr_network/__pycache__/layers.cpython-310.pyc
DELETED
Binary file (4.5 kB)
|
|
lib_v5/vr_network/__pycache__/layers_new.cpython-310.pyc
DELETED
Binary file (4.46 kB)
|
|
lib_v5/vr_network/__pycache__/model_param_init.cpython-310.pyc
DELETED
Binary file (1.19 kB)
|
|
lib_v5/vr_network/__pycache__/nets.cpython-310.pyc
DELETED
Binary file (4.17 kB)
|
|
lib_v5/vr_network/__pycache__/nets_new.cpython-310.pyc
DELETED
Binary file (3.84 kB)
|
|
separate.py
CHANGED
@@ -1,38 +1,40 @@
|
|
1 |
from __future__ import annotations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
from typing import TYPE_CHECKING
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
from demucs.apply import apply_model, demucs_segments
|
4 |
from demucs.hdemucs import HDemucs
|
5 |
from demucs.model_v2 import auto_load_demucs_model_v2
|
6 |
from demucs.pretrained import get_model as _gm
|
7 |
from demucs.utils import apply_model_v1
|
8 |
from demucs.utils import apply_model_v2
|
9 |
-
from
|
|
|
10 |
from lib_v5 import spec_utils
|
|
|
11 |
from lib_v5.vr_network import nets
|
12 |
from lib_v5.vr_network import nets_new
|
13 |
from lib_v5.vr_network.model_param_init import ModelParameters
|
14 |
-
|
15 |
-
from gui_data.constants import *
|
16 |
-
from gui_data.error_handling import *
|
17 |
-
from scipy import signal
|
18 |
-
import audioread
|
19 |
-
import gzip
|
20 |
-
import librosa
|
21 |
-
import math
|
22 |
-
import numpy as np
|
23 |
-
import onnxruntime as ort
|
24 |
-
import os
|
25 |
-
import torch
|
26 |
-
import warnings
|
27 |
-
import pydub
|
28 |
-
import soundfile as sf
|
29 |
-
import lib_v5.mdxnet as MdxnetSet
|
30 |
-
import math
|
31 |
-
#import random
|
32 |
-
from onnx import load
|
33 |
-
from onnx2pytorch import ConvertModel
|
34 |
-
import gc
|
35 |
-
|
36 |
if TYPE_CHECKING:
|
37 |
from UVR import ModelData
|
38 |
|
|
|
1 |
from __future__ import annotations
|
2 |
+
|
3 |
+
import gc
|
4 |
+
import gzip
|
5 |
+
import math
|
6 |
+
import os
|
7 |
+
import warnings
|
8 |
+
from pathlib import Path
|
9 |
from typing import TYPE_CHECKING
|
10 |
+
|
11 |
+
import audioread
|
12 |
+
import librosa
|
13 |
+
import numpy as np
|
14 |
+
import onnxruntime as ort
|
15 |
+
import pydub
|
16 |
+
import soundfile as sf
|
17 |
+
import torch
|
18 |
+
# import random
|
19 |
+
from onnx import load
|
20 |
+
from onnx2pytorch import ConvertModel
|
21 |
+
from scipy import signal
|
22 |
+
|
23 |
+
import lib_v5.mdxnet as MdxnetSet
|
24 |
from demucs.apply import apply_model, demucs_segments
|
25 |
from demucs.hdemucs import HDemucs
|
26 |
from demucs.model_v2 import auto_load_demucs_model_v2
|
27 |
from demucs.pretrained import get_model as _gm
|
28 |
from demucs.utils import apply_model_v1
|
29 |
from demucs.utils import apply_model_v2
|
30 |
+
from gui_data.constants import *
|
31 |
+
from gui_data.error_handling import *
|
32 |
from lib_v5 import spec_utils
|
33 |
+
from lib_v5.tfc_tdf_v3 import TFC_TDF_net, STFT
|
34 |
from lib_v5.vr_network import nets
|
35 |
from lib_v5.vr_network import nets_new
|
36 |
from lib_v5.vr_network.model_param_init import ModelParameters
|
37 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
if TYPE_CHECKING:
|
39 |
from UVR import ModelData
|
40 |
|