Spaces:
Sleeping
Sleeping
Hugo Flores Garcia
commited on
Commit
·
83aed42
1
Parent(s):
0321745
hf space
Browse files- .gitattributes +36 -0
- .gitignore +3 -1
- app.py +6 -2
- models/vampnet/c2f.pth +3 -0
- models/vampnet/coarse.pth +3 -0
- models/vampnet/codec.pth +3 -0
- models/wavebeat.pth +3 -0
.gitattributes
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
.pth filter=lfs diff=lfs merge=lfs -text
|
.gitignore
CHANGED
@@ -175,9 +175,11 @@ lyrebird-audio-codec
|
|
175 |
samples-*/**
|
176 |
|
177 |
gradio-outputs/
|
178 |
-
models/
|
179 |
samples*/
|
180 |
models-all/
|
181 |
models.zip
|
|
|
|
|
|
|
182 |
.git-old
|
183 |
conf/generated/*
|
|
|
175 |
samples-*/**
|
176 |
|
177 |
gradio-outputs/
|
|
|
178 |
samples*/
|
179 |
models-all/
|
180 |
models.zip
|
181 |
+
audiotools/
|
182 |
+
descript-audio-codec/
|
183 |
+
# *.pth
|
184 |
.git-old
|
185 |
conf/generated/*
|
app.py
CHANGED
@@ -3,6 +3,7 @@ from typing import Tuple
|
|
3 |
import yaml
|
4 |
import tempfile
|
5 |
import uuid
|
|
|
6 |
from dataclasses import dataclass, asdict
|
7 |
|
8 |
import numpy as np
|
@@ -44,7 +45,7 @@ def load_audio(file):
|
|
44 |
)
|
45 |
sig = interface.preprocess(sig)
|
46 |
|
47 |
-
out_dir = OUT_DIR /
|
48 |
out_dir.mkdir(parents=True, exist_ok=True)
|
49 |
sig.write(out_dir / "input.wav")
|
50 |
return sig.path_to_file
|
@@ -55,6 +56,10 @@ def load_example_audio():
|
|
55 |
|
56 |
|
57 |
def _vamp(data, return_mask=False):
|
|
|
|
|
|
|
|
|
58 |
out_dir = OUT_DIR / str(uuid.uuid4())
|
59 |
out_dir.mkdir()
|
60 |
sig = at.AudioSignal(data[input_audio])
|
@@ -173,7 +178,6 @@ def save_vamp(data):
|
|
173 |
return f"saved! your save code is {out_dir.stem}", zip_path
|
174 |
|
175 |
|
176 |
-
|
177 |
with gr.Blocks() as demo:
|
178 |
|
179 |
with gr.Row():
|
|
|
3 |
import yaml
|
4 |
import tempfile
|
5 |
import uuid
|
6 |
+
import shutil
|
7 |
from dataclasses import dataclass, asdict
|
8 |
|
9 |
import numpy as np
|
|
|
45 |
)
|
46 |
sig = interface.preprocess(sig)
|
47 |
|
48 |
+
out_dir = OUT_DIR / str(uuid.uuid4())
|
49 |
out_dir.mkdir(parents=True, exist_ok=True)
|
50 |
sig.write(out_dir / "input.wav")
|
51 |
return sig.path_to_file
|
|
|
56 |
|
57 |
|
58 |
def _vamp(data, return_mask=False):
|
59 |
+
# remove any old files in the output directory (from previous runs)
|
60 |
+
shutil.rmtree(OUT_DIR)
|
61 |
+
OUT_DIR.mkdir()
|
62 |
+
|
63 |
out_dir = OUT_DIR / str(uuid.uuid4())
|
64 |
out_dir.mkdir()
|
65 |
sig = at.AudioSignal(data[input_audio])
|
|
|
178 |
return f"saved! your save code is {out_dir.stem}", zip_path
|
179 |
|
180 |
|
|
|
181 |
with gr.Blocks() as demo:
|
182 |
|
183 |
with gr.Row():
|
models/vampnet/c2f.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b10ea2d45459d34edb773cbacd71f40f7baa1f4e75ac8bcd93b022ac69f8fa63
|
3 |
+
size 1101898865
|
models/vampnet/coarse.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:78e4ad4f8398e8ec3651bc5e5c6ea2995e1080b6226be186723ccf4320c9756c
|
3 |
+
size 1332182321
|
models/vampnet/codec.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3db3fa43ab5d160439ddb81fc540b5573ad5ae962230de3fc5b47d218845b855
|
3 |
+
size 600996465
|
models/wavebeat.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5ff1066a4470cb98b20edf1e489f6995b19e0435b9cfd5a190bf90a954d0cadb
|
3 |
+
size 33248861
|