Spaces:
Running
Running
Commit
·
d1c75d1
1
Parent(s):
b0c2db7
Update README.md
Browse files
README.md
CHANGED
@@ -6,5 +6,57 @@ colorTo: pink
|
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
---
|
9 |
+
This repo contains two servers. Before setting up the servers, please follow these steps first
|
10 |
+
1. ``` bash
|
11 |
+
git lfs install
|
12 |
+
cd third_party
|
13 |
+
git clone https://huggingface.co/spaces/fantasyfish/RVC
|
14 |
+
```
|
15 |
+
2. ```bash
|
16 |
+
sudo docker pull fantasyfish677/rvc:v0
|
17 |
+
```
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
+
# Training server
|
22 |
+
1. Start the server with the command below where the training data folder is put under **examples**
|
23 |
+
```bash
|
24 |
+
sudo docker run --gpus all --runtime=nvidia --rm \
|
25 |
+
-v /home/fantasyfish/Desktop/dotdemo/third_party:/third_party \
|
26 |
+
-v /home/fantasyfish/Desktop/dotdemo/examples:/inputDir \
|
27 |
+
-v /home/fantasyfish/Desktop/dotdemo/logs:/logs \
|
28 |
+
-v /home/fantasyfish/Desktop/dotdemo/train_server:/app \
|
29 |
+
-p 8080:8080 \
|
30 |
+
-it rvc:v0
|
31 |
+
```
|
32 |
+
2. Two test commands:
|
33 |
+
```bash
|
34 |
+
curl -X GET http://localhost:8080/train \
|
35 |
+
-H 'Content-Type: application/json' \
|
36 |
+
-d '{"expName":"drake-20","trainsetDir":"drake"}'
|
37 |
+
```
|
38 |
+
```bash
|
39 |
+
curl -X GET http://localhost:8080/check \
|
40 |
+
-H 'Content-Type: application/json' \
|
41 |
+
-d '{"expName":"drake-20"}'
|
42 |
+
```
|
43 |
+
|
44 |
+
# Inference server
|
45 |
+
1. Start the server with the command below where the training data folder is put under **examples** and the output wav file is saved under **results**
|
46 |
+
```bash
|
47 |
+
sudo docker run --gpus all --runtime=nvidia --rm \
|
48 |
+
-v /home/fantasyfish/Desktop/dotdemo/third_party:/third_party \
|
49 |
+
-v /home/fantasyfish/Desktop/dotdemo/examples:/inputDir \
|
50 |
+
-v /home/fantasyfish/Desktop/dotdemo/logs:/logs \
|
51 |
+
-v /home/fantasyfish/Desktop/dotdemo/results:/outputDir \
|
52 |
+
-v /home/fantasyfish/Desktop/dotdemo/inference_server:/app \
|
53 |
+
-p 8081:8081 \
|
54 |
+
-it rvc:v0
|
55 |
+
```
|
56 |
+
2. Test command:
|
57 |
+
```bash
|
58 |
+
curl -X GET http://localhost:8081/inference \
|
59 |
+
-H 'Content-Type: application/json' \
|
60 |
+
-d '{"expName":"drake-200","audioFileName":"radwimps.mp3", "pitchShift": 0}'
|
61 |
+
```
|
62 |
|
|