Spaces:
Running
on
T4
Running
on
T4
lengyue233
commited on
Commit
•
e69f277
1
Parent(s):
82cce8f
add new gradio ui
Browse files- .gitignore +1 -0
- Dockerfile +3 -4
- config.yaml +18 -0
- configs/exp_hifisinger.py +1 -1
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
__pycache__
|
Dockerfile
CHANGED
@@ -9,13 +9,12 @@ RUN poetry config virtualenvs.create false
|
|
9 |
# Install dependencies
|
10 |
WORKDIR /app
|
11 |
|
12 |
-
RUN git clone https://github.com/fishaudio/fish-diffusion.git --depth 1
|
13 |
|
14 |
WORKDIR /app/fish-diffusion
|
15 |
RUN poetry install
|
16 |
|
17 |
-
COPY --chown=user
|
18 |
-
COPY --chown=user exp_hifisinger.py configs/exp_hifisinger.py
|
19 |
|
20 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|
21 |
ENV GRADIO_SERVER_PORT=7860
|
@@ -24,4 +23,4 @@ ENV TRANSFORMERS_CACHE=/tmp/huggingface
|
|
24 |
ENV MPLCONFIGDIR=/tmp/matplotlib
|
25 |
ENV TORCH_HOME=/tmp/torch
|
26 |
|
27 |
-
CMD python3 tools/hifisinger/
|
|
|
9 |
# Install dependencies
|
10 |
WORKDIR /app
|
11 |
|
12 |
+
RUN git clone https://github.com/fishaudio/fish-diffusion.git --depth 1
|
13 |
|
14 |
WORKDIR /app/fish-diffusion
|
15 |
RUN poetry install
|
16 |
|
17 |
+
COPY --chown=user . .
|
|
|
18 |
|
19 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|
20 |
ENV GRADIO_SERVER_PORT=7860
|
|
|
23 |
ENV MPLCONFIGDIR=/tmp/matplotlib
|
24 |
ENV TORCH_HOME=/tmp/torch
|
25 |
|
26 |
+
CMD python3 tools/hifisinger/gradio_ui.py
|
config.yaml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
readme: |
|
3 |
+
# Fish Diffusion - HiFiSinger Demo 🎤
|
4 |
+
GitHub Repo: [fishaudio/fish-diffusion](https://github.com/fishaudio/fish-diffusion)
|
5 |
+
|
6 |
+
max_mixing_speakers: 3
|
7 |
+
|
8 |
+
models:
|
9 |
+
- name: Default
|
10 |
+
config: configs/exp_hifisinger.py
|
11 |
+
checkpoint: checkpoints/checkpoint.ckpt
|
12 |
+
readme: "This model is trained on the M4Singer dataset and released under the CC-BY-NC-SA 4.0 license."
|
13 |
+
default_speaker: "aria"
|
14 |
+
|
15 |
+
- name: Duplicate
|
16 |
+
config: configs/exp_hifisinger.py
|
17 |
+
checkpoint: checkpoints/checkpoint.ckpt
|
18 |
+
readme: "DUP This model is trained on the M4Singer dataset and released under the CC-BY-NC-SA 4.0 license."
|
configs/exp_hifisinger.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
_base_ = [
|
2 |
-
"
|
3 |
]
|
4 |
|
5 |
speaker_mapping = {'DELETED0': 0, 'opencpop': 1, 'DELETED2': 2, 'DELETED3': 3, 'M4Singer-Alto-7': 4, 'M4Singer-Alto-1': 5, 'M4Singer-Alto-5': 6, 'M4Singer-Tenor-5': 7, 'M4Singer-Alto-2': 8, 'M4Singer-Tenor-7': 9, 'M4Singer-Tenor-4': 10, 'M4Singer-Alto-6': 11, 'M4Singer-Soprano-3': 12, 'M4Singer-Bass-1': 13, 'M4Singer-Bass-3': 14, 'M4Singer-Tenor-2': 15, 'M4Singer-Alto-3': 16, 'M4Singer-Tenor-6': 17, 'M4Singer-Bass-2': 18, 'M4Singer-Alto-4': 19, 'M4Singer-Soprano-2': 20, 'M4Singer-Soprano-1': 21, 'M4Singer-Alto-2#forever': 22, 'M4Singer-Tenor-3': 23, 'M4Singer-Tenor-1': 24, 'M4Singer-Tenor-1#always': 25}
|
|
|
1 |
_base_ = [
|
2 |
+
"/home/lengyue/workspace/ml-toys/diff-svc-clean/configs/_base_/archs/hifi_svc.py",
|
3 |
]
|
4 |
|
5 |
speaker_mapping = {'DELETED0': 0, 'opencpop': 1, 'DELETED2': 2, 'DELETED3': 3, 'M4Singer-Alto-7': 4, 'M4Singer-Alto-1': 5, 'M4Singer-Alto-5': 6, 'M4Singer-Tenor-5': 7, 'M4Singer-Alto-2': 8, 'M4Singer-Tenor-7': 9, 'M4Singer-Tenor-4': 10, 'M4Singer-Alto-6': 11, 'M4Singer-Soprano-3': 12, 'M4Singer-Bass-1': 13, 'M4Singer-Bass-3': 14, 'M4Singer-Tenor-2': 15, 'M4Singer-Alto-3': 16, 'M4Singer-Tenor-6': 17, 'M4Singer-Bass-2': 18, 'M4Singer-Alto-4': 19, 'M4Singer-Soprano-2': 20, 'M4Singer-Soprano-1': 21, 'M4Singer-Alto-2#forever': 22, 'M4Singer-Tenor-3': 23, 'M4Singer-Tenor-1': 24, 'M4Singer-Tenor-1#always': 25}
|